eslint-plugin-no-destruction

1.1.4 • Public • Published

eslint-plugin-no-destruction

Prevent object destructions from going out of hand

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-destruction:

npm install eslint-plugin-no-destruction --save-dev

Usage

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

{
    "plugins": [
        "no-destruction"
    ]
}

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

{
    "rules": {
        "no-destruction/rule-name": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

Package Sidebar

Install

npm i eslint-plugin-no-destruction

Weekly Downloads

10

Version

1.1.4

License

ISC

Unpacked Size

3.11 MB

Total Files

24

Last publish

Collaborators

  • tomerh2001