@cloudflight/eslint-plugin-node

0.24.0 • Public • Published

@cloudflight/eslint-plugin-node

The Cloudflight ESLint Plugin for Node provides multiple configurations of ESLint rules recommended by Cloudflight.

You can find the directory of all rules including their reasoning here.

Dependencies

The following dependencies are required:

"@cloudflight/eslint-plugin-typescript": ">=0.24.0",
"@rushstack/eslint-patch": "1.2.0",
"eslint": ">=8.0.0 <9.0.0"

Usage

In your package.json add the following:

"devDependencies": {
    ...
    "@cloudflight/eslint-plugin-node": "<version>",
    ...
  }

The plugin provides 1 configuration:

  • @cloudflight/node/recommended
    • Contains rules for Node files

Now open your .eslintrc.js and add one of the configurations:

require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
    ...
    extends: ['plugin:@cloudflight/node/recommended'],
    ...
};

Readme

Keywords

Package Sidebar

Install

npm i @cloudflight/eslint-plugin-node

Weekly Downloads

115

Version

0.24.0

License

Apache-2.0

Unpacked Size

15.7 kB

Total Files

11

Last publish

Collaborators

  • cloudflight-admin
  • jenglisch