Skip to content

Commit

Permalink
fix: parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugma committed Oct 21, 2024
1 parent 293865a commit a9dad9f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import globals from 'globals'
import eslint from '@eslint/js'
import vueParser from 'vue-eslint-parser'
import tsESLint from 'typescript-eslint'
import eslintPluginVue from 'eslint-plugin-vue'

Expand All @@ -15,9 +14,8 @@ const commonLint = {
const vueLint = {
files: ['*.vue', '**/*.vue'],
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tsESLint.parser
parser: '@typescript-eslint/parser'
}
},
rules: {
Expand All @@ -39,10 +37,10 @@ const vueLint = {
}
}

export default [
export default tsESLint.config(
eslint.configs.recommended,
...tsESLint.configs.recommended,
...eslintPluginVue.configs['flat/recommended'],
commonLint,
vueLint
]
)

0 comments on commit a9dad9f

Please sign in to comment.