@@ -105,21 +105,21 @@ export const defaultOptions: ESLint.Options = {
105105 "allowAutomaticSingleRunInference" : true ,
106106 "ecmaVersion" : "latest" ,
107107 "errorOnTypeScriptSyntacticAndSemanticIssues" : false ,
108- "extraFileExtensions" : [ ".json" ]
108+ "extraFileExtensions" : [ ".json" , ".vue" ]
109109 } ,
110110 "root" : true ,
111111 "settings" : {
112112 "node" : {
113113 "paths" : [ "/src" ] ,
114- "extensions" : [ ".ts" , ".tsx" , ".js" , ".jsx" , ".json" , ".node" , ".mjs" , ".cjs" , ".mts" , ".cts" ] ,
115- "tryExtensions" : [ ".ts" , ".tsx" , ".js" , ".jsx" , ".json" , ".node" , ".mjs" , ".cjs" , ".mts" , ".cts" ]
114+ "extensions" : [ ".vue" , ". ts", ".tsx" , ".js" , ".jsx" , ".json" , ".node" , ".mjs" , ".cjs" , ".mts" , ".cts" ] ,
115+ "tryExtensions" : [ ".vue" , ". ts", ".tsx" , ".js" , ".jsx" , ".json" , ".node" , ".mjs" , ".cjs" , ".mts" , ".cts" ]
116116 } ,
117117 "import/parsers" : {
118118 "@typescript-eslint/parser" : [ ".ts" , ".tsx" ]
119119 } ,
120120 "import/resolver" : {
121121 "node" : {
122- "extensions" : [ ".js" , ".jsx" , ".mjs" , ".cjs" , ".ts" , ".tsx" , ".mts" , ".cts" , ".node" ]
122+ "extensions" : [ ".vue" , ". js", ".jsx" , ".mjs" , ".cjs" , ".ts" , ".tsx" , ".mts" , ".cts" , ".node" ]
123123 } ,
124124 "typescript" : {
125125 "alwaysTryTypes" : true
@@ -219,6 +219,16 @@ export const defaultOptions: ESLint.Options = {
219219 "rules" : {
220220 "json/json" : "off"
221221 }
222+ } ,
223+ {
224+ "files" : [ "*.vue" ] ,
225+ "parser" : "vue-eslint-parser" ,
226+ "parserOptions" : {
227+ "parser" : "@typescript-eslint/parser" ,
228+ "project" : "/tsconfig.json" ,
229+ "sourceType" : "module" ,
230+ "extraFileExtensions" : [ ".vue" ]
231+ }
222232 }
223233 ]
224234 }
0 commit comments