From bef4b63776b445e78c64a6efb5c5983074896790 Mon Sep 17 00:00:00 2001 From: wengxiangmin <157215725@qq.com> Date: Tue, 24 Sep 2024 16:19:10 +0800 Subject: [PATCH] feat: vscode --- .gitignore | 1 - .vscode/settings.json | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 7eaed66..b31739e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ types/ package-lock.json # IDE user config -.vscode/ .idea/ .vs/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0a477dc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,38 @@ +{ + // Disable the default formatter, use eslint instead + "prettier.enable": false, + "editor.formatOnSave": false, + + // Auto fix + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" + }, + + // Silent the stylistic rules in you IDE, but still auto fix them + "eslint.rules.customizations": [ + { "rule": "style/*", "severity": "off" }, + { "rule": "*-indent", "severity": "off" }, + { "rule": "*-spacing", "severity": "off" }, + { "rule": "*-spaces", "severity": "off" }, + { "rule": "*-order", "severity": "off" }, + { "rule": "*-dangle", "severity": "off" }, + { "rule": "*-newline", "severity": "off" }, + { "rule": "*quotes", "severity": "off" }, + { "rule": "*semi", "severity": "off" } + ], + + // Enable eslint for all supported languages + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "markdown", + "json", + "jsonc", + "yaml" + ] +}