Manage attributes on specified components
Inspired by eslint-plugin-idiomatic-jsx
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-manage-attributes
:
$ npm install eslint-plugin-manage-attributes --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-manage-attributes
globally.
Add manage-attributes
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["manage-attributes"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"manage-attributes/rule-name": 2
}
}
- require-attributes: Require specified
attributes
on specifiedcomponents
to be defined.
eslint-plugin-manage-attributes
is licensed under the MIT License.