settings.json 7.1 KB

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