settings.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "i18n-ally.disabled": false,
  3. // 默认格式化工具选择prettier
  4. "editor.defaultFormatter": "esbenp.prettier-vscode",
  5. // 保存的时候自动格式化
  6. "editor.formatOnSave": true,
  7. //开启自动修复
  8. "editor.codeActionsOnSave": {
  9. "source.fixAll": "explicit",
  10. "source.fixAll.eslint": "explicit",
  11. "source.fixAll.stylelint": "explicit"
  12. },
  13. // 配置stylelint检查的文件类型范围
  14. "stylelint.validate": ["css", "scss", "vue", "html"], // 与package.json的scripts对应
  15. "stylelint.enable": true,
  16. "css.validate": false,
  17. "less.validate": false,
  18. "scss.validate": false,
  19. "[shellscript]": {
  20. "editor.defaultFormatter": "foxundermoon.shell-format"
  21. },
  22. "[dotenv]": {
  23. "editor.defaultFormatter": "foxundermoon.shell-format"
  24. },
  25. "[vue]": {
  26. "editor.defaultFormatter": "esbenp.prettier-vscode"
  27. },
  28. "[typescript]": {
  29. "editor.defaultFormatter": "esbenp.prettier-vscode"
  30. },
  31. "[jsonc]": {
  32. "editor.defaultFormatter": "esbenp.prettier-vscode"
  33. },
  34. // 配置语言的文件关联
  35. "files.associations": {
  36. "pages.json": "jsonc", // pages.json 可以写注释
  37. "manifest.json": "jsonc" // manifest.json 可以写注释
  38. },
  39. "cSpell.words": [
  40. "Aplipay",
  41. "climblee",
  42. "commitlint",
  43. "dcloudio",
  44. "iconfont",
  45. "qrcode",
  46. "refresherrefresh",
  47. "scrolltolower",
  48. "tabbar",
  49. "Toutiao",
  50. "unibest",
  51. "uvui",
  52. "Wechat",
  53. "WechatMiniprogram",
  54. "Weixin"
  55. ],
  56. "typescript.tsdk": "node_modules\\typescript\\lib",
  57. "explorer.fileNesting.enabled": true,
  58. "explorer.fileNesting.expand": false,
  59. "explorer.fileNesting.patterns": {
  60. "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,.npmrc,.browserslistrc",
  61. ".eslintrc.cjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,.stylelintrc.*,.eslintrc-auto-import.json,.editorconfig,.commitlint.cjs"
  62. },
  63. "i18n-ally.localesPaths": ["src/locale"],
  64. "i18n-ally.keystyle": "nested"
  65. }