Skip to content

Commit 5fa1d7a

Browse files
committed
fix(eslint-config): extract parserOptions
1 parent 28dd687 commit 5fa1d7a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/eslint-config/index.cjs

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ function ruleFromStandard(name) {
4040

4141
module.exports = defineConfig({
4242
extends: [
43-
'plugin:vue/vue3-recommended',
4443
'standard',
45-
'plugin:import/typescript',
44+
'plugin:vue/vue3-recommended',
4645
'plugin:jsonc/recommended-with-jsonc',
4746
'plugin:yml/standard',
4847
'plugin:markdown/recommended',
@@ -55,7 +54,8 @@ module.exports = defineConfig({
5554
},
5655
parser: 'vue-eslint-parser',
5756
parserOptions: {
58-
ecmaVersion: 'latest'
57+
ecmaVersion: 'latest',
58+
parser: '@typescript-eslint/parser'
5959
},
6060
reportUnusedDisableDirectives: true,
6161
settings: {
@@ -241,9 +241,6 @@ module.exports = defineConfig({
241241
overrides: [
242242
{
243243
files: ['*.vue'],
244-
parserOptions: {
245-
parser: '@typescript-eslint/parser'
246-
},
247244
rules: {
248245
'no-unused-vars': 'off',
249246
'no-undef': 'off',

0 commit comments

Comments
 (0)