This package provides Nugit's JS .eslintrc as an extensible shared config.
npm i eslint-config-nugit --save-dev
NOTE: NPM 10 is required otherwise you'll need to manually install peerDependencies. Peer dependencies change won't be considered as breaking change anymore.
We export two ESLint configurations for your usage.
Our default export contains all of our ESLint rules, including ECMAScript 6+, FlowJS and React.
If you don't need React, see eslint-config-nugit/base
.
- Add
"extends": "nugit"
to your .eslintrc.
Our default export contains all of our ESLint rules, including ECMAScript 6+ and FlowJS.
- Add
"extends": "nugit/base"
to your .eslintrc
Same as eslint-config-nugit/base
but allow to use devDependencies
& console.log
.
- Add
"extends": "nugit/script"
to your .eslintrc