Skip to content

Commit 29fc2ab

Browse files
committed
eslint: Add react version detect and jest env override
1 parent e911639 commit 29fc2ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

eslint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,18 @@ export default [
2222
project: './tsconfig.json',
2323
},
2424
},
25+
settings: {
26+
react: {
27+
version: 'detect',
28+
},
29+
},
30+
overrides: [
31+
{
32+
files: ['**/*.integration-test.*', '**/*.test.*'],
33+
env: {
34+
jest: true,
35+
},
36+
},
37+
],
2538
},
2639
]

0 commit comments

Comments
 (0)