https://github.com/iansinnott/eslint-config-zen
An ESLint config for use with the latest ESNext features, React and Flow
https://github.com/iansinnott/eslint-config-zen
Last synced: about 2 months ago
JSON representation
An ESLint config for use with the latest ESNext features, React and Flow
- Host: GitHub
- URL: https://github.com/iansinnott/eslint-config-zen
- Owner: iansinnott
- Created: 2016-10-16T19:41:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-08T21:04:10.000Z (almost 9 years ago)
- Last Synced: 2025-09-08T04:31:29.146Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESLint Config Zen
An ESLint config for use with the latest ESNext features, React and Flow
## Quick Install
```
yarn add --dev eslint eslint-config-zen eslint-plugin-react eslint-plugin-flowtype babel-eslint
echo '{"extends": ["zen"]}' > .eslintrc
```
## Usage with NPM
If you haven't checked out [Yarn][] yet I would highly recommended, but this config works perfectly with NPM:
```
npm install --save-dev eslint eslint-config-zen eslint-plugin-react eslint-plugin-flowtype babel-eslint
```
Then create a new `.eslintrc` which extends eslint-config-zen:
```
{
"extends": ["zen"]
}
```
That's all!
## Multiple Configs
This config exposes multiple configs for use in your projects:
* `zen/base`: Base JavaScript configuration, largely based on `eslint:recommended`.
* `zen/react`: For use with React / JSX
* `zen/flowtype`: For use with Flow
By default all configurations will be enabled. You can customize which pieces you'd like.
**NOTE:** The `zen/base` configuration is needed for the rest to work.
* **For projects without React or Flow:** `{ "extends": ["zen/base"] }`
* **For React Projects _without_ Flow:** `{ "extends": ["zen/base", "zen/react"] }`
[Yarn]: https://yarnpkg.com/