1.0.1 • Published 5 years ago
@uwatch/eslint-plugin v1.0.1
eslint-plugin-uwatch
uWatch set of eslint rules
Installation
You'll first need to install ESLint:
$ yarn add -D eslint
Next, install eslint-plugin-uwatch
:
$ yarn add -D eslint-plugin-uwatch
Usage
Add uwatch
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@uwatch"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@uwatch/rule-name": 2
}
}
Supported Rules
- @uwatch/button-has-id: Enforces
button
to haveid
attribute