前端转vue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.json 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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": "on",
  15. "editor.detectIndentation": false,
  16. "diffEditor.ignoreTrimWhitespace": false,
  17. "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  18. "editor.formatOnPaste": true,
  19. "editor.formatOnSave": 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. "javascript": "javascriptreact",
  42. "xml": {
  43. "attr_quotes": "single"
  44. }
  45. },
  46. "emmet.includeLanguages": {
  47. "jsx-sublime-babel-tags": "javascriptreact"
  48. },
  49. //===========================================
  50. //============= files =======================
  51. //===========================================
  52. "files.trimTrailingWhitespace": false,
  53. "files.insertFinalNewline": true,
  54. "files.trimFinalNewlines": true,
  55. "files.eol": "\n",
  56. "search.exclude": {
  57. "**/node_modules": true,
  58. "**/*.log": true,
  59. "**/*.log*": true,
  60. "**/bower_components": true,
  61. "**/dist": true,
  62. "**/elehukouben": true,
  63. "**/.git": true,
  64. "**/.gitignore": true,
  65. "**/.svn": true,
  66. "**/.DS_Store": true,
  67. "**/.idea": true,
  68. "**/.vscode": false,
  69. "**/yarn.lock": true,
  70. "**/tmp": true,
  71. "out": true,
  72. "dist": true,
  73. "node_modules": true,
  74. "CHANGELOG.md": true,
  75. "examples": true,
  76. "res": true,
  77. "screenshots": true
  78. },
  79. "files.exclude": {
  80. "**/bower_components": true,
  81. "**/.idea": true,
  82. "**/yarn.lock": true,
  83. "**/tmp": true,
  84. "**/.git": true,
  85. "**/.svn": true,
  86. "**/.hg": true,
  87. "**/CVS": true,
  88. "**/.DS_Store": true
  89. },
  90. "files.watcherExclude": {
  91. // 文件监视排除
  92. "**/.git/objects/**": true,
  93. "**/.git/subtree-cache/**": true,
  94. "**/.vscode/**": true,
  95. "**/node_modules/**": true,
  96. "**/tmp/**": true,
  97. "**/bower_components/**": true,
  98. "**/dist/**": true,
  99. "**/yarn.lock": true
  100. },
  101. "files.associations": {
  102. "*.vue": "vue",
  103. "*.wxss": "css"
  104. },
  105. "stylelint.enable": true,
  106. "stylelint.packageManager": "yarn",
  107. "css.validate": true,
  108. "less.validate": true,
  109. "scss.validate": true,
  110. // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
  111. // ===========================================
  112. // ================ Eslint ===================
  113. // ===========================================
  114. // "eslint.enable": true,
  115. "eslint.alwaysShowStatus": true,
  116. "eslint.options": {
  117. // 配置
  118. "plugins": [
  119. "html",
  120. "vue",
  121. "javascript",
  122. "jsx",
  123. "typescript"
  124. ],
  125. "extensions": [
  126. ".js",
  127. ".jsx",
  128. ".ts",
  129. ".tsx",
  130. ".vue"
  131. ]
  132. },
  133. "eslint.validate": [
  134. "javascript",
  135. "typescript",
  136. "reacttypescript",
  137. "reactjavascript",
  138. "html",
  139. "vue"
  140. ],
  141. // "eslint.autoFixOnSave": true,
  142. // ===========================================
  143. // ================ Vetur ====================
  144. // ===========================================
  145. "vetur.experimental.templateInterpolationService": true,
  146. "vetur.format.options.tabSize": 2,
  147. "vetur.format.defaultFormatter.html": "prettyhtml",
  148. "vetur.format.defaultFormatter.scss": "prettier",
  149. "vetur.format.defaultFormatter.css": "prettier",
  150. "vetur.format.defaultFormatter.ts": "prettier-tslint",
  151. "vetur.format.defaultFormatter.js": "prettier",
  152. "vetur.languageFeatures.codeActions": false,
  153. "vetur.format.defaultFormatterOptions": {
  154. // "js-beautify-html": {
  155. // // [auto|force|force-aligned|force-expand-multiline]
  156. // "wrap_attributes":"force-expand-multiline",
  157. // "wrap_line_length": 200,
  158. // },
  159. "prettier": {
  160. "eslintIntegration": true,
  161. "arrowParens": "always",
  162. // 去掉末尾空格
  163. "semi": false,
  164. "singleQuote": true,
  165. "trailingComma": "none"
  166. }
  167. },
  168. "javascript.updateImportsOnFileMove.enabled": "never",
  169. "liveServer.settings.donotShowInfoMsg": true,
  170. "terminal.integrated.rendererType": "dom",
  171. "telemetry.enableCrashReporter": false,
  172. "telemetry.enableTelemetry": false,
  173. "workbench.settings.enableNaturalLanguageSearch": false,
  174. "path-intellisense.mappings": {
  175. "@/": "${workspaceRoot}/src"
  176. },
  177. "prettier.requireConfig": true,
  178. "typescript.updateImportsOnFileMove.enabled": "always",
  179. "workbench.sideBar.location": "left",
  180. "[javascriptreact]": {
  181. "editor.defaultFormatter": "vscode.typescript-language-features"
  182. },
  183. "[typescript]": {
  184. "editor.defaultFormatter": "vscode.typescript-language-features"
  185. },
  186. "[typescriptreact]": {
  187. "editor.defaultFormatter": "vscode.typescript-language-features"
  188. },
  189. "[html]": {
  190. "editor.defaultFormatter": "esbenp.prettier-vscode"
  191. },
  192. "[css]": {
  193. "editor.defaultFormatter": "esbenp.prettier-vscode"
  194. },
  195. "[less]": {
  196. "editor.defaultFormatter": "michelemelluso.code-beautifier"
  197. },
  198. "[scss]": {
  199. "editor.defaultFormatter": "esbenp.prettier-vscode"
  200. },
  201. "[markdown]": {
  202. "editor.defaultFormatter": "esbenp.prettier-vscode"
  203. },
  204. "editor.codeActionsOnSave": {
  205. "source.fixAll.eslint": "explicit"
  206. },
  207. "i18n-ally.localesPaths": [
  208. "src/locales/lang"
  209. ],
  210. "i18n-ally.keystyle": "nested",
  211. "i18n-ally.sortKeys": true,
  212. "i18n-ally.namespace": true,
  213. "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
  214. "i18n-ally.enabledParsers": [
  215. "ts"
  216. ],
  217. "i18n-ally.sourceLanguage": "zh",
  218. "i18n-ally.enabledFrameworks": [
  219. "vue",
  220. "react"
  221. ],
  222. "better-comments.tags": [
  223. {
  224. "tag": "todo",
  225. "color": "#FF8C00",
  226. "strikethrough": false,
  227. "underline": false,
  228. "backgroundColor": "transparent",
  229. "bold": false,
  230. "italic": false
  231. },
  232. {
  233. "tag": "bug",
  234. "color": "#FF2D00",
  235. "strikethrough": false,
  236. "underline": false,
  237. "backgroundColor": "transparent",
  238. "bold": false,
  239. "italic": false
  240. },
  241. {
  242. "tag": "warn",
  243. "color": "#3498DB",
  244. "strikethrough": false,
  245. "underline": false,
  246. "backgroundColor": "transparent",
  247. "bold": false,
  248. "italic": false
  249. },
  250. {
  251. "tag": "//",
  252. "color": "#474747",
  253. "strikethrough": true,
  254. "underline": false,
  255. "backgroundColor": "transparent",
  256. "bold": false,
  257. "italic": false
  258. },
  259. {
  260. "tag": "*",
  261. "color": "#98C379",
  262. "strikethrough": false,
  263. "underline": false,
  264. "backgroundColor": "transparent",
  265. "bold": false,
  266. "italic": false
  267. },
  268. {
  269. "tag": "info",
  270. "color": "#35A0FF",
  271. "strikethrough": false,
  272. "underline": false,
  273. "backgroundColor": "transparent",
  274. "bold": false,
  275. "italic": false
  276. },
  277. {
  278. "tag": "ques",
  279. "color": "#FF5400",
  280. "strikethrough": false,
  281. "underline": false,
  282. "backgroundColor": "transparent",
  283. "bold": false,
  284. "italic": false
  285. },
  286. ],
  287. "editor.defaultFormatter": "octref.vetur",
  288. "[vue]": {
  289. "editor.defaultFormatter": "Vue.volar"
  290. },
  291. // "better-comments.highlightPlainText": true
  292. }