1.0.0 • Published 4 years ago
eslint-plugin-force-data-test-in-elements v1.0.0
eslint-plugin-force-data-test-in-elements
Force developers to add data-test attribute in every input / dropdown and button
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-force-data-test-in-elements
:
$ npm install eslint-plugin-force-data-test-in-elements --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-force-data-test-in-elements
globally.
Usage
Add force-data-test-in-elements
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"force-data-test-in-elements"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"force-data-test-in-elements/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here
1.0.0
4 years ago