settings.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. {
  2. "typescript.tsdk": "./node_modules/typescript/lib",
  3. "volar.tsPlugin": true,
  4. "volar.tsPluginStatus": false,
  5. "npm.packageManager": "pnpm",
  6. "editor.tabSize": 2,
  7. "prettier.printWidth": 100, // 超过最大值换行
  8. "editor.defaultFormatter": "esbenp.prettier-vscode",
  9. "files.eol": "\n",
  10. "search.exclude": {
  11. "**/node_modules": true,
  12. "**/*.log": true,
  13. "**/*.log*": true,
  14. "**/bower_components": true,
  15. "**/dist": true,
  16. "**/elehukouben": true,
  17. "**/.git": true,
  18. "**/.gitignore": true,
  19. "**/.svn": true,
  20. "**/.DS_Store": true,
  21. "**/.idea": true,
  22. "**/.vscode": false,
  23. "**/yarn.lock": true,
  24. "**/tmp": true,
  25. "out": true,
  26. "dist": true,
  27. "node_modules": true,
  28. "CHANGELOG.md": true,
  29. "examples": true,
  30. "res": true,
  31. "screenshots": true,
  32. "yarn-error.log": true,
  33. "**/.yarn": true
  34. },
  35. "files.exclude": {
  36. "**/.cache": true,
  37. "**/.editorconfig": true,
  38. "**/.eslintcache": true,
  39. "**/bower_components": true,
  40. "**/.idea": true,
  41. "**/tmp": true,
  42. "**/.git": true,
  43. "**/.svn": true,
  44. "**/.hg": true,
  45. "**/CVS": true,
  46. "**/.DS_Store": true
  47. },
  48. "files.watcherExclude": {
  49. "**/.git/objects/**": true,
  50. "**/.git/subtree-cache/**": true,
  51. "**/.vscode/**": true,
  52. "**/node_modules/**": true,
  53. "**/tmp/**": true,
  54. "**/bower_components/**": true,
  55. "**/dist/**": true,
  56. "**/yarn.lock": true
  57. },
  58. "stylelint.enable": true,
  59. "stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
  60. "path-intellisense.mappings": {
  61. "@/": "${workspaceRoot}/src"
  62. },
  63. "[javascriptreact]": {
  64. "editor.defaultFormatter": "esbenp.prettier-vscode"
  65. },
  66. "[typescript]": {
  67. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  68. },
  69. "[typescriptreact]": {
  70. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  71. },
  72. "[html]": {
  73. "editor.defaultFormatter": "esbenp.prettier-vscode"
  74. },
  75. "[css]": {
  76. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  77. },
  78. "[less]": {
  79. "editor.defaultFormatter": "esbenp.prettier-vscode"
  80. },
  81. "[scss]": {
  82. "editor.defaultFormatter": "esbenp.prettier-vscode"
  83. },
  84. "[markdown]": {
  85. "editor.defaultFormatter": "esbenp.prettier-vscode"
  86. },
  87. "editor.codeActionsOnSave": {
  88. "source.fixAll.eslint": true
  89. },
  90. "[vue]": {
  91. "editor.codeActionsOnSave": {
  92. "source.fixAll.eslint": true,
  93. "source.fixAll.stylelint": true
  94. }
  95. },
  96. "i18n-ally.localesPaths": ["src/locales/lang"],
  97. "i18n-ally.keystyle": "nested",
  98. "i18n-ally.sortKeys": true,
  99. "i18n-ally.namespace": true,
  100. "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
  101. "i18n-ally.enabledParsers": ["ts"],
  102. "i18n-ally.sourceLanguage": "en",
  103. "i18n-ally.displayLanguage": "zh-CN",
  104. "i18n-ally.enabledFrameworks": ["vue", "react"],
  105. "cSpell.words": [
  106. "vben",
  107. "windicss",
  108. "tailwind",
  109. "browserslist",
  110. "tailwindcss",
  111. "esnext",
  112. "antv",
  113. "tinymce",
  114. "qrcode",
  115. "sider",
  116. "pinia",
  117. "sider",
  118. "nprogress",
  119. "INTLIFY",
  120. "stylelint",
  121. "esno",
  122. "vitejs",
  123. "sortablejs",
  124. "codemirror",
  125. "iconify",
  126. "commitlint",
  127. "vditor",
  128. "echarts",
  129. "cropperjs",
  130. "logicflow",
  131. "vueuse",
  132. "zxcvbn",
  133. "lintstagedrc",
  134. "brotli",
  135. "sider",
  136. "pnpm",
  137. "antd"
  138. ],
  139. "vetur.format.scriptInitialIndent": true,
  140. "vetur.format.styleInitialIndent": true,
  141. "vetur.validation.script": false,
  142. "MicroPython.executeButton": [
  143. {
  144. "text": "▶",
  145. "tooltip": "运行",
  146. "alignment": "left",
  147. "command": "extension.executeFile",
  148. "priority": 3.5
  149. }
  150. ],
  151. "MicroPython.syncButton": [
  152. {
  153. "text": "$(sync)",
  154. "tooltip": "同步",
  155. "alignment": "left",
  156. "command": "extension.execute",
  157. "priority": 4
  158. }
  159. ],
  160. // 控制相关文件嵌套展示
  161. "explorer.fileNesting.enabled": true,
  162. "explorer.fileNesting.expand": false,
  163. "explorer.fileNesting.patterns": {
  164. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  165. "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
  166. "*.env": "$(capture).env.*",
  167. "package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore"
  168. },
  169. "terminal.integrated.scrollback": 10000
  170. }