eslint-config-cellular
v5.0.0
Published
CELLULAR ESLint config
Downloads
124
Readme
eslint-config-cellular
ESLint config used at CELLULAR.
Usage
Install the conventions by running:
npm install --save-dev eslint eslint-config-cellular
Then add the extends to your .eslintrc
:
{
"extends": "cellular"
}
Rules
This config uses eslint:recommended
and the default rules of the following plugins:
- import
- filenames
- prettier
- react (if react or preact is a dependency)
- flowtype (if flow-bin is a devDependency)
Disabled Rules:
- no-debugger (unless
NODE_ENV
is set toproduction
) - no-console use it responsibly!
- react/no-unescaped-entities makes things more readable
- react/jsx-no-target-blank we (usually) only link to trusted sites
- react/prop-types (if the project uses flowtype)
Prettier
If the project does not contain any prettier configuration, the following settings are used:
{
singleQuote: true,
trailingComma: 'es5'
}
License
MIT