settings.json 5.9 KB

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