settings.json 7.1 KB

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