From 585dc2e02f20047bce3939dabef8a4cc85b2285d Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Mon, 23 Jun 2025 11:23:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(.vscode):=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=B9=B6=E9=87=8D=E6=96=B0=E7=BB=84=E7=BB=87=20settings.json?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除重复和冗余的配置项,重新组织文件结构以提高可读性 保留必要的文件关联和拼写检查配置 --- .vscode/settings.json | 73 ++++++++++++------------------------------- 1 file changed, 20 insertions(+), 53 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ac73327..fea52c8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,52 +1,10 @@ { - // 默认格式化工具选择prettier - "editor.defaultFormatter": "esbenp.prettier-vscode", - - // 配置stylelint检查的文件类型范围 - "stylelint.validate": ["css", "scss", "vue", "html"], // 与package.json的scripts对应 - "stylelint.enable": true, - "css.validate": false, - "less.validate": false, - "scss.validate": false, - "[shellscript]": { - "editor.defaultFormatter": "foxundermoon.shell-format" - }, - "[dotenv]": { - "editor.defaultFormatter": "foxundermoon.shell-format" - }, - "[vue]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, // 配置语言的文件关联 "files.associations": { "pages.json": "jsonc", // pages.json 可以写注释 "manifest.json": "jsonc" // manifest.json 可以写注释 }, - "cSpell.words": [ - "Aplipay", - "climblee", - "commitlint", - "dcloudio", - "iconfont", - "oxlint", - "qrcode", - "refresherrefresh", - "scrolltolower", - "tabbar", - "Toutiao", - "unibest", - "uview", - "uvui", - "Wechat", - "WechatMiniprogram", - "Weixin" - ], + "typescript.tsdk": "node_modules\\typescript\\lib", "explorer.fileNesting.enabled": true, "explorer.fileNesting.expand": false, @@ -57,16 +15,6 @@ "eslint.config.mjs": ".commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*" }, - // // 保存的时候自动格式化 - // "prettier.enable": true, - // "editor.formatOnSave": true, - // // 开启自动修复 - // "editor.codeActionsOnSave": { - // "source.fixAll": "explicit", - // "source.fixAll.eslint": "explicit", - // "source.fixAll.stylelint": "explicit" - // }, - // Disable the default formatter, use eslint instead "prettier.enable": false, "editor.formatOnSave": false, @@ -115,5 +63,24 @@ "scss", "pcss", "postcss" + ], + "cSpell.words": [ + "Aplipay", + "climblee", + "commitlint", + "dcloudio", + "iconfont", + "oxlint", + "qrcode", + "refresherrefresh", + "scrolltolower", + "tabbar", + "Toutiao", + "unibest", + "uview", + "uvui", + "Wechat", + "WechatMiniprogram", + "Weixin" ] }