eslint-plugin-jest-formatting
eslint-plugin-jest-formatting copied to clipboard
[BUG] `src/something/tests.tsx` doesnt get looked at
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.