eslint-config-cnp
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

eslint-config-cnp

npm version Downloads/month Release Testing Linting Build codecov

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'],
};

Package Sidebar

Install

npm i eslint-config-cnp

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

16.4 kB

Total Files

16

Last publish

Collaborators

  • hsuehic2023