This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

eslint-plugin-abcsize

0.0.3 • Public • Published

eslint-plugin-abcsize

Calculate the Assignment/Branch/Condition Size Metric

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-abcsize:

$ npm install eslint-plugin-abcsize --save-dev

Usage

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

{
    "plugins": [
        "abcsize"
    ]
}

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

{
    "rules": {
        "abcsize/rule-name": 2
    }
}

You can also extend the recommended configuration which will raise errors when the ABC Size of a function exceeds 15.

{
  "extends": ["plugin:abcsize/recommended"]
}

Supported Rules

Package Sidebar

Install

npm i eslint-plugin-abcsize

Weekly Downloads

243

Version

0.0.3

License

MIT

Unpacked Size

19 kB

Total Files

24

Last publish

Collaborators

  • rategravity-dev