1.0.0 • Published 4 years ago

eslint-plugin-no-named-test-functions v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Build Status semantic-release

eslint-plugin-no-named-test-functions

Requires that it and test blocks do not contain named variables.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install no-named-test-functions:

$ npm install npm i eslint-plugin-no-named-test-functions --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install no-named-test-functions globally.

Usage

Add no-named-test-functions to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
	"plugins": ["no-named-test-functions"]
}

Then configure the rule to use under the rules section.

{
	"rules": {
		"no-named-test-functions/no-named-test-functions": 2
	}
}