eslint-config-coorpacademy
v2.0.2
Published
Collection of ESLint rules
Downloads
24
Readme
Coorpacademy ESLint config
This library provides a common ESLint config for all Coorpacademy projects.
It creates a list of recommended rules, which is to be enabled in each project.
How to add it to the project
npm install --save-dev eslint-config-coorpacademy
Create a .eslintrc
file if you don't already have one, then create/update the extends
key like the following:
"extends": [
"coorpacademy/core",
"coorpacademy/ava",
"coorpacademy/..."
]
}
Available rule sets are:
- core: Core ESLint rules
- ava: Rules for when using AVA (need to install
eslint-plugin-ava
) - es20XX: Rules for when using ES2015+ syntax
- jsx: Rules for when using ES2015+ syntax (need to install
eslint-plugin-jsx
) - mocha: Rules for when using Mocha (need to install
eslint-plugin-mocha-only
)
Semantic versioning
To avoid breaking projects using this configuration, these are the rules for versioning:
- Major
- Add new
error
rules in existing configuration files - Update
warning
rules to beerror
rules - Change options for
error
rules that makes them more restrictive, even partially
- Add new
- Minor
- Add new configuration files
- Add new
warning
rules - Update
error
rules to bewarning
rules - Change options for
error
rules that makes them less restrictive - Change options for
warning
rules - Disable rules
- Patch
- Anything not mentioned previously (probably) that should not break client projects