settings.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. {
  2. "typescript.tsdk": "node_modules/typescript/lib",
  3. "npm.packageManager": "pnpm",
  4. "editor.tabSize": 2,
  5. "prettier.printWidth": 100, // 超过最大值换行
  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. "**/tmp": true,
  23. "out": true,
  24. "dist": true,
  25. "node_modules": true,
  26. "CHANGELOG.md": true,
  27. "examples": true,
  28. "res": true,
  29. "screenshots": true,
  30. "yarn-error.log": true,
  31. "**/.yarn": true
  32. },
  33. "files.exclude": {
  34. "**/.cache": true,
  35. "**/.editorconfig": true,
  36. "**/.eslintcache": true,
  37. "**/bower_components": true,
  38. "**/.idea": true,
  39. "**/tmp": true,
  40. "**/.git": true,
  41. "**/.svn": true,
  42. "**/.hg": true,
  43. "**/CVS": true,
  44. "**/.DS_Store": true
  45. },
  46. "files.watcherExclude": {
  47. "**/.git/objects/**": true,
  48. "**/.git/subtree-cache/**": true,
  49. "**/.vscode/**": true,
  50. "**/node_modules/**": true,
  51. "**/tmp/**": true,
  52. "**/bower_components/**": true,
  53. "**/dist/**": true,
  54. "**/yarn.lock": true
  55. },
  56. "stylelint.enable": true,
  57. "stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
  58. "path-intellisense.mappings": {
  59. "@/": "${workspaceRoot}/src"
  60. },
  61. "[javascriptreact]": {
  62. "editor.defaultFormatter": "esbenp.prettier-vscode"
  63. },
  64. "[typescript]": {
  65. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  66. },
  67. "[typescriptreact]": {
  68. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  69. },
  70. "[html]": {
  71. "editor.defaultFormatter": "esbenp.prettier-vscode"
  72. },
  73. "[css]": {
  74. "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
  75. },
  76. "[less]": {
  77. "editor.defaultFormatter": "esbenp.prettier-vscode"
  78. },
  79. "[scss]": {
  80. "editor.defaultFormatter": "esbenp.prettier-vscode"
  81. },
  82. "[markdown]": {
  83. "editor.defaultFormatter": "esbenp.prettier-vscode"
  84. },
  85. "editor.codeActionsOnSave": {
  86. "source.fixAll.eslint": "explicit",
  87. "source.fixAll.stylelint": "explicit"
  88. },
  89. "[vue]": {
  90. "editor.defaultFormatter": "esbenp.prettier-vscode"
  91. },
  92. "i18n-ally.localesPaths": ["src/locales"],
  93. "i18n-ally.keystyle": "nested",
  94. "i18n-ally.sortKeys": true,
  95. "i18n-ally.namespace": false,
  96. "i18n-ally.enabledParsers": ["ts"],
  97. "i18n-ally.sourceLanguage": "en",
  98. "i18n-ally.displayLanguage": "zh-CN",
  99. "i18n-ally.enabledFrameworks": ["vue", "react"],
  100. "cSpell.words": [
  101. "brotli",
  102. "browserslist",
  103. "codemirror",
  104. "commitlint",
  105. "cropperjs",
  106. "echart",
  107. "echarts",
  108. "esnext",
  109. "esno",
  110. "iconify",
  111. "INTLIFY",
  112. "lintstagedrc",
  113. "logicflow",
  114. "nprogress",
  115. "pinia",
  116. "pnpm",
  117. "qrcode",
  118. "sider",
  119. "sortablejs",
  120. "stylelint",
  121. "svgs",
  122. "unocss",
  123. "unplugin",
  124. "unref",
  125. "videojs",
  126. "VITE",
  127. "vitejs",
  128. "vueuse",
  129. "wangeditor",
  130. "xingyu",
  131. "yudao",
  132. "zxcvbn"
  133. ],
  134. // 控制相关文件嵌套展示
  135. "explorer.fileNesting.enabled": true,
  136. "explorer.fileNesting.expand": false,
  137. "explorer.fileNesting.patterns": {
  138. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  139. "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
  140. "*.env": "$(capture).env.*",
  141. "package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore"
  142. },
  143. "terminal.integrated.scrollback": 10000,
  144. "nuxt.isNuxtApp": false
  145. }