Skip to content

Commit 6d8e993

Browse files
Explicitly set TS project path in ESLint config (#2023)
1 parent 0fab41e commit 6d8e993

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import tsEslint from 'typescript-eslint';
77
import js from '@eslint/js';
88
import pluginReactHooks from 'eslint-plugin-react-hooks';
99
import pluginJestDom from 'eslint-plugin-jest-dom';
10+
import path from 'node:path';
1011

1112
export default defineConfig(
1213
globalIgnores( [ '**/node_modules/', '**/dist/', '**/out/', '**/wp-files/', '**/vendor/' ] ),
@@ -36,6 +37,7 @@ export default defineConfig(
3637
'import/resolver': {
3738
typescript: {
3839
alwaysTryTypes: true,
40+
project: path.join( import.meta.dirname, 'tsconfig.json' ),
3941
},
4042
},
4143
},

0 commit comments

Comments
 (0)