eslint-plugin-test-names

2.1.1 • Public • Published

eslint-plugin-test-names Build Status

Validates if the test names don't contain a certain set of words

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-test-names:

$ npm install eslint-plugin-test-names --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-test-names globally.

Usage

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

{
  "plugins": ["test-names"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "test-names/blacklist-word-in-test-name": [
      2,
      { "words": ["should", "needs to"], "caseInsensitive": true }
    ]
  }
}

Supported Rules

  • blacklist-word-in-test-name: Blacklists a word in the name of a test

/eslint-plugin-test-names/

    Package Sidebar

    Install

    npm i eslint-plugin-test-names

    Weekly Downloads

    2

    Version

    2.1.1

    License

    ISC

    Unpacked Size

    6.99 kB

    Total Files

    7

    Last publish

    Collaborators

    • dschmidt