Custom eslint rules for Changing Health
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-owd-ch
:
$ npm install eslint-plugin-owd-ch --save-dev
Add owd-ch
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"owd-ch"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"owd-ch/rule-name": 2
}
}
owd-ch/require-testid
: Require data-testid
with interactive elements