eslint-plugin-no-only-tests
ESLint rule for .only blocks in mocha tests
Last updated 13 days ago by levibuzolic .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-no-only-tests 
SYNC missed versions from official npm registry.

eslint-plugin-no-only-tests

Version Downloads CircleCI

ESLint rule for .only tests in mocha and other JS testing libraries.

Currently matches the following test blocks: describe, it, context, tape, test, 'fixture'.

Designed to prevent you from committing .only tests to CI, disabling tests for your whole team.

Installation

First you'll need to install ESLint and the plugin:

npm install --save-dev eslint eslint-plugin-no-only-tests
# OR
yarn add --dev eslint eslint-plugin-no-only-tests

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

Usage

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

{
  "plugins": [
    "no-only-tests"
  ]
}

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

{
  "rules": {
    "no-only-tests/no-only-tests": 2
  }
}

Current Tags

  • 2.1.0                                ...           latest (13 days ago)

7 Versions

  • 2.1.0                                ...           13 days ago
  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |