ESLint plugin for testing.
-
First, install ESLint:
npm install --save-dev eslint
-
Next, install
eslint-plugin-testing
:npm install --save-dev eslint-plugin-testing
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"
}
}
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
.
To use the all configuration, extend it in your .eslintrc
file:
{
"extends": ["plugin:testing/all"]
}
💼 Configurations enabled in.
🌐 Set in the all
configuration.
✅ Set in the recommended
configuration.
Name | Description | 💼 | |
---|---|---|---|
aaa-comments | Enforce AAA comments | ✅ | 🌐 |
Copyright © 2023-present, Matan Yadaev