settings.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. // Enable the ESlint flat config support
  3. "eslint.useFlatConfig": true,
  4. // Disable the default formatter, use eslint instead
  5. "prettier.enable": false,
  6. "editor.formatOnSave": false,
  7. // Auto fix
  8. "editor.codeActionsOnSave": {
  9. "source.fixAll": "explicit",
  10. "source.organizeImports": "never"
  11. },
  12. // Silent the stylistic rules in you IDE, but still auto fix them
  13. "eslint.rules.customizations": [
  14. { "rule": "style/*", "severity": "off" },
  15. { "rule": "*-indent", "severity": "off" },
  16. { "rule": "*-spacing", "severity": "off" },
  17. { "rule": "*-spaces", "severity": "off" },
  18. { "rule": "*-order", "severity": "off" },
  19. { "rule": "*-dangle", "severity": "off" },
  20. { "rule": "*-newline", "severity": "off" },
  21. { "rule": "*quotes", "severity": "off" },
  22. { "rule": "*semi", "severity": "off" }
  23. ],
  24. // Enable eslint for all supported languages
  25. "eslint.validate": [
  26. "javascript",
  27. "javascriptreact",
  28. "typescript",
  29. "typescriptreact",
  30. "vue",
  31. "html",
  32. "markdown",
  33. "json",
  34. "jsonc",
  35. "yaml",
  36. "toml",
  37. "xml",
  38. "gql",
  39. "graphql",
  40. "astro",
  41. "css",
  42. "less",
  43. "scss",
  44. "pcss",
  45. "postcss"
  46. ],
  47. // Specify the UI library you need to prompt
  48. "common-intellisense.showSlots": false,
  49. "common-intellisense.ui": [
  50. "vant4"
  51. ],
  52. // Configuration of i18n i18n-ally
  53. "i18n-ally.enabledParsers": ["json"],
  54. "i18n-ally.displayLanguage": "zh-CN",
  55. "i18n-ally.localesPaths": [
  56. "src/locales"
  57. ],
  58. "i18n-ally.keystyle": "nested",
  59. // Markdownlint rules
  60. "markdownlint.config": {
  61. "default": true,
  62. "MD033": false,
  63. "MD041": false
  64. }
  65. }