eslint-plugin-no-only-tests

ESLint rule for catching focused/only test blocks

MIT License

Downloads
5.2M
Stars
87
Committers
12

Bot releases are hidden (Show)

eslint-plugin-no-only-tests - v3.3.0 Latest Release

Published by levibuzolic 2 months ago

eslint-plugin-no-only-tests - v3.2.0

Published by levibuzolic 2 months ago

What's Changed

Development Changes

New Contributors

Full Changelog: https://github.com/levibuzolic/eslint-plugin-no-only-tests/compare/v3.1.0...v3.2.0

eslint-plugin-no-only-tests - v3.1.0

Published by levibuzolic almost 2 years ago

eslint-plugin-no-only-tests - v3.0.0

Published by levibuzolic about 2 years ago

Added

  • Block scope matchers can accept a trailing * to optionally match blocks by prefix #35

Breaking

  • Block matchers no longer match prefixes of blocks by default, can now be configured via options #35

Other

Full Changelog: https://github.com/levibuzolic/eslint-plugin-no-only-tests/compare/v2.6.0...v3.0.0

eslint-plugin-no-only-tests - v2.6.0

Published by levibuzolic over 3 years ago

  • Disable auto fixing by default, allow it to be optionally enabled. #26
eslint-plugin-no-only-tests - v2.5.0

Published by levibuzolic over 3 years ago

  • Add the ability to auto-fix violations #19 thanks @tgreen7
eslint-plugin-no-only-tests - v2.4.0

Published by levibuzolic almost 5 years ago

  • Add support for defining 2 levels deep in blocks (ie. ava.default)
  rules: {
    'no-only-tests/no-only-tests': ['error', {
      block: ['ava.default'],
      focus: ['only']
    }]
  }

Will now raise lint errors for code that looks like:

ava.default.only(() => {})
eslint-plugin-no-only-tests - v2.3.1

Published by levibuzolic almost 5 years ago

  • Bump js-yaml from 3.13.0 to 3.13.1 due to security vulnerability - #11
eslint-plugin-no-only-tests - v2.3.0

Published by levibuzolic over 5 years ago

  • Allow test block names to be specified in options - #10

If you use a testing framework that uses an unsupported block name, or a different way of focusing test (something other than .only) you can specify an array of blocks and focus methods to match in the options.

{
  "rules": {
    "no-only-tests/no-only-tests": ["error", {"block": ["test", "it", "assert"], "focus": ["only", "focus"]}]
  }
}

The above example will catch any uses of test.only, test.focus, it.only, it.focus, assert.only and assert.focus.

eslint-plugin-no-only-tests - v2.2.0

Published by levibuzolic over 5 years ago

  • Added rule for catching .only blocks for serial - #9 @IevgenRagulin
eslint-plugin-no-only-tests - v2.1.0

Published by levibuzolic over 5 years ago

  • Added rule for catching .only blocks for fixture - #8 @roughy
eslint-plugin-no-only-tests - v2.0.0

Published by levibuzolic over 7 years ago

  • Updated rule format to ESLint 3
  • Updated ESLint dependency to >=3.0.0
  • Updated node engine to >=4.0.0
  • Get CircleCI up and running
eslint-plugin-no-only-tests - v1.1.0

Published by levibuzolic over 7 years ago

  • Updated rule to use Identifier rather than CallExpression
  • Changed reporter to give a more generic message (removed reference to mocha)
  • Added additional test coverage
eslint-plugin-no-only-tests - v1.0.1

Published by levibuzolic over 7 years ago

  • Added additional test coverage
  • Removed unnecessary dependencies in package.json
eslint-plugin-no-only-tests - v1.0.0

Published by levibuzolic over 7 years ago

  • Initial version
eslint-plugin-no-only-tests - v1.2.0

Published by levibuzolic over 7 years ago

  • Added rules for catching .only blocks for test, context and tape