Skip to content

Commit

Permalink
chore: update vscode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Jul 2, 2024
1 parent 343b4d3 commit 68b61e8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
// 禁用默认的格式化程序,改用ESLint进行格式化
"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
// 在IDE中隐藏样式规则的提示,但仍然自动修复它们
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
Expand All @@ -25,7 +23,7 @@
{ "rule": "*semi", "severity": "off" }
],

// Enable eslint for all supported languages
// 为所有支持的语言启用ESLint
"eslint.validate": [
"javascript",
"javascriptreact",
Expand All @@ -36,6 +34,16 @@
"markdown",
"json",
"jsonc",
"yaml"
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}

0 comments on commit 68b61e8

Please sign in to comment.