settings.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "files.associations": {
  3. "*.css": "postcss"
  4. },
  5. // Enable the ESlint flat config support
  6. "eslint.experimental.useFlatConfig": true,
  7. // Disable the default formatter
  8. "prettier.enable": false,
  9. "editor.formatOnSave": false,
  10. // Auto fix
  11. "editor.codeActionsOnSave": {
  12. "source.fixAll.eslint": "explicit",
  13. "source.organizeImports": "never"
  14. },
  15. // Silent the stylistic rules in you IDE, but still auto fix them
  16. "eslint.rules.customizations": [
  17. { "rule": "style/*", "severity": "off" },
  18. { "rule": "*-indent", "severity": "off" },
  19. { "rule": "*-spacing", "severity": "off" },
  20. { "rule": "*-spaces", "severity": "off" },
  21. { "rule": "*-order", "severity": "off" },
  22. { "rule": "*-dangle", "severity": "off" },
  23. { "rule": "*-newline", "severity": "off" },
  24. { "rule": "*quotes", "severity": "off" },
  25. { "rule": "*semi", "severity": "off" }
  26. ],
  27. // The following is optional.
  28. // It's better to put under project setting `.vscode/settings.json`
  29. // to avoid conflicts with working with different eslint configs
  30. // that does not support all formats.
  31. "eslint.validate": [
  32. "javascript",
  33. "javascriptreact",
  34. "typescript",
  35. "typescriptreact",
  36. "vue",
  37. "html",
  38. "markdown",
  39. "json",
  40. "jsonc",
  41. "yaml"
  42. ]
  43. }