settings.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. {
  2. "tailwindCSS.experimental.configFile": "packages/@core/base/design/src/css/global.css",
  3. "tailwindCSS.lint.suggestCanonicalClasses": "ignore",
  4. // workbench
  5. "workbench.list.smoothScrolling": true,
  6. "workbench.startupEditor": "newUntitledFile",
  7. "workbench.tree.indent": 10,
  8. "workbench.editor.highlightModifiedTabs": true,
  9. "workbench.editor.closeOnFileDelete": true,
  10. "workbench.editor.limit.enabled": true,
  11. "workbench.editor.limit.perEditorGroup": true,
  12. "workbench.editor.limit.value": 5,
  13. // editor
  14. "editor.tabSize": 2,
  15. "editor.detectIndentation": false,
  16. "editor.cursorBlinking": "expand",
  17. "editor.largeFileOptimizations": true,
  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.quickSuggestions": {
  35. "strings": "on"
  36. },
  37. "editor.codeActionsOnSave": {
  38. "source.fixAll.eslint": "explicit",
  39. "source.fixAll.stylelint": "explicit",
  40. "source.organizeImports": "never"
  41. },
  42. "editor.defaultFormatter": "esbenp.prettier-vscode",
  43. "[html]": {
  44. "editor.defaultFormatter": "esbenp.prettier-vscode"
  45. },
  46. "[css]": {
  47. "editor.defaultFormatter": "esbenp.prettier-vscode"
  48. },
  49. "[scss]": {
  50. "editor.defaultFormatter": "esbenp.prettier-vscode"
  51. },
  52. "[javascript]": {
  53. "editor.defaultFormatter": "esbenp.prettier-vscode"
  54. },
  55. "[typescript]": {
  56. "editor.defaultFormatter": "esbenp.prettier-vscode"
  57. },
  58. "[json]": {
  59. "editor.defaultFormatter": "esbenp.prettier-vscode"
  60. },
  61. "[markdown]": {
  62. "editor.defaultFormatter": "esbenp.prettier-vscode"
  63. },
  64. "[jsonc]": {
  65. "editor.defaultFormatter": "esbenp.prettier-vscode"
  66. },
  67. "[vue]": {
  68. "editor.defaultFormatter": "esbenp.prettier-vscode"
  69. },
  70. // extensions
  71. "extensions.ignoreRecommendations": true,
  72. // terminal
  73. "terminal.integrated.cursorBlinking": true,
  74. "terminal.integrated.persistentSessionReviveProcess": "never",
  75. "terminal.integrated.tabs.enabled": true,
  76. "terminal.integrated.scrollback": 10000,
  77. "terminal.integrated.stickyScroll.enabled": true,
  78. // files
  79. "files.eol": "\n",
  80. "files.insertFinalNewline": true,
  81. "files.simpleDialog.enable": true,
  82. "files.associations": {
  83. "*.css": "tailwindcss",
  84. "*.ejs": "html",
  85. "*.art": "html",
  86. "**/tsconfig.json": "jsonc",
  87. "*.json": "jsonc",
  88. "package.json": "json"
  89. },
  90. "files.exclude": {
  91. "**/.eslintcache": true,
  92. "**/bower_components": true,
  93. "**/.turbo": true,
  94. "**/.idea": true,
  95. "**/.vitepress": true,
  96. "**/tmp": true,
  97. "**/.git": true,
  98. "**/.svn": true,
  99. "**/.hg": true,
  100. "**/CVS": true,
  101. "**/.stylelintcache": true,
  102. "**/.DS_Store": true,
  103. "**/vite.config.mts.*": true,
  104. "**/tea.yaml": true
  105. },
  106. "files.watcherExclude": {
  107. "**/.git/objects/**": true,
  108. "**/.git/subtree-cache/**": true,
  109. "**/.vscode/**": true,
  110. "**/node_modules/**": true,
  111. "**/tmp/**": true,
  112. "**/bower_components/**": true,
  113. "**/dist/**": true,
  114. "**/yarn.lock": true
  115. },
  116. "typescript.tsserver.exclude": ["**/node_modules", "**/dist", "**/.turbo"],
  117. // search
  118. "search.searchEditor.singleClickBehaviour": "peekDefinition",
  119. "search.followSymlinks": false,
  120. // 在使用搜索功能时,将这些文件夹/文件排除在外
  121. "search.exclude": {
  122. "**/node_modules": true,
  123. "**/*.log": true,
  124. "**/*.log*": true,
  125. "**/bower_components": true,
  126. "**/dist": true,
  127. "**/elehukouben": true,
  128. "**/.git": true,
  129. "**/.github": true,
  130. "**/.gitignore": true,
  131. "**/.svn": true,
  132. "**/.DS_Store": true,
  133. "**/.vitepress/cache": true,
  134. "**/.idea": true,
  135. "**/.vscode": false,
  136. "**/.yarn": true,
  137. "**/tmp": true,
  138. "*.xml": true,
  139. "out": true,
  140. "dist": true,
  141. "node_modules": true,
  142. "CHANGELOG.md": true,
  143. "**/pnpm-lock.yaml": true,
  144. "**/yarn.lock": true
  145. },
  146. "debug.onTaskErrors": "debugAnyway",
  147. "diffEditor.ignoreTrimWhitespace": false,
  148. "npm.packageManager": "pnpm",
  149. "css.validate": false,
  150. "less.validate": false,
  151. "scss.validate": false,
  152. // extension
  153. "emmet.showSuggestionsAsSnippets": true,
  154. "emmet.triggerExpansionOnTab": false,
  155. "errorLens.enabledDiagnosticLevels": ["warning", "error"],
  156. "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
  157. "stylelint.enable": true,
  158. "stylelint.packageManager": "pnpm",
  159. "stylelint.validate": ["css", "less", "postcss", "scss", "vue"],
  160. "stylelint.customSyntax": "postcss-html",
  161. "stylelint.snippet": ["css", "less", "postcss", "scss", "vue"],
  162. "typescript.inlayHints.enumMemberValues.enabled": true,
  163. "typescript.preferences.preferTypeOnlyAutoImports": true,
  164. "typescript.preferences.includePackageJsonAutoImports": "on",
  165. "eslint.validate": [
  166. "javascript",
  167. "typescript",
  168. "javascriptreact",
  169. "typescriptreact",
  170. "vue",
  171. "html",
  172. "markdown",
  173. "json",
  174. "jsonc",
  175. "json5",
  176. "yaml"
  177. ],
  178. "tailwindCSS.experimental.classRegex": [
  179. ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
  180. ],
  181. "github.copilot.enable": {
  182. "*": true,
  183. "markdown": true,
  184. "plaintext": false,
  185. "yaml": false
  186. },
  187. "cssVariables.lookupFiles": ["packages/core/base/design/src/**/*.css"],
  188. "i18n-ally.localesPaths": [
  189. "packages/locales/src/langs",
  190. "playground/src/locales/langs",
  191. "apps/*/src/locales/langs"
  192. ],
  193. "i18n-ally.pathMatcher": "{locale}/{namespace}.{ext}",
  194. "i18n-ally.enabledParsers": ["json"],
  195. "i18n-ally.sourceLanguage": "en",
  196. "i18n-ally.displayLanguage": "zh-CN",
  197. "i18n-ally.enabledFrameworks": ["vue", "react"],
  198. "i18n-ally.keystyle": "nested",
  199. "i18n-ally.sortKeys": true,
  200. "i18n-ally.namespace": true,
  201. // 控制相关文件嵌套展示
  202. "explorer.fileNesting.enabled": true,
  203. "explorer.fileNesting.expand": false,
  204. "explorer.fileNesting.patterns": {
  205. "*.ts": "$(capture).test.ts, $(capture).test.tsx, $(capture).spec.ts, $(capture).spec.tsx, $(capture).d.ts",
  206. "*.tsx": "$(capture).test.ts, $(capture).test.tsx, $(capture).spec.ts, $(capture).spec.tsx,$(capture).d.ts",
  207. "*.env": "$(capture).env.*",
  208. "README.md": "README*,CHANGELOG*,LICENSE,CNAME",
  209. "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json",
  210. "eslint.config.mjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,cspell.json,lefthook.yml"
  211. },
  212. "commentTranslate.hover.enabled": false,
  213. "commentTranslate.multiLineMerge": true,
  214. "vue.server.hybridMode": true,
  215. "typescript.tsdk": "node_modules/typescript/lib",
  216. "oxc.enable": false
  217. }