.stylelintrc 878 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "processors": ["stylelint-processor-styled-components"],
  3. "extends": [
  4. "stylelint-config-styled-components",
  5. "stylelint-config-recommended",
  6. ],
  7. "plugins": ["stylelint-declaration-use-variable"],
  8. "rules": {
  9. "block-no-empty": null,
  10. "color-named": "never",
  11. "color-no-hex": true,
  12. "function-disallowed-list": ["/^rgb/", "/^hsl/"],
  13. "no-empty-source": null,
  14. "no-descending-specificity": null,
  15. "no-duplicate-selectors": null,
  16. "property-no-vendor-prefix": [true, {
  17. "ignoreProperties": ["tab-size", "hyphens"],
  18. }],
  19. "selector-type-no-unknown": null,
  20. "sh-waqar/declaration-use-variable": [[
  21. "border-radius",
  22. "border-top-left-radius",
  23. "border-top-right-radius",
  24. "border-bottom-left-radius",
  25. "border-bottom-right-radius",
  26. "font-family",
  27. "font-size",
  28. "z-index"
  29. ]],
  30. },
  31. }