unibest/.vscode/settings.json

99 lines
2.7 KiB
JSON
Raw Normal View History

2023-12-21 15:52:44 +08:00
{
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
2023-12-24 19:37:39 +08:00
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
2024-01-20 14:57:24 +08:00
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
2023-12-24 19:37:39 +08:00
// 配置语言的文件关联
"files.associations": {
"pages.json": "jsonc", // pages.json 可以写注释
"manifest.json": "jsonc" // manifest.json 可以写注释
},
"cSpell.words": [
2025-06-20 12:12:21 +08:00
"aliyun",
"Aplipay",
2024-02-21 08:53:36 +08:00
"climblee",
"commitlint",
"dcloudio",
2024-05-19 18:47:44 +08:00
"iconfont",
"oxlint",
2024-01-30 20:34:38 +08:00
"qrcode",
"refresherrefresh",
"scrolltolower",
"tabbar",
"Toutiao",
2024-01-23 10:42:55 +08:00
"unibest",
2024-01-30 20:34:38 +08:00
"uvui",
2025-06-20 12:12:21 +08:00
"vitepress",
"Wechat",
"WechatMiniprogram",
"Weixin"
],
2025-01-23 14:57:39 +08:00
"typescript.tsdk": "node_modules\\typescript\\lib",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"README.md": "index.html,favicon.ico,robots.txt,CHANGELOG.md",
"pages.config.ts": "manifest.config.ts,openapi-ts-request.config.ts",
2025-01-23 14:57:39 +08:00
"package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,.npmrc,.browserslistrc",
"eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.editorconfig,.commitlint.cjs,.eslint*,.prettier*"
2025-06-20 12:12:21 +08:00
},
// 禁用默认格式化程序改用ESLint
"prettier.enable": false,
"editor.formatOnSave": false,
// 自动修复
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],
// 为所有支持的语言启用ESLint
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
2023-12-21 15:52:44 +08:00
}