@cnsjs/eslint-config-nodejs

0.0.2 • Public • Published

@cnsjs/eslint-config-nodejs

CoreDAO Domains's Node.js ESLint configuration.

Usage

yarn add --dev \
    @cnsjs/eslint-config@workspace:^0.0.1 \
    eslint@^8.33.0 \
    eslint-config-prettier@^8.6.0 \
    eslint-plugin-import@^2.27.5 \
    eslint-plugin-jest@^27.2.1 \
    eslint-plugin-jsdoc@^39.8.0 \
    eslint-plugin-prettier@^4.2.1 \
    prettier@^2.8.4

The order in which you extend ESLint rules matters. The @cnsjs/* eslint configs should be added to the extends array last, with @cnsjs/eslint-config first, and @cnsjs/eslint-config-* in any order thereafter.

module.exports = {
  extends: [
    // These should be added last unless you know what you're doing.
    '@cnsjs/eslint-config',
    '@cnsjs/eslint-config-nodejs',
  ],
};

To lint the .eslintrc.js file itself, you will need to add this config in addition to the base config.

Readme

Keywords

Package Sidebar

Install

npm i @cnsjs/eslint-config-nodejs

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

90.4 kB

Total Files

5

Last publish

Collaborators

  • wecrpto