CoorpAcademy's ESLint rules and configs.
npm install --save-dev eslint @coorpacademy/eslint-plugin-coorpacademy
This package provides multiple configuration for different purposes, that you can apply together in you project as needed. To use them, set the extends
key of your .eslintrc
file and add @coorpacademy/coorpacademy
to your list of plugins.
{
"extends": [
"plugin:@coorpacademy/coorpacademy/core",
"plugin:@coorpacademy/coorpacademy/mocha",
"plugin:@coorpacademy/coorpacademy/ava",
"..."
],
"plugins": [
"@coorpacademy/coorpacademy"
]
}
Available rule sets are:
- ava: Rules for when using AVA
- core: Shared ESLint rules
- es20XX: Rules for when using ES2015+ syntax
- flowtype: Rules for when using Flowtype
- lodash-fp: Rules for when using Lodash's FP flavor
- mocha: Rules for when using Mocha
- prettier: Disables all stylistic rules but adds source code auto-formatting.
- react: Rules for when using React