stylelint/rules/colors
on save: the property order, the Prettier formatting (never disabled); warning = a choice to justify (disabled for one line, with a reason). Notations are free. Colors: notations, named colors, invalid hex, color functions.
14 rules, 2 on. Source: lint/stylelint/rules/colors.mjs.
| Rule | Setting | Files | What it checks | Why |
|---|---|---|---|---|
alpha-value-notation | off | SCSS | — | Off: a notation choice, not a mistake. |
color-function-alias-notation | off | SCSS | — | Off: a notation choice, not a mistake. |
color-function-notation | off | SCSS | — | Off: a notation choice, not a mistake. |
color-hex-alpha | off | SCSS | — | — |
color-hex-length | off | SCSS | — | Off: a notation choice, not a mistake. |
color-named | warning, "never" | SCSS | — | Custom: colors come from variables or custom properties, not red. |
color-no-hex | off | SCSS | — | — |
color-no-invalid-hex | error | SCSS | — | — |
function-url-no-scheme-relative | off | SCSS | — | — |
function-url-quotes | off | SCSS | — | Off: a notation choice, not a mistake. |
function-url-scheme-allowed-list | off | SCSS | — | — |
function-url-scheme-disallowed-list | off | SCSS | — | — |
hue-degree-notation | off | SCSS | — | Off: a notation choice, not a mistake. |
lightness-notation | off | SCSS | — | Off: a notation choice, not a mistake. |