settings.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. {
  2. "typescript.tsdk": "./node_modules/typescript/lib",
  3. "npm.packageManager": "pnpm",
  4. "editor.tabSize": 2,
  5. "prettier.printWidth": 140, // 超过最大值换行
  6. "editor.defaultFormatter": "esbenp.prettier-vscode",
  7. "files.eol": "\n",
  8. "search.exclude": {
  9. "**/node_modules": true,
  10. "**/*.log": true,
  11. "**/*.log*": true,
  12. "**/bower_components": true,
  13. "**/dist": true,
  14. "**/elehukouben": true,
  15. "**/.git": true,
  16. "**/.gitignore": true,
  17. "**/.svn": true,
  18. "**/.DS_Store": true,
  19. "**/.idea": true,
  20. "**/.vscode": false,
  21. "**/yarn.lock": true,
  22. "pnpm-lock.yaml": true,
  23. "**/tmp": true,
  24. "out": true,
  25. "dist": true,
  26. "public": 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. "eslint.experimental.useFlatConfig": true,
  64. "prettier.enable": false,
  65. "editor.formatOnSave": false,
  66. "editor.codeActionsOnSave": {
  67. "source.fixAll": "explicit",
  68. "source.organizeImports": "never"
  69. },
  70. "eslint.rules.customizations": [
  71. { "rule": "style/*", "severity": "off" },
  72. { "rule": "*-indent", "severity": "off" },
  73. { "rule": "*-spacing", "severity": "off" },
  74. { "rule": "*-spaces", "severity": "off" },
  75. { "rule": "*-order", "severity": "off" },
  76. { "rule": "*-dangle", "severity": "off" },
  77. { "rule": "*-newline", "severity": "off" },
  78. { "rule": "*quotes", "severity": "off" },
  79. { "rule": "*semi", "severity": "off" }
  80. ],
  81. "eslint.validate": [
  82. "javascript",
  83. "javascriptreact",
  84. "typescript",
  85. "typescriptreact",
  86. "vue",
  87. "html",
  88. "markdown",
  89. "json",
  90. "jsonc",
  91. "yaml"
  92. ],
  93. "[javascriptreact]": {
  94. "editor.defaultFormatter": "esbenp.prettier-vscode"
  95. },
  96. "[typescript]": {
  97. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  98. },
  99. "[typescriptreact]": {
  100. "editor.defaultFormatter": "esbenp.prettier-vscode"
  101. },
  102. "[html]": {
  103. "editor.defaultFormatter": "esbenp.prettier-vscode"
  104. },
  105. "[css]": {
  106. "editor.defaultFormatter": "esbenp.prettier-vscode"
  107. },
  108. "[less]": {
  109. "editor.defaultFormatter": "esbenp.prettier-vscode"
  110. },
  111. "[scss]": {
  112. "editor.defaultFormatter": "esbenp.prettier-vscode"
  113. },
  114. "[markdown]": {
  115. "editor.defaultFormatter": "esbenp.prettier-vscode"
  116. },
  117. "[vue]": {
  118. "editor.codeActionsOnSave": {
  119. "source.fixAll.eslint": true,
  120. "source.organizeImports": false,
  121. "source.fixAll.stylelint": true
  122. }
  123. },
  124. "i18n-ally.localesPaths": ["src/locales/lang"],
  125. "i18n-ally.keystyle": "nested",
  126. "i18n-ally.sortKeys": true,
  127. "i18n-ally.namespace": true,
  128. "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
  129. "i18n-ally.enabledParsers": ["json"],
  130. "i18n-ally.sourceLanguage": "en",
  131. "i18n-ally.displayLanguage": "zh-CN",
  132. "i18n-ally.enabledFrameworks": ["vue", "react"],
  133. "cSpell.words": [
  134. "antd",
  135. "antdv",
  136. "antfu",
  137. "antv",
  138. "brotli",
  139. "browserslist",
  140. "Cascader",
  141. "codemirror",
  142. "commitlint",
  143. "cropperjs",
  144. "echarts",
  145. "esnext",
  146. "esno",
  147. "iconify",
  148. "Inited",
  149. "INTLIFY",
  150. "lintstagedrc",
  151. "logicflow",
  152. "nprogress",
  153. "picocolors",
  154. "pinia",
  155. "pnpm",
  156. "qrcode",
  157. "sider",
  158. "sortablejs",
  159. "stylelint",
  160. "svgs",
  161. "tailwind",
  162. "tailwindcss",
  163. "tinymce",
  164. "unocss",
  165. "unref",
  166. "vben",
  167. "vditor",
  168. "videojs",
  169. "vitejs",
  170. "vuedraggable",
  171. "vueuse",
  172. "xingyuv",
  173. "yudao",
  174. "zxcvbn"
  175. ],
  176. // 控制相关文件嵌套展示
  177. "explorer.fileNesting.enabled": true,
  178. "explorer.fileNesting.expand": false,
  179. "explorer.fileNesting.patterns": {
  180. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  181. "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
  182. "*.env": "$(capture).env.*",
  183. "package.json": ".hintrc,pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.gitignore,stylelint.config.js,eslint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore"
  184. },
  185. "eslint.codeAction.showDocumentation": {
  186. "enable": true
  187. },
  188. "terminal.integrated.scrollback": 10000,
  189. "nuxt.isNuxtApp": false
  190. }