settings.json 7.2 KB

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