Personal ESLint Configs
Install this config package and ESLint:
$ npm install --save-dev eslint-config-dc
If you're using npm < v3 you'll also need to install all of the dependencies of this project:
$ npm install --save-dev eslint eslint-config-strict eslint-plugin-filenames
This set of configs is based off of eslint-config-strict
with a few customized options.
This package includes the following configurations:
dc
(alias fordc/es6
)dc/es6
(useseslint-config-strict/es6
with a few tweaks)dc/browser
(simply setsenv.browser
to true)dc/jest
(setsjest
globals)
Simply define your .eslintrc
(or add a eslintConfig
object to package.json
)
like so:
{
"extends": ["dc"]
}
Add any additional plugins you want, for example:
{
"extends": ["dc", "dc/browser"]
}
For more details about how shareable configs work, see the ESLint documentation.