0.0.0 • Published 3 years ago
eslint-plugin-deprecated-attributes v0.0.0
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-devNext, install eslint-plugin-deprecated-attributes:
npm install eslint-plugin-deprecated-attributes --save-devUsage
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 |
0.0.0
3 years ago