Skip to content

Commit cf35b46

Browse files
authored
fix(eslint): use jest globals everywhere (#130)
🐛 use jest globals everywhere
1 parent 867203e commit cf35b46

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/eslint-plugin/lib/configs

packages/eslint-plugin/lib/configs/tests.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ import testingLibrary from "eslint-plugin-testing-library";
44

55
export const testsConfig = defineFlatConfig([
66
{
7-
files: ["**/*.test.tsx", "**/*.test.ts"],
7+
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
88
languageOptions: {
99
globals: jestPlugin.environments.globals.globals,
1010
},
11+
},
12+
{
13+
files: ["**/*.test.tsx", "**/*.test.ts"],
1114
plugins: {
1215
jest: jestPlugin,
1316
"testing-library": testingLibrary,

0 commit comments

Comments
 (0)