.stylelintrc.yaml 972 B

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