https://github.com/zenflow/eslint-config-zenflow
A standard eslint configuration
https://github.com/zenflow/eslint-config-zenflow
Last synced: 5 months ago
JSON representation
A standard eslint configuration
- Host: GitHub
- URL: https://github.com/zenflow/eslint-config-zenflow
- Owner: zenflow
- License: mit
- Created: 2018-02-28T05:19:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-30T16:36:52.000Z (over 3 years ago)
- Last Synced: 2025-04-07T18:55:17.106Z (about 1 year ago)
- Language: JavaScript
- Size: 327 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-zenflow
> A good eslint configuration
[](http://npmjs.com/package/eslint-config-zenflow)
[](https://github.com/zenflow/eslint-config-zenflow/actions?query=branch%3Amaster)
[](https://codeclimate.com/github/zenflow/eslint-config-zenflow)
[](https://lgtm.com/projects/g/zenflow/eslint-config-zenflow/)
[](https://snyk.io/test/github/zenflow/eslint-config-zenflow?targetFile=package.json)
## Features
- Based on [`eslint-config-react-app`](https://github.com/facebook/create-react-app/tree/master/packages/eslint-config-react-app)
- [`prettier`](https://www.npmjs.com/package/prettier) integration using
[`eslint-plugin-prettier`](https://www.npmjs.com/package/eslint-plugin-prettier) &
[`eslint-config-prettier`](https://www.npmjs.com/package/eslint-config-prettier)
## Install
Install packages:
```shell
npm install --save-dev eslint eslint-config-zenflow
# optional
npm install --save-dev typescript
```
Add `.eslintrc` file:
```json5
{
"extends": ["zenflow"],
"rules": { /* custom rule configs here */ }
}
```
Add package `"scripts"`:
```
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
"lint-fix": "npm run lint -- --fix",
```
**Optional** [Configure Prettier](https://prettier.io/docs/en/configuration.html) to your taste.
**Optional** Copy [the companion .editorconfig file](./.editorconfig) to the root of your project.
**Recommended** Enable eslint integration in your IDE of choice