0.0.0 • Published 2 years ago

eslint-plugin-deprecated-attributes v0.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

eslint-plugin-deprecated-attributes

ESLint plugin for deprecating the use of id attribute in AngularJS HTML files.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-deprecated-attributes:

npm install eslint-plugin-deprecated-attributes --save-dev

Usage

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

{
    "plugins": [
        "deprecated-attributes"
    ]
}

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

{
    "rules": {
        "deprecated-attributes/deprecated-id": 2
    }
}

Rules

NameDescription
deprecated-idDisallow the use of id attribute in AngularJS HTML files