1.1.0 • Published 9 months ago
eslint-config-cnp v1.1.0
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'],
};