.stylelintrc.yaml 782 B

1234567891011121314151617181920212223
  1. extends:
  2. - stylelint-config-standard
  3. - stylelint-config-prettier
  4. rules:
  5. # Disallow color names and hex colors as these don't work well with dark mode.
  6. # Use PF global variables instead:
  7. # https://patternfly-react-main.surge.sh/developer-resources/global-css-variables#global-css-variables
  8. color-named: never
  9. color-no-hex: true
  10. function-disallowed-list:
  11. - rgb
  12. # Disallow CSS classnames prefixed with .pf- or .co- as these prefixes are
  13. # reserved by PatternFly and OpenShift console.
  14. selector-disallowed-list:
  15. - "*"
  16. - /\.(pf|co)-/
  17. # Plugins should avoid naked element selectors like `table` and `li` since
  18. # this can impact layout of existing pages in console.
  19. selector-max-type:
  20. - 0
  21. - ignore:
  22. - compounded
  23. - descendant