settings.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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": "vscode.typescript-language-features"
  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. },
  88. "[vue]": {
  89. "editor.defaultFormatter": "esbenp.prettier-vscode"
  90. },
  91. "i18n-ally.localesPaths": ["src/locales"],
  92. "i18n-ally.keystyle": "nested",
  93. "i18n-ally.sortKeys": true,
  94. "i18n-ally.namespace": false,
  95. "i18n-ally.enabledParsers": ["ts"],
  96. "i18n-ally.sourceLanguage": "en",
  97. "i18n-ally.displayLanguage": "zh-CN",
  98. "i18n-ally.enabledFrameworks": ["vue", "react"],
  99. "cSpell.words": [
  100. "brotli",
  101. "browserslist",
  102. "codemirror",
  103. "commitlint",
  104. "cropperjs",
  105. "echart",
  106. "echarts",
  107. "esnext",
  108. "esno",
  109. "iconify",
  110. "INTLIFY",
  111. "lintstagedrc",
  112. "logicflow",
  113. "nprogress",
  114. "pinia",
  115. "pnpm",
  116. "qrcode",
  117. "sider",
  118. "sortablejs",
  119. "stylelint",
  120. "svgs",
  121. "unocss",
  122. "unplugin",
  123. "unref",
  124. "videojs",
  125. "VITE",
  126. "vitejs",
  127. "vueuse",
  128. "wangeditor",
  129. "xingyu",
  130. "yudao",
  131. "zxcvbn"
  132. ],
  133. // 控制相关文件嵌套展示
  134. "explorer.fileNesting.enabled": true,
  135. "explorer.fileNesting.expand": false,
  136. "explorer.fileNesting.patterns": {
  137. "*.ts": "$(capture).test.ts, $(capture).test.tsx",
  138. "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
  139. "*.env": "$(capture).env.*",
  140. "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"
  141. },
  142. "terminal.integrated.scrollback": 10000,
  143. "nuxt.isNuxtApp": false
  144. }