feat: 前端接口代理
This commit is contained in:
19
Yi.Ai.Vue3/.vscode/extensions.json
vendored
Normal file
19
Yi.Ai.Vue3/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
// 扩展推荐
|
||||
"recommendations": [
|
||||
// 推荐扩展 vue 官方推荐
|
||||
"Vue.volar",
|
||||
// 推荐扩展 EditorConfig 格式化 scss 换行问题
|
||||
"EditorConfig.EditorConfig",
|
||||
// 推荐扩展 unocss 官方推荐
|
||||
"antfu.unocss",
|
||||
// 推荐扩展 eslint 官方推荐
|
||||
"dbaeumer.vscode-eslint",
|
||||
// 推荐扩展 stylelint 官方推荐 格式化 scss 代码问题
|
||||
"stylelint.vscode-stylelint"
|
||||
]
|
||||
}
|
||||
|
||||
// 最好都安装启用一下,依赖都是最新版本的
|
||||
// 规范开发
|
||||
// 配置文件都配置好了 启用拓展后 vscode 自动保存 将修复不规范的代码
|
||||
61
Yi.Ai.Vue3/.vscode/settings.json
vendored
Normal file
61
Yi.Ai.Vue3/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"eslint.useFlatConfig": true,
|
||||
|
||||
// 关闭默认的配置,我们这里默认不开启prettier格式化
|
||||
"prettier.enable": false,
|
||||
// 关闭默认格式化
|
||||
"editor.formatOnSave": false,
|
||||
// 开启 stylint
|
||||
"stylelint.enable": true,
|
||||
|
||||
// 保存自动修复
|
||||
"editor.codeActionsOnSave": {
|
||||
// 我们这里是指定自定义的修复
|
||||
"source.fixAll.eslint": "explicit",
|
||||
// 来源导入我们不需要给关闭掉
|
||||
"source.organizeImports": "never",
|
||||
// 使用 stylelint 来修复样式问题
|
||||
"source.fixAll.stylelint": "explicit"
|
||||
},
|
||||
|
||||
// 开启 stylelint
|
||||
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass", "html"],
|
||||
|
||||
// 静默样式规则自动修复
|
||||
"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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user