eslint-config-resultsdm
v2.0.0
Published
Results Driven Marketing's ESLint config, following our styleguide
Downloads
12
Maintainers
Readme
eslint-config-resultsdm
This package provides Results Driven Marketing's .eslintrc as an extensible shared config.
Usage
We export three ESLint configurations for your usage.
eslint-config-resultsdm
Lints ES6+ but does not lint React or Angular. Requires eslint
.
npm install --save-dev eslint-config-resultsdm eslint
- add
"extends": "resultsdm"
to your .eslintrc
eslint-config-resultsdm/react
Contains all of our ESLint rules, including EcmaScript 6+
and React. Requires eslint
and eslint-plugin-react
.
npm install --save-dev eslint-config-resultsdm eslint-plugin-react eslint
- add
"extends": "resultsdm/react"
to your .eslintrc
eslint-config-resultsdm/angular
Contains all of our ESLint rules, including EcmaScript 6+
and React. Requires eslint
and eslint-plugin-angular
.
npm install --save-dev eslint-config-resultsdm eslint-plugin-angular eslint
- add
"extends": "resultsdm/angular"
to your .eslintrc
Lints ES5 and below. Only requires eslint
.
npm install --save-dev eslint-config-resultsdm eslint
- add
"extends": "resultsdm/legacy"
to your .eslintrc
See Results Driven Marketing's Javascript Styleguide and the ESlint config docs for more information.
Improving this config
Consider adding test cases if you're making complicated rules changes, like anything involving regexes.
You can run tests with npm test
.
You can make sure this module lints with itself using npm run lint
.