We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 547af0b commit 6308fdcCopy full SHA for 6308fdc
eslint.config.mjs
@@ -3,6 +3,9 @@ import { includeIgnoreFile } from '@eslint/compat';
3
import prettier from 'eslint-config-prettier';
4
import globals from 'globals';
5
import path from 'path';
6
+import { fileURLToPath } from 'node:url';
7
+
8
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
10
export default [
11
js.configs.recommended,
@@ -22,5 +25,5 @@ export default [
22
25
},
23
26
24
27
- includeIgnoreFile(path.resolve(import.meta.dirname, '.gitignore')),
28
+ includeIgnoreFile(path.resolve(__dirname, '.gitignore')),
29
];
0 commit comments