settings.json 7.2 KB

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