Skip to content

Commit 9b34b54

Browse files
authored
chore: fix eslint on Windows (#419)
1 parent 0ba36cc commit 9b34b54

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

eslint.config.ts renamed to eslint.config.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ import {
44
prettier,
55
typescript
66
} from '@kazupon/eslint-config'
7-
import path from 'node:path'
7+
import { fileURLToPath } from 'node:url'
8+
import { resolve } from 'node:path'
89

9-
const __dirname = path.dirname(new URL(import.meta.url).pathname)
10+
const __dirname = fileURLToPath(new URL('.', import.meta.url))
1011

1112
export default defineConfig(
1213
javascript(),
1314
typescript({
1415
parserOptions: {
1516
project: [
16-
path.join(__dirname, './tsconfig.json'),
17-
path.join(__dirname, './packages/unplugin-vue-i18n/tsconfig.json')
17+
resolve(__dirname, './tsconfig.json'),
18+
resolve(__dirname, './packages/unplugin-vue-i18n/tsconfig.json')
1819
]
1920
}
2021
}),

0 commit comments

Comments
 (0)