Coorpacademy ESLint plugin
CoorpAcademy's ESLint rules and configs.
Installation
npm install --save-dev eslint @coorpacademy/eslint-plugin-coorpacademy
Usage
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
- jsx: Rules for when using JSX
- lodash-fp: Rules for when using Lodash's FP flavor
- mocha: Rules for when using Mocha