eslint-config-cnp
v1.1.0
Published
Sharable ESLint configuration to make configuration for ESLint easier
Downloads
15
Maintainers
Readme
eslint-config-cnp
Sharable ESLint configuration for create-npm-package
Usage
- Install
npm i eslint-config-cnp -D
- For node.js npm package
.eslintrc.js
module.export = {
root: true,
extends: ['cnp'],
};
- If jest is using
.eslintrc.js
module.export = {
root: true,
extends: ['cnp', 'cnp/jest'], // test files should match the patterns ['test/**', '**/__tests__/**/*', '**/*.{spec,test}.*']
};
- If react is using
.eslintrc.js
module.export = {
root: true,
extends: ['cnp/react'],
};