Skip to content

Commit 2e486e5

Browse files
committed
fix: eslint vitestGlobals applied to test files only Refs: KEH-281
1 parent 0e83025 commit 2e486e5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

eslint.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const tsConfig = tseslint.config({
1515
tseslint.configs.recommended,
1616
importPlugin.flatConfigs.recommended,
1717
eslintConfigPrettier,
18-
vitestGlobals(),
1918
],
2019
settings: {
2120
react: {
@@ -70,4 +69,9 @@ const tsConfig = tseslint.config({
7069
},
7170
});
7271

73-
export default tsConfig;
72+
const testConfig = tseslint.config({
73+
files: ['**/*.test.{ts,tsx}', 'lib/__tests__/**/*.{ts,tsx}'],
74+
extends: [vitestGlobals()],
75+
});
76+
77+
export default [...tsConfig, ...testConfig];

0 commit comments

Comments
 (0)