Commit 2dcae8dc by Jaxon

chore(editor, vscode): 调整编辑器配置与VS Code工作区设置

- 更新.editorconfig将缩进大小从4改为2
- 优化VS Code扩展推荐列表,添加Vue.volar支持
- 配置ESLint与Prettier,启用格式化并禁用Prettier,新增多语言lint验证
1 parent 1c67e389
......@@ -3,7 +3,7 @@ root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
{
"recommendations": [
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"esbenp.prettier-vscode"
]
"recommendations": [
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"dbaeumer.vscode-eslint",
"Vue.volar"
]
}
\ No newline at end of file
{
"eslint.enable": true,
"eslint.format.enable": true,
"prettier.enable": false,
"i18n-ally.localesPaths": [
"src/locales"
],
......@@ -27,8 +30,30 @@
"text.updateImports.jsts",
"text"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"json",
"jsonc",
"vue",
"html",
"mjs",
"markdown",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
],
"javascript.preferences.importModuleSpecifier": "non-relative", // 优先使用 @/ 别名路径
"javascript.suggest.autoImports": true, // 确保这个是 true
"vue.updateImportsOnFileMove.enabled": true,
"i18n-ally.sourceLanguage": "zh-chs"
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!