Skip to content

Commit d1ef8ec

Browse files
committed
fix linting
1 parent ef7af6d commit d1ef8ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

eslint.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,20 @@ import ember from 'eslint-plugin-ember/recommended';
2020
import importPlugin from 'eslint-plugin-import';
2121
import n from 'eslint-plugin-n';
2222
import globals from 'globals';
23+
import { dirname } from 'node:path';
24+
import { fileURLToPath } from 'node:url';
2325
import ts from 'typescript-eslint';
2426

27+
const configDir = dirname(fileURLToPath(import.meta.url));
28+
2529
const esmParserOptions = {
2630
ecmaFeatures: { modules: true },
2731
ecmaVersion: 'latest',
2832
};
2933

3034
const tsParserOptions = {
3135
projectService: true,
32-
tsconfigRootDir: import.meta.dirname,
36+
tsconfigRootDir: configDir,
3337
};
3438

3539
export default defineConfig([

0 commit comments

Comments
 (0)