levibuzolic / eslint-plugin-no-only-tests

ESLint rule for catching focused/only test blocks
https://www.npmjs.com/package/eslint-plugin-no-only-tests
MIT License
92 stars 18 forks source link

How should "functions" be configured? #46

Open paullewisn opened 2 months ago

paullewisn commented 2 months ago

.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.