Skip to content

Commit c8aa968

Browse files
chore: update dependencies
1 parent bb4fdbd commit c8aa968

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eslint.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import eslint from '@eslint/js'
44
import prettierConfig from 'eslint-config-prettier'
55
import prettierPlugin from 'eslint-plugin-prettier'
6+
import path from 'path'
67
import tseslint from 'typescript-eslint'
8+
import { fileURLToPath } from 'url'
9+
10+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
711

812
export default tseslint.config(
913
eslint.configs.recommended,
@@ -13,7 +17,8 @@ export default tseslint.config(
1317
languageOptions: {
1418
parserOptions: {
1519
projectService: true,
16-
tsconfigRootDir: '.'
20+
// Ensure tsconfigRootDir is an absolute path — using the config file's directory
21+
tsconfigRootDir: __dirname
1722
}
1823
},
1924
rules: {

0 commit comments

Comments
 (0)