0.3.4 • Published 4 years ago
@next-zero/eslint-config v0.3.4
@next-zero/eslint-config
Eslint config utilizing Airbnb config, Flow, Prettier and Jest support.
Plugins and configs used:
Additionally, it sets these environments:
{
"env": {
"browser": true,
"es6": true,
"node": true
}
}
Installation
yarn add --dev eslint @next-zero/eslint-config
Note: We're using yarn
to install deps. Feel free to change commands to use npm
3+ and npx
if you like
Usage
Add to your eslint config (.eslintrc
, or eslintConfig
field in package.json
):
{
"extends": "@next-zero"
}
Example of extending the configuration
{
"extends": "@next-zero",
"rules": {
"global-require": 0,
"prefer-destructuring": 0
}
}