Skip to content

Commit

Permalink
chore: fix eslint on Windows (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Nov 17, 2024
1 parent 0ba36cc commit 9b34b54
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eslint.config.ts → eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ import {
prettier,
typescript
} from '@kazupon/eslint-config'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { resolve } from 'node:path'

const __dirname = path.dirname(new URL(import.meta.url).pathname)
const __dirname = fileURLToPath(new URL('.', import.meta.url))

export default defineConfig(
javascript(),
typescript({
parserOptions: {
project: [
path.join(__dirname, './tsconfig.json'),
path.join(__dirname, './packages/unplugin-vue-i18n/tsconfig.json')
resolve(__dirname, './tsconfig.json'),
resolve(__dirname, './packages/unplugin-vue-i18n/tsconfig.json')
]
}
}),
Expand Down

0 comments on commit 9b34b54

Please sign in to comment.