settings.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {
  2. "typescript.tsdk": "./node_modules/typescript/lib",
  3. "volar.tsPlugin": true,
  4. "volar.tsPluginStatus": false,
  5. //===========================================
  6. //============= Editor ======================
  7. //===========================================
  8. "explorer.openEditors.visible": 0,
  9. "editor.minimap.renderCharacters": false,
  10. "editor.minimap.maxColumn": 300,
  11. "editor.minimap.showSlider": "always",
  12. "editor.smoothScrolling": true,
  13. "editor.cursorBlinking": "phase",
  14. "editor.cursorSmoothCaretAnimation": true,
  15. "editor.detectIndentation": false,
  16. "editor.defaultFormatter": "esbenp.prettier-vscode",
  17. "diffEditor.ignoreTrimWhitespace": false,
  18. "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  19. "editor.formatOnPaste": true,
  20. "editor.formatOnSave": true,
  21. "editor.suggestSelection": "first",
  22. "editor.trimAutoWhitespace": true,
  23. "editor.quickSuggestions": {
  24. "other": true,
  25. "comments": true,
  26. "strings": true
  27. },
  28. //===========================================
  29. //============= Other =======================
  30. //===========================================
  31. "breadcrumbs.enabled": true,
  32. "open-in-browser.default": "chrome",
  33. //===========================================
  34. //============= emmet =======================
  35. //===========================================
  36. "emmet.triggerExpansionOnTab": true,
  37. "emmet.showAbbreviationSuggestions": true,
  38. "emmet.showExpandedAbbreviation": "always",
  39. "emmet.syntaxProfiles": {
  40. "vue-html": "html",
  41. "vue": "html",
  42. "javascript": "javascriptreact",
  43. "xml": {
  44. "attr_quotes": "single"
  45. }
  46. },
  47. "emmet.includeLanguages": {
  48. "jsx-sublime-babel-tags": "javascriptreact"
  49. },
  50. //===========================================
  51. //============= files =======================
  52. //===========================================
  53. "files.trimTrailingWhitespace": true,
  54. "files.insertFinalNewline": true,
  55. "files.trimFinalNewlines": true,
  56. "files.eol": "\n",
  57. "search.exclude": {
  58. "**/node_modules": true,
  59. "**/*.log": true,
  60. "**/*.log*": true,
  61. "**/bower_components": true,
  62. "**/dist": true,
  63. "**/elehukouben": true,
  64. "**/.git": true,
  65. "**/.gitignore": true,
  66. "**/.svn": true,
  67. "**/.DS_Store": true,
  68. "**/.idea": true,
  69. "**/.vscode": false,
  70. "**/yarn.lock": true,
  71. "**/tmp": true,
  72. "out": true,
  73. "dist": true,
  74. "node_modules": true,
  75. "CHANGELOG.md": true,
  76. "examples": true,
  77. "res": true,
  78. "screenshots": true
  79. },
  80. "files.exclude": {
  81. "**/bower_components": true,
  82. "**/.idea": true,
  83. "**/yarn.lock": true,
  84. "**/tmp": true,
  85. "**/.git": true,
  86. "**/.svn": true,
  87. "**/.hg": true,
  88. "**/CVS": true,
  89. "**/.DS_Store": true
  90. },
  91. "files.watcherExclude": {
  92. // 文件监视排除
  93. "**/.git/objects/**": true,
  94. "**/.git/subtree-cache/**": true,
  95. "**/.vscode/**": true,
  96. "**/node_modules/**": true,
  97. "**/tmp/**": true,
  98. "**/bower_components/**": true,
  99. "**/dist/**": true,
  100. "**/yarn.lock": true
  101. },
  102. "files.associations": {
  103. "*.vue": "vue",
  104. "*.wxss": "css"
  105. },
  106. "stylelint.enable": true,
  107. "stylelint.packageManager": "yarn",
  108. // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
  109. // ===========================================
  110. // ================ Eslint ===================
  111. // ===========================================
  112. "eslint.alwaysShowStatus": true,
  113. "eslint.options": {
  114. "plugins": ["html", "vue", "javascript", "jsx", "typescript"],
  115. "extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"]
  116. },
  117. "eslint.validate": [
  118. "javascript",
  119. "typescript",
  120. "reacttypescript",
  121. "reactjavascript",
  122. "html",
  123. "vue"
  124. ],
  125. // ===========================================
  126. // ================ Vetur ====================
  127. // ===========================================
  128. "vetur.experimental.templateInterpolationService": true,
  129. "vetur.format.options.tabSize": 2,
  130. "vetur.format.defaultFormatter.html": "js-beautify-html",
  131. "vetur.format.defaultFormatter.scss": "prettier",
  132. "vetur.format.defaultFormatter.css": "prettier",
  133. "vetur.format.defaultFormatter.ts": "prettier-tslint",
  134. "vetur.format.defaultFormatter.js": "prettier",
  135. "vetur.languageFeatures.codeActions": false,
  136. "vetur.format.defaultFormatterOptions": {
  137. "js-beautify-html": {
  138. "wrap_attributes": "force-expand-multiline"
  139. },
  140. "prettier": {
  141. "eslintIntegration": true,
  142. "arrowParens": "always",
  143. "semi": false,
  144. "singleQuote": true
  145. }
  146. },
  147. "javascript.updateImportsOnFileMove.enabled": "never",
  148. "liveServer.settings.donotShowInfoMsg": true,
  149. "terminal.integrated.rendererType": "dom",
  150. "telemetry.enableCrashReporter": false,
  151. "telemetry.enableTelemetry": false,
  152. "workbench.settings.enableNaturalLanguageSearch": false,
  153. "path-intellisense.mappings": {
  154. "/@/": "${workspaceRoot}/src"
  155. },
  156. "prettier.requireConfig": true,
  157. "typescript.updateImportsOnFileMove.enabled": "always",
  158. "workbench.sideBar.location": "left",
  159. "[javascriptreact]": {
  160. "editor.defaultFormatter": "esbenp.prettier-vscode"
  161. },
  162. "[typescript]": {
  163. "editor.defaultFormatter": "esbenp.prettier-vscode"
  164. },
  165. "[typescriptreact]": {
  166. "editor.defaultFormatter": "esbenp.prettier-vscode"
  167. },
  168. "[html]": {
  169. "editor.defaultFormatter": "esbenp.prettier-vscode"
  170. },
  171. "[css]": {
  172. "editor.defaultFormatter": "esbenp.prettier-vscode"
  173. },
  174. "[less]": {
  175. "editor.defaultFormatter": "esbenp.prettier-vscode"
  176. },
  177. "[scss]": {
  178. "editor.defaultFormatter": "esbenp.prettier-vscode"
  179. },
  180. "[markdown]": {
  181. "editor.defaultFormatter": "esbenp.prettier-vscode"
  182. },
  183. "editor.codeActionsOnSave": {
  184. "source.fixAll.eslint": true
  185. },
  186. "[vue]": {
  187. "editor.codeActionsOnSave": {
  188. "source.fixAll.eslint": false
  189. }
  190. },
  191. "i18n-ally.localesPaths": ["src/locales/lang"],
  192. "i18n-ally.keystyle": "nested",
  193. "i18n-ally.sortKeys": true,
  194. "i18n-ally.namespace": true,
  195. "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
  196. "i18n-ally.enabledParsers": ["ts"],
  197. "i18n-ally.sourceLanguage": "en",
  198. "i18n-ally.enabledFrameworks": ["vue", "react"]
  199. }