fix: 修改vscode 设置
This commit is contained in:
parent
889e3cd5cc
commit
83108663ef
63
.vscode/extensions.json
vendored
63
.vscode/extensions.json
vendored
@ -1,64 +1,3 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar"],
|
||||
|
||||
"eslint.useFlatConfig": true,
|
||||
|
||||
// 关闭默认的配置,我们这里默认不开启prettier格式化
|
||||
"prettier.enable": false,
|
||||
// 关闭默认格式化
|
||||
"editor.formatOnSave": false,
|
||||
|
||||
// 保存自动修复
|
||||
"editor.codeActionsOnSave": {
|
||||
// 我们这里是指定自定义的修复
|
||||
"source.fixAll.eslint": "explicit",
|
||||
// 来源导入我们不需要给关闭掉
|
||||
"source.organizeImports": "never",
|
||||
// 使用 stylelint 来修复样式问题
|
||||
"source.fixAll.stylelint": "explicit",
|
||||
},
|
||||
|
||||
// 静默样式规则自动修复
|
||||
"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 }
|
||||
],
|
||||
|
||||
// 在eslin中开启哪些语言的校验
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"",
|
||||
"html",
|
||||
"markdown",
|
||||
"json",
|
||||
"jsonc",
|
||||
"yaml",
|
||||
"toml",
|
||||
"xml",
|
||||
"gql",
|
||||
"graphql",
|
||||
"astro",
|
||||
"css",
|
||||
"less",
|
||||
"scss",
|
||||
"pcss",
|
||||
"postcss"
|
||||
],
|
||||
"cSpell.words": [
|
||||
"aeac",
|
||||
"esno",
|
||||
"radash",
|
||||
"unplugin"
|
||||
]
|
||||
"recommendations": ["Vue.volar"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user