0.0.2 ā¢ Published 9 months ago
eslint-plugin-testing v0.0.2
eslint-plugin-testing
ESLint plugin for testing.
Installation
First, install ESLint:
npm install --save-dev eslint
Next, install
eslint-plugin-testing
:npm install --save-dev eslint-plugin-testing
Usage
Add testing
to the plugins section of your .eslintrc
configuration file:
{
"plugins": ["testing"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"testing/aaa-comments": "error"
}
}
Recommended
To use the recommended configuration, extend it in your .eslintrc
file:
{
"extends": ["plugin:testing/recommended"]
}
All recommend rules will be set to error by default. You can however disable some rules by setting turning them off
in your .eslintrc
file or by setting them to warn
in your .eslintrc
.
All
To use the all configuration, extend it in your .eslintrc
file:
{
"extends": ["plugin:testing/all"]
}
Rules
š¼ Configurations enabled in.\
ā ļø Configurations set to warn in.\
š Set in the all
configuration.\
ā
Set in the recommended
configuration.
Name | Description | š¼ | ā ļø |
---|---|---|---|
aaa-comments | Enforce AAA comments | ā | š |
Licence
Copyright Ā© 2023-present, Matan Yadaev