eslint-plugin-no-only-tests
eslint-plugin-no-only-tests copied to clipboard
How should "functions" be configured?
.eslintrc.json
"no-only-tests/no-only-tests": ["error", { "functions": ["fit", "xit"] }],
output
[Error - 10:49:28] Calculating config file for file:///Users/.../package.json) failed.
Error: .eslintrc.json:
Configuration for rule "no-only-tests/no-only-tests" is invalid:
Value {"functions":["fit","xit"],"block":["describe","it","context","test","tape","fixture","serial","Feature","Scenario","Given","And","When","Then"],"focus":["only"],"fix":false} should NOT have additional properties.
@paullewisn that looks correct, are you sure that you have the latest version?
https://github.com/levibuzolic/eslint-plugin-no-only-tests/blob/9d58ad627a456df5cf9b2932450da5cd7714a0f4/tests.js#L191-L199