Releases: levibuzolic/eslint-plugin-no-only-tests
Releases · levibuzolic/eslint-plugin-no-only-tests
v3.3.0
v3.2.0
What's Changed
Development Changes
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #41
- Bump semver from 7.3.5 to 7.5.4 by @dependabot in #40
New Contributors
Full Changelog: v3.1.0...v3.2.0
v3.1.0
v3.0.0
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
- Create CODE_OF_CONDUCT.md by @levibuzolic in #30
- Tidy up readme and make some minor syntax changes by @levibuzolic in #31
- Target node >=5 which supports the spread syntax which is used in the package by @levibuzolic in #32
Full Changelog: v2.6.0...v3.0.0
v2.6.0
v2.5.0
v2.4.0
- 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(() => {})
v2.3.1
v2.3.0
- 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
andassert.focus
.
v2.2.0
- Added rule for catching
.only
blocks forserial
- #9 @IevgenRagulin