99 lines
2.7 KiB
JSON
99 lines
2.7 KiB
JSON
{
|
||
"[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": [
|
||
"aliyun",
|
||
"Aplipay",
|
||
"climblee",
|
||
"commitlint",
|
||
"dcloudio",
|
||
"iconfont",
|
||
"oxlint",
|
||
"qrcode",
|
||
"refresherrefresh",
|
||
"scrolltolower",
|
||
"tabbar",
|
||
"Toutiao",
|
||
"unibest",
|
||
"uvui",
|
||
"vitepress",
|
||
"Wechat",
|
||
"WechatMiniprogram",
|
||
"Weixin"
|
||
],
|
||
"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",
|
||
"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*"
|
||
},
|
||
// 禁用默认格式化程序,改用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"
|
||
]
|
||
}
|