From 2538daf8a9d50523c278194a9fb23766901ca6b2 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Mon, 26 Feb 2024 10:49:52 +0100 Subject: [PATCH] chore: update linter settings --- .vscode/settings.json | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index efa8e5d3..5e1aadfa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,17 +1,31 @@ // Place your settings in this file to overwrite default and user settings. { - "files.exclude": { - "out": false // set this to true to hide the "out" folder with the compiled JS files - }, - "search.exclude": { - "out": true // set this to false to include "out" folder in search results - }, + // Enable the ESlint flat config support + "eslint.experimental.useFlatConfig": true, + // Turn off tsc task auto detection since we have the necessary tasks as npm scripts "typescript.tsc.autoDetect": "off", - "[typescript]": { - "editor.defaultFormatter": "dbaeumer.vscode-eslint" - }, + // Disable the default formatter, use eslint instead + "prettier.enable": false, + "editor.formatOnSave": false, + + // Auto fix "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", "source.organizeImports": "never" - } + }, + + // Enable eslint for all supported languages + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "markdown", + "json", + "jsonc", + "yaml" + ] }