eslint-plugin-code-complexity

0.0.5 • Public • Published

eslint-plugin-code-complexity

eslint-complexity

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-code-complexity:

$ npm install eslint-plugin-code-complexity --save-dev

Usage

Add code-complexity to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "code-complexity"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "code-complexity/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

Package Sidebar

Install

npm i eslint-plugin-code-complexity

Weekly Downloads

7

Version

0.0.5

License

ISC

Unpacked Size

34.8 kB

Total Files

9

Last publish

Collaborators

  • xinqiymsz