settings.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. // ===
  3. // Spacing
  4. // ===
  5. "editor.insertSpaces": true,
  6. "editor.tabSize": 2,
  7. "editor.trimAutoWhitespace": true,
  8. "files.trimTrailingWhitespace": true,
  9. "files.eol": "\n",
  10. "files.insertFinalNewline": true,
  11. "files.trimFinalNewlines": true,
  12. // ===
  13. // Files
  14. // ===
  15. "files.exclude": {
  16. "**/_import-components": true,
  17. "**/index-normalize-route.js": true,
  18. "**/*.log": true,
  19. "**/*.log*": true,
  20. "dist": true,
  21. "**/coverage": true
  22. },
  23. "files.associations": {
  24. ".markdownlintrc": "jsonc"
  25. },
  26. // ===
  27. // Event Triggers
  28. // ===
  29. "editor.formatOnSave": true,
  30. "editor.defaultFormatter": "esbenp.prettier-vscode",
  31. "[vue]": {
  32. "editor.defaultFormatter": "esbenp.prettier-vscode"
  33. },
  34. "[JavaScript]": {
  35. "editor.defaultFormatter": "esbenp.prettier-vscode"
  36. },
  37. "[html]": {
  38. "editor.defaultFormatter": "esbenp.prettier-vscode"
  39. },
  40. "[SCSS]": {
  41. "editor.defaultFormatter": "esbenp.prettier-vscode"
  42. },
  43. "editor.codeActionsOnSave": {
  44. "source.fixAll.eslint": "explicit",
  45. "source.fixAll.stylelint": "explicit",
  46. "source.fixAll.markdownlint": "explicit"
  47. },
  48. "eslint.validate": ["javascript", "javascriptreact", "vue", "vue-html", "html"],
  49. "vetur.format.enable": false,
  50. "vetur.completion.scaffoldSnippetSources": {
  51. "user": "🗒️",
  52. "workspace": "💼",
  53. "vetur": ""
  54. },
  55. // ===
  56. // HTML
  57. // ===
  58. "html.format.enable": false,
  59. "vetur.validation.template": false,
  60. "emmet.triggerExpansionOnTab": true,
  61. "emmet.includeLanguages": {
  62. "vue-html": "html"
  63. },
  64. "vetur.completion.tagCasing": "initial",
  65. // ===
  66. // JS(ON)
  67. // ===
  68. "jest.autoEnable": false,
  69. "jest.enableCodeLens": false,
  70. "javascript.format.enable": false,
  71. "json.format.enable": false,
  72. "vetur.validation.script": false,
  73. // ===
  74. // CSS
  75. // ===
  76. "stylelint.enable": true,
  77. "stylelint.autoFixOnSave": true,
  78. "stylelint.useLocal": true,
  79. "css.validate": false,
  80. "scss.validate": false,
  81. "vetur.validation.style": false,
  82. // ===
  83. // MARKDOWN
  84. // ===
  85. "[markdown]": {
  86. "editor.wordWrap": "wordWrapColumn",
  87. "editor.wordWrapColumn": 100
  88. },
  89. "stylelint.packageManager": "yarn",
  90. "blueprint.templatesPath": [
  91. "./blueprint-templates",
  92. "./src/blueprint-templates",
  93. "./src_custom/blueprint-templates"
  94. ],
  95. "emeraldwalk.runonsave": {
  96. "commands": [
  97. {
  98. "match": "\\.vue$",
  99. "isAsync": true,
  100. "cmd": "node \"${workspaceFolder}/src/common/components/_auto-import/index.js\" \"${file}\" \"${workspaceFolder}\""
  101. },
  102. {
  103. "match": "src(?:_custom)?[/\\\\][0-9a-z-]+[/\\\\]index\\.js$",
  104. "isAsync": true,
  105. "cmd": "node \"${workspaceFolder}/src/common/services/_router-util/single.js\" \"${file}\" \"${workspaceFolder}\""
  106. },
  107. {
  108. "match": "src_product[/\\\\][a-z-]+[/\\\\][a-z-]+[/\\\\]index\\.js$",
  109. "isAsync": true,
  110. "cmd": "node \"${workspaceFolder}/src/common/services/_router-util/single.js\" \"${file}\" \"${workspaceFolder}\""
  111. }
  112. ]
  113. },
  114. "runTerminalCommand.commands": [
  115. {
  116. "command": "yarn workspace platform run auto-import $PWD %cd%",
  117. "name": "整理自动导入",
  118. "auto": true
  119. },
  120. {
  121. "command": "yarn workspace platform run rename-prefix $PWD %cd%",
  122. "name": "组件批量重命名 sd->oa",
  123. "auto": true
  124. }
  125. ],
  126. "window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}VS Code 🥇🥇🥇",
  127. "editor.maxTokenizationLineLength": 20000000
  128. }