eslint-plugin-no-only-tests icon indicating copy to clipboard operation
eslint-plugin-no-only-tests copied to clipboard

How should "functions" be configured?

Open paullewisn opened this issue 1 year ago • 1 comments

.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 avatar Aug 19 '24 09:08 paullewisn

@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

levibuzolic avatar Feb 04 '25 02:02 levibuzolic