.stylelintrc.yaml 1001 B

12345678910111213141516171819202122232425262728293031323334
  1. extends:
  2. - stylelint-config-standard
  3. rules:
  4. # Disallow custom colors as these don't work well with dark mode.
  5. # Use PF semantic tokens instead:
  6. # https://www.patternfly.org/tokens/all-patternfly-tokens
  7. color-named: never
  8. color-no-hex: true
  9. function-disallowed-list:
  10. - rgb
  11. - rgba
  12. - hsl
  13. - hsla
  14. - oklch
  15. - oklch
  16. - hwb
  17. - lab
  18. - lch
  19. # PatternFly CSS vars don't conform to stylelint's regex. Disable this rule.
  20. custom-property-pattern: null
  21. # Disable the standard rule to allow BEM-style class names with underscores.
  22. selector-class-pattern: null
  23. # Disallow CSS class names prefixed with .pf- or .co- as these prefixes are
  24. # reserved by PatternFly and OpenShift console.
  25. selector-disallowed-list:
  26. - "*"
  27. - /\.(pf|co)-/
  28. # Plugins should avoid naked element selectors like `table` and `li` since
  29. # this can impact layout of existing pages in console.
  30. selector-max-type:
  31. - 0
  32. - ignore:
  33. - compounded
  34. - descendant