2.0.2 • Published 10 years ago
eslint-config-coorpacademy v2.0.2
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-coorpacademyCreate 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
errorrules in existing configuration files - Update
warningrules to beerrorrules - Change options for
errorrules that makes them more restrictive, even partially
- Add new
- Minor
- Add new configuration files
- Add new
warningrules - Update
errorrules to bewarningrules - Change options for
errorrules that makes them less restrictive - Change options for
warningrules - Disable rules
- Patch
- Anything not mentioned previously (probably) that should not break client projects