@@ -56,30 +56,25 @@ npm install --save-dev eslint eslint-config-prettier eslint-plugin-vue globals t
56
56
``` ts
57
57
import eslint from ' @eslint/js' ;
58
58
import eslintConfigPrettier from ' eslint-config-prettier' ;
59
+ import eslintPluginVue from ' eslint-plugin-vue' ;
59
60
import globals from ' globals' ;
60
- import pluginVue from ' eslint-plugin-vue' ;
61
- import tseslint from ' typescript-eslint' ;
61
+ import typescriptEslint from ' typescript-eslint' ;
62
62
63
63
export default tseslint .config (
64
- {
65
- ignores: [' *.d.ts' , ' **/coverage' , ' **/dist' ],
66
- },
64
+ { ignores: [' *.d.ts' , ' **/coverage' , ' **/dist' ] },
67
65
{
68
66
extends: [
69
67
eslint .configs .recommended ,
70
- ... tseslint .configs .recommended ,
71
- ... pluginVue .configs [' flat/recommended' ],
68
+ ... typescriptEslint .configs .recommended ,
69
+ ... eslintPluginVue .configs [' flat/recommended' ],
72
70
],
73
- plugins: {
74
- ' @typescript-eslint' : tseslint .plugin ,
75
- },
76
71
files: [' **/*.{ts,vue}' ],
77
72
languageOptions: {
78
- ecmaVersion: 2021 ,
73
+ ecmaVersion: ' latest ' ,
79
74
sourceType: ' module' ,
80
75
globals: globals .browser ,
81
76
parserOptions: {
82
- parser: tseslint .parser ,
77
+ parser: typescriptEslint .parser ,
83
78
},
84
79
},
85
80
rules: {
0 commit comments