eslint-plugin-react-button-has-type
v0.0.3
Published
Checks that all buttons have a non empty type attribute
Downloads
6
Maintainers
Readme
eslint-plugin-react-button-has-type
Checks that all buttons have a set type attribute
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-react-button-has-type
:
$ npm install eslint-plugin-react-button-has-type --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-react-button-has-type
globally.
Usage
Add react-button-has-type
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"react-button-has-type"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"react-button-has-type/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here