eslint-config-cellule
This is a set of rules and configuration for eslint using Shareable Config.
Installation
$ npm install --save-dev eslint@~3.3.0 eslint-config-cellule
Usage
In your .eslintrc
config, extends to this module with
{
"extends": ["cellule"]
}
Available config files
-
"cellule/global.js"
: Default config (ie:extends: "cellule"
). This contains mostly rules to prevent errors and covers best practices. -
"cellule/frontend.js"
: Config for files targeted for the browser. -
"cellule/babel.js"
: Config for when you use babel to compile your sources.- babel-eslint: Parser supporting extended language features
- eslint-plugin-babel: An eslint plugin companion to babel-eslint
-
"cellule/chakra.js"
: Config when your host isch.exe
for ChakraCore. -
"cellule/codestyle.js"
: Config covering mostly code style preferences. -
"cellule/es2015.js"
: Config when your host supports es2015 without babel. -
"cellule/node.js"
: Config targeting node environment.- eslint-plguin-node: Additional ESLint's rules for Node.js
-
"cellule/flow.js"
: Config when using flow.- babel-eslint: Parser supporting extended language features
- eslint-plugin-flowtype: An eslint plugin that makes flow type annotations global variables and marks declarations as used
-
"cellule/react.js"
: Config when you use React in your sources.- eslint-plugin-react: React specific linting rules for ESLint
Recommended order
In eslint Shareable Config the order in which you placed your extends
impacts what will take precedence.
Here's a recommended order for this package of rules. (You will rarely if ever need all of them in one project)
{
"extends": [
"cellule/global.js",
"cellule/frontend.js",
"cellule/node.js",
"cellule/chakra.js",
"cellule/codestyle.js",
"cellule/es2015.js",
"cellule/babel.js",
"cellule/react.js",
"cellule/flow.js"
]
}