eslint-plugin-deprecated-attributes
v0.0.0
Published
ESLint plugin for deprecating the use of `id` attribute in AngularJS HTML files.
Downloads
2
Maintainers
Readme
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
| Name | Description |
| :------------------------------------------- | :--------------------------------------------------------- |
| deprecated-id | Disallow the use of id
attribute in AngularJS HTML files |