settings.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. {
  2. "tailwindCSS.experimental.configFile": "internal/tailwind-config/src/index.ts",
  3. // workbench
  4. "workbench.list.smoothScrolling": true,
  5. "workbench.startupEditor": "newUntitledFile",
  6. "workbench.tree.indent": 10,
  7. "workbench.editor.highlightModifiedTabs": true,
  8. "workbench.editor.closeOnFileDelete": true,
  9. "workbench.editor.limit.enabled": true,
  10. "workbench.editor.limit.perEditorGroup": true,
  11. "workbench.editor.limit.value": 5,
  12. // editor
  13. "editor.tabSize": 2,
  14. "editor.detectIndentation": false,
  15. "editor.cursorBlinking": "expand",
  16. "editor.defaultFormatter": "esbenp.prettier-vscode",
  17. "editor.largeFileOptimizations": false,
  18. "editor.accessibilitySupport": "off",
  19. "editor.cursorSmoothCaretAnimation": "on",
  20. "editor.guides.bracketPairs": "active",
  21. "editor.inlineSuggest.enabled": true,
  22. "editor.suggestSelection": "recentlyUsedByPrefix",
  23. "editor.acceptSuggestionOnEnter": "smart",
  24. "editor.suggest.snippetsPreventQuickSuggestions": false,
  25. "editor.stickyScroll.enabled": true,
  26. "editor.hover.sticky": true,
  27. "editor.suggest.insertMode": "replace",
  28. "editor.bracketPairColorization.enabled": true,
  29. "editor.autoClosingBrackets": "beforeWhitespace",
  30. "editor.autoClosingDelete": "always",
  31. "editor.autoClosingOvertype": "always",
  32. "editor.autoClosingQuotes": "beforeWhitespace",
  33. "editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
  34. "editor.codeActionsOnSave": {
  35. "source.fixAll.eslint": "explicit",
  36. "source.fixAll.stylelint": "explicit",
  37. "source.organizeImports": "never"
  38. },
  39. // extensions
  40. "extensions.ignoreRecommendations": true,
  41. // terminal
  42. "terminal.integrated.cursorBlinking": true,
  43. "terminal.integrated.persistentSessionReviveProcess": "never",
  44. "terminal.integrated.tabs.enabled": true,
  45. "terminal.integrated.scrollback": 10000,
  46. "terminal.integrated.stickyScroll.enabled": true,
  47. // files
  48. "files.eol": "\n",
  49. "files.insertFinalNewline": true,
  50. "files.simpleDialog.enable": true,
  51. "files.associations": {
  52. "*.ejs": "html",
  53. "*.art": "html",
  54. "**/tsconfig.json": "jsonc",
  55. "*.json": "jsonc"
  56. },
  57. "files.exclude": {
  58. "**/.eslintcache": true,
  59. "**/bower_components": true,
  60. "**/.turbo": true,
  61. "**/.idea": true,
  62. "**/tmp": true,
  63. "**/.git": true,
  64. "**/.svn": true,
  65. "**/.hg": true,
  66. "**/CVS": true,
  67. "**/.stylelintcache": true,
  68. "**/.DS_Store": true,
  69. "**/vite.config.mts.*": true,
  70. "**/tea.yaml": true
  71. },
  72. "files.watcherExclude": {
  73. "**/.git/objects/**": true,
  74. "**/.git/subtree-cache/**": true,
  75. "**/.vscode/**": true,
  76. "**/node_modules/**": true,
  77. "**/tmp/**": true,
  78. "**/bower_components/**": true,
  79. "**/dist/**": true,
  80. "**/yarn.lock": true
  81. },
  82. // search
  83. "search.searchEditor.singleClickBehaviour": "peekDefinition",
  84. "search.followSymlinks": false,
  85. // 在使用搜索功能时,将这些文件夹/文件排除在外
  86. "search.exclude": {
  87. "**/node_modules": true,
  88. "**/*.log": true,
  89. "**/*.log*": true,
  90. "**/bower_components": true,
  91. "**/dist": true,
  92. "**/elehukouben": true,
  93. "**/.git": true,
  94. "**/.github": true,
  95. "**/.gitignore": true,
  96. "**/.svn": true,
  97. "**/.DS_Store": true,
  98. "**/.vitepress/cache": true,
  99. "**/.idea": true,
  100. "**/.vscode": false,
  101. "**/.yarn": true,
  102. "**/tmp": true,
  103. "*.xml": true,
  104. "out": true,
  105. "dist": true,
  106. "node_modules": true,
  107. "CHANGELOG.md": true,
  108. "**/pnpm-lock.yaml": true,
  109. "**/yarn.lock": true
  110. },
  111. "debug.onTaskErrors": "debugAnyway",
  112. "diffEditor.ignoreTrimWhitespace": false,
  113. "npm.packageManager": "pnpm",
  114. "css.validate": false,
  115. "less.validate": false,
  116. "scss.validate": false,
  117. // extension
  118. "emmet.showSuggestionsAsSnippets": true,
  119. "emmet.triggerExpansionOnTab": false,
  120. "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  121. "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
  122. "stylelint.enable": true,
  123. "stylelint.packageManager": "pnpm",
  124. "stylelint.validate": ["css", "less", "postcss", "scss", "vue"],
  125. "stylelint.snippet": ["css", "less", "postcss", "scss", "vue"],
  126. "typescript.inlayHints.enumMemberValues.enabled": true,
  127. "typescript.preferences.preferTypeOnlyAutoImports": true,
  128. "typescript.preferences.includePackageJsonAutoImports": "on",
  129. "eslint.validate": [
  130. "javascript",
  131. "typescript",
  132. "javascriptreact",
  133. "typescriptreact",
  134. "vue",
  135. "html",
  136. "markdown",
  137. "json",
  138. "jsonc",
  139. "json5"
  140. ],
  141. "tailwindCSS.experimental.classRegex": [
  142. ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
  143. ],
  144. "github.copilot.enable": {
  145. "*": true,
  146. "markdown": true,
  147. "plaintext": false,
  148. "yaml": false
  149. },
  150. "cssVariables.lookupFiles": ["packages/core/base/design/src/**/*.css"],
  151. "i18n-ally.localesPaths": [
  152. "packages/locales/src/langs",
  153. "apps/*/src/locales/langs"
  154. ],
  155. "i18n-ally.enabledParsers": ["json", "ts", "js", "yaml"],
  156. "i18n-ally.sourceLanguage": "en",
  157. "i18n-ally.displayLanguage": "zh-CN",
  158. "i18n-ally.enabledFrameworks": ["vue", "react"],
  159. // 控制相关文件嵌套展示
  160. "explorer.fileNesting.enabled": true,
  161. "explorer.fileNesting.expand": false,
  162. "explorer.fileNesting.patterns": {
  163. "*.ts": "$(capture).test.ts, $(capture).test.tsx, $(capture).spec.ts, $(capture).spec.tsx, $(capture).d.ts",
  164. "*.tsx": "$(capture).test.ts, $(capture).test.tsx, $(capture).spec.ts, $(capture).spec.tsx,$(capture).d.ts",
  165. "*.env": "$(capture).env.*",
  166. "README.md": "README*,CHANGELOG*,LICENSE,CNAME",
  167. "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json",
  168. "Dockerfile": "Dockerfile,.docker*,docker-entrypoint.sh,build-local-docker*",
  169. "eslint.config.mjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*,cspell.json",
  170. "tailwind.config.mjs": "postcss.*"
  171. },
  172. "commentTranslate.hover.enabled": false,
  173. "i18n-ally.keystyle": "nested",
  174. "commentTranslate.multiLineMerge": true
  175. }