.stylelintrc.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "root": true,
  3. "plugins": ["stylelint-scss"],
  4. "extends": [
  5. "stylelint-config-standard",
  6. "stylelint-config-html/vue",
  7. "stylelint-config-recess-order",
  8. "stylelint-config-recommended-vue",
  9. "stylelint-prettier/recommended"
  10. ],
  11. "overrides": [
  12. {
  13. "files": ["**/*.vue"],
  14. "customSyntax": "postcss-html"
  15. },
  16. {
  17. "files": ["**/*.scss"],
  18. "customSyntax": "postcss-scss"
  19. }
  20. ],
  21. "rules": {
  22. "function-url-quotes": "always",
  23. "import-notation": "string",
  24. "no-descending-specificity": null,
  25. "no-empty-source": null,
  26. "color-hex-length": "short",
  27. "no-duplicate-selectors": null,
  28. "selector-class-pattern": null,
  29. "property-no-unknown": [true, { "ignoreSelectors": [":root"] }],
  30. "declaration-block-no-duplicate-custom-properties": [
  31. true,
  32. {
  33. "ignoreProperties": ["--vp-screen-max-width"]
  34. }
  35. ],
  36. "at-rule-no-unknown": null,
  37. "function-no-unknown": null,
  38. "at-rule-empty-line-before": null,
  39. "no-invalid-position-at-import-rule": null
  40. },
  41. "ignoreFiles": ["*.html"]
  42. }