Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

sglord/eslint-plugin-no-named-test-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status semantic-release

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-dev

Next, install no-named-test-function:

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

Note: 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
	}
}

About

Insists tests are defined within `it` and `test` blocks

Resources

Stars

Watchers

Forks

Packages

No packages published