settings.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. // Enable the ESlint flat config support
  3. "eslint.experimental.useFlatConfig": true,
  4. "stylelint.validate": [
  5. "css",
  6. "less",
  7. "postcss",
  8. "scss",
  9. "sass",
  10. "vue"
  11. ],
  12. // Disable the default formatter, use eslint instead
  13. "prettier.enable": false,
  14. "editor.formatOnSave": false,
  15. // Auto fix
  16. "editor.codeActionsOnSave": {
  17. "source.fixAll.eslint": "explicit",
  18. "source.organizeImports": "never",
  19. "source.fixAll.stylelint": "explicit"
  20. },
  21. // Silent the stylistic rules in you IDE, but still auto fix them
  22. "eslint.rules.customizations": [
  23. { "rule": "style/*", "severity": "off" },
  24. { "rule": "format/*", "severity": "off" },
  25. { "rule": "*-indent", "severity": "off" },
  26. { "rule": "*-spacing", "severity": "off" },
  27. { "rule": "*-spaces", "severity": "off" },
  28. { "rule": "*-order", "severity": "off" },
  29. { "rule": "*-dangle", "severity": "off" },
  30. { "rule": "*-newline", "severity": "off" },
  31. { "rule": "*quotes", "severity": "off" },
  32. { "rule": "*semi", "severity": "off" }
  33. ],
  34. // Enable eslint for all supported languages
  35. "eslint.validate": [
  36. "javascript",
  37. "javascriptreact",
  38. "typescript",
  39. "typescriptreact",
  40. "vue",
  41. "html",
  42. "markdown",
  43. "json",
  44. "jsonc",
  45. "yaml",
  46. "toml"
  47. ],
  48. "cSpell.words": [
  49. "nocheck",
  50. "unocss"
  51. ]
  52. }