0.0.5 • Published 3 years ago

eslint-plugin-code-complexity v0.0.5

Weekly downloads
77
License
ISC
Repository
-
Last release
3 years ago

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