We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb4fdbd commit c8aa968Copy full SHA for c8aa968
eslint.config.mjs
@@ -3,7 +3,11 @@
3
import eslint from '@eslint/js'
4
import prettierConfig from 'eslint-config-prettier'
5
import prettierPlugin from 'eslint-plugin-prettier'
6
+import path from 'path'
7
import tseslint from 'typescript-eslint'
8
+import { fileURLToPath } from 'url'
9
+
10
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
11
12
export default tseslint.config(
13
eslint.configs.recommended,
@@ -13,7 +17,8 @@ export default tseslint.config(
17
languageOptions: {
14
18
parserOptions: {
15
19
projectService: true,
16
- tsconfigRootDir: '.'
20
+ // Ensure tsconfigRootDir is an absolute path — using the config file's directory
21
+ tsconfigRootDir: __dirname
22
}
23
},
24
rules: {
0 commit comments