eslint-plugin-jest-formatting icon indicating copy to clipboard operation
eslint-plugin-jest-formatting copied to clipboard

[BUG] `src/something/tests.tsx` doesnt get looked at

Open pvinis opened this issue 9 months ago • 2 comments

Describe the bug We have files like src/something/tests.tsx and the rules of this repo don't run there!

Expected behavior The rules should run on there too.

Additional context I noticed that on https://github.com/dangreenisrael/eslint-plugin-jest-formatting/blob/master/src/index.ts#L141-L151 there is a list of filenames, and ours is not in there. I could make a PR to add these, but also I think we can probably remove the overrides bit from this file, and put the rules one level up, as a sibling to plugins, and everything will work well.

Normally (and we too) people have a testMatch on the jest config, so it already knows all the test files of the project. No need to have special detection on this repo.

Let me know if I should make a PR to add our test or if I should make a PR removing the overrides.

pvinis avatar Sep 29 '23 20:09 pvinis