settings.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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.packageManager": "yarn",
  106. "eslint.options": {
  107. "plugins": ["html", "vue", "javascript", "jsx", "typescript"],
  108. "extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"]
  109. // "configFile": "C:\\Users\\12442\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\.eslintrc.js"
  110. },
  111. "eslint.validate": [
  112. "javascript",
  113. "typescript",
  114. "reacttypescript",
  115. "reactjavascript",
  116. "html",
  117. "vue"
  118. ],
  119. // ===========================================
  120. // ================ Vetur ====================
  121. // ===========================================
  122. "vetur.experimental.templateInterpolationService": true,
  123. "vetur.format.options.tabSize": 2,
  124. "vetur.format.defaultFormatter.html": "js-beautify-html",
  125. "vetur.format.defaultFormatter.scss": "prettier",
  126. "vetur.format.defaultFormatter.css": "prettier",
  127. "vetur.format.defaultFormatter.ts": "prettier-tslint",
  128. "vetur.format.defaultFormatter.js": "prettier",
  129. "vetur.languageFeatures.codeActions": false,
  130. "vetur.format.defaultFormatterOptions": {
  131. "js-beautify-html": {
  132. "wrap_attributes": "force-expand-multiline"
  133. },
  134. "prettier": {
  135. "eslintIntegration": true,
  136. "arrowParens": "always",
  137. "semi": false,
  138. "singleQuote": true
  139. }
  140. },
  141. "liveServer.settings.donotShowInfoMsg": true,
  142. "terminal.integrated.rendererType": "dom",
  143. "telemetry.enableCrashReporter": false,
  144. "telemetry.enableTelemetry": false,
  145. "workbench.settings.enableNaturalLanguageSearch": false,
  146. "path-intellisense.mappings": {
  147. "/@/": "${workspaceRoot}/src"
  148. },
  149. "prettier.requireConfig": true,
  150. "typescript.updateImportsOnFileMove.enabled": "always",
  151. "workbench.sideBar.location": "left",
  152. "[javascriptreact]": {
  153. "editor.defaultFormatter": "esbenp.prettier-vscode"
  154. },
  155. "[typescript]": {
  156. "editor.defaultFormatter": "esbenp.prettier-vscode"
  157. },
  158. "[typescriptreact]": {
  159. "editor.defaultFormatter": "esbenp.prettier-vscode"
  160. },
  161. "[html]": {
  162. "editor.defaultFormatter": "esbenp.prettier-vscode"
  163. },
  164. "[css]": {
  165. "editor.defaultFormatter": "esbenp.prettier-vscode"
  166. },
  167. "[less]": {
  168. "editor.defaultFormatter": "esbenp.prettier-vscode"
  169. },
  170. "[scss]": {
  171. "editor.defaultFormatter": "esbenp.prettier-vscode"
  172. },
  173. "[markdown]": {
  174. "editor.defaultFormatter": "esbenp.prettier-vscode"
  175. },
  176. "editor.codeActionsOnSave": {
  177. "source.fixAll.eslint": true
  178. },
  179. "[vue]": {
  180. "editor.codeActionsOnSave": {
  181. "source.fixAll.eslint": true,
  182. "source.fixAll.stylelint": true
  183. }
  184. },
  185. "i18n-ally.localesPaths": ["src/locales/lang"],
  186. "i18n-ally.keystyle": "nested",
  187. "i18n-ally.sortKeys": true,
  188. "i18n-ally.namespace": true,
  189. "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
  190. "i18n-ally.enabledParsers": ["ts"],
  191. "i18n-ally.sourceLanguage": "en",
  192. "i18n-ally.enabledFrameworks": ["vue", "react"]
  193. }