1.0.1 • Published 6 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 eslintNext, install eslint-plugin-uwatch:
$ yarn add -D eslint-plugin-uwatchUsage
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
buttonto haveidattribute