Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/eslintDefaultOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,21 @@ export const defaultOptions: ESLint.Options = {
"allowAutomaticSingleRunInference": true,
"ecmaVersion": "latest",
"errorOnTypeScriptSyntacticAndSemanticIssues": false,
"extraFileExtensions": [".json"]
"extraFileExtensions": [".json", ".vue"]
},
"root": true,
"settings": {
"node": {
"paths": ["/src"],
"extensions": [".ts", ".tsx", ".js", ".jsx", ".json", ".node", ".mjs", ".cjs", ".mts", ".cts"],
"tryExtensions": [".ts", ".tsx", ".js", ".jsx", ".json", ".node", ".mjs", ".cjs", ".mts", ".cts"]
"extensions": [".vue",".ts", ".tsx", ".js", ".jsx", ".json", ".node", ".mjs", ".cjs", ".mts", ".cts"],
Comment thread
DMarinhoCodacy marked this conversation as resolved.
"tryExtensions": [".vue",".ts", ".tsx", ".js", ".jsx", ".json", ".node", ".mjs", ".cjs", ".mts", ".cts"]
Comment thread
DMarinhoCodacy marked this conversation as resolved.
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts", ".node"]
"extensions": [".vue",".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts", ".node"]
Comment thread
DMarinhoCodacy marked this conversation as resolved.
},
"typescript": {
"alwaysTryTypes": true
Expand Down Expand Up @@ -219,6 +219,16 @@ export const defaultOptions: ESLint.Options = {
"rules": {
"json/json": "off"
}
},
{
"files": ["*.vue"],
Comment thread
DMarinhoCodacy marked this conversation as resolved.
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
Comment thread
DMarinhoCodacy marked this conversation as resolved.
"project": "/tsconfig.json",
"sourceType": "module",
"extraFileExtensions": [".vue"]
}
}
]
}
Expand Down