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.
no-redeclare
1 parent c2b17d8 commit 64cfbb4Copy full SHA for 64cfbb4
eslint.config.mjs
@@ -10,10 +10,10 @@ import globals from 'globals';
10
import path from 'node:path';
11
import { fileURLToPath } from 'node:url';
12
13
-const __filename = fileURLToPath(import.meta.url);
14
-const __dirname = path.dirname(__filename);
+const filename = fileURLToPath(import.meta.url);
+const dirname = path.dirname(filename);
15
const compat = new FlatCompat({
16
- baseDirectory: __dirname,
+ baseDirectory: dirname,
17
recommendedConfig: js.configs.recommended,
18
allConfig: js.configs.all,
19
});
0 commit comments