|
|
|
@ -2,8 +2,6 @@
|
|
|
|
|
"typescript.tsdk": "./node_modules/typescript/lib", |
|
|
|
|
"npm.packageManager": "pnpm", |
|
|
|
|
"editor.tabSize": 2, |
|
|
|
|
"prettier.printWidth": 140, // 超过最大值换行 |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode", |
|
|
|
|
"files.eol": "\n", |
|
|
|
|
"search.exclude": { |
|
|
|
|
"**/node_modules": true, |
|
|
|
@ -60,8 +58,8 @@
|
|
|
|
|
"path-intellisense.mappings": { |
|
|
|
|
"@/": "${workspaceRoot}/src" |
|
|
|
|
}, |
|
|
|
|
"eslint.experimental.useFlatConfig": true, |
|
|
|
|
"prettier.enable": false, |
|
|
|
|
"eslint.experimental.useFlatConfig": true, |
|
|
|
|
"editor.formatOnSave": false, |
|
|
|
|
"editor.codeActionsOnSave": { |
|
|
|
|
"source.fixAll": "explicit", |
|
|
|
@ -90,35 +88,11 @@
|
|
|
|
|
"jsonc", |
|
|
|
|
"yaml" |
|
|
|
|
], |
|
|
|
|
"[javascriptreact]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[typescript]": { |
|
|
|
|
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" |
|
|
|
|
}, |
|
|
|
|
"[typescriptreact]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[html]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[css]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[less]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[scss]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[markdown]": { |
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|
|
|
|
}, |
|
|
|
|
"[vue]": { |
|
|
|
|
"editor.codeActionsOnSave": { |
|
|
|
|
"source.fixAll.eslint": true, |
|
|
|
|
"source.organizeImports": false, |
|
|
|
|
"source.fixAll.stylelint": true |
|
|
|
|
"source.fixAll.eslint": "explicit", |
|
|
|
|
"source.organizeImports": "never", |
|
|
|
|
"source.fixAll.stylelint": "explicit" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"i18n-ally.localesPaths": ["src/locales/lang"], |
|
|
|
@ -173,18 +147,8 @@
|
|
|
|
|
"yudao", |
|
|
|
|
"zxcvbn" |
|
|
|
|
], |
|
|
|
|
// 控制相关文件嵌套展示 |
|
|
|
|
"explorer.fileNesting.enabled": true, |
|
|
|
|
"explorer.fileNesting.expand": false, |
|
|
|
|
"explorer.fileNesting.patterns": { |
|
|
|
|
"*.ts": "$(capture).test.ts, $(capture).test.tsx", |
|
|
|
|
"*.tsx": "$(capture).test.ts, $(capture).test.tsx", |
|
|
|
|
"*.env": "$(capture).env.*", |
|
|
|
|
"package.json": ".hintrc,pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.gitignore,stylelint.config.js,eslint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore" |
|
|
|
|
}, |
|
|
|
|
"eslint.codeAction.showDocumentation": { |
|
|
|
|
"enable": true |
|
|
|
|
}, |
|
|
|
|
"terminal.integrated.scrollback": 10000, |
|
|
|
|
"nuxt.isNuxtApp": false |
|
|
|
|
"terminal.integrated.scrollback": 10000 |
|
|
|
|
} |
|
|
|
|