1.0.1 • Published 6 years ago
eslint-plugin-no-named-test-function v1.0.1
eslint-plugin-no-named-test-function
Requires that it and test blocks do not contain named variables.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install no-named-test-function:
$ npm install npm i eslint-plugin-no-named-test-function --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install no-named-test-function globally.
Usage
Add no-named-test-function to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["no-named-test-function"]
}Then configure the rule to use under the rules section.
{
"rules": {
"no-named-test-function/no-named-test-function.js": 2
}
}