eslint-config-nineyi
v0.3.0
Published
91app eslint config settings
Readme
eslint-config-nineyi
Documentation Shareable Configs
Installation
Install the package with
npm install eslint-config-nineyi --save-dev
eslint Setup
Now add the config to either the package.json:
{
"eslintConfig": {
"extends": "eslint-config-nineyi"
}
}or to the .eslintrc or .eslintrc.js:
{
"extends": "eslint-config-nineyi"
}ESLint and Prettier
- This ESLint configuration can work together with prettier, thanks to eslint-plugin-prettier
Assumptions
- the ESLint rules are based on the great work of airbnb's eslint-config-airbnb
- they also have a smaller more compact one: eslint-config-airbnb-base
- React environment (but can be used on a eg. node-server environment as well)
- Usage of jest as the test-suite
env: Browser and Node environmentglobals: added some related jest variablesparser: usage of babel (used babel-eslint parser)
Note: you can still overwrite the env, globals and parser in your local
.eslintrc.js.
