1.1.0 • Published 8 years ago
eslint-config-dc v1.1.0
eslint-config-dc
Personal ESLint Configs
Installation
Install this config package and ESLint:
$ npm install --save-dev eslint-config-dcIf 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-filenamesUsage
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/es6with a few tweaks)dc/browser(simply setsenv.browserto true)dc/jest(setsjestglobals)
How to use
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.