.stylelintrc.yaml 1002 B

123456789101112131415161718192021222324252627
  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. # PatternFly CSS vars don't conform to stylelint's regex. Disable this rule.
  11. custom-property-pattern: null
  12. function-disallowed-list:
  13. - rgb
  14. # Disable the standard rule to allow BEM-style classnames with underscores.
  15. selector-class-pattern: null
  16. # Disallow CSS classnames prefixed with .pf- or .co- as these prefixes are
  17. # reserved by PatternFly and OpenShift console.
  18. selector-disallowed-list:
  19. - "*"
  20. - /\.(pf|co)-/
  21. # Plugins should avoid naked element selectors like `table` and `li` since
  22. # this can impact layout of existing pages in console.
  23. selector-max-type:
  24. - 0
  25. - ignore:
  26. - compounded
  27. - descendant