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
.