This package provides Results Driven Marketing's .eslintrc as an extensible shared config.
We export three ESLint configurations for your usage.
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
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
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.
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
.