stylelint/rules/values-and-units
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. Values and units: units, lengths, numbers, functions, strings, and rem without decimals.
19 rules, 5 on. Source: lint/stylelint/rules/values-and-units.mjs.
| Rule | Setting | Files | What it checks | Why |
|---|---|---|---|---|
annotation-no-unknown | off | SCSS | — | — |
declaration-property-value-disallowed-list | warning, [{"/.*/":["/\\b\\d+\\.\\d+rem\\b/"]},{"message":"A rem va… | SCSS | — | Custom: rem values are whole steps (1rem, 2rem): 1.25rem is an in-between size, not a clean step. |
function-allowed-list | off | SCSS | — | — |
function-calc-no-unspaced-operator | error | SCSS | — | — |
function-disallowed-list | off | SCSS | — | — |
function-linear-gradient-no-nonstandard-direction | error | SCSS | — | — |
function-name-case | off | SCSS | — | Off: a notation choice, not a mistake. |
function-no-unknown | off | SCSS | — | — |
length-zero-no-unit | off | SCSS | — | Off: a notation choice, not a mistake. |
number-max-precision | off | SCSS | — | Off: a notation choice, not a mistake. |
string-no-newline | error | SCSS | — | — |
time-min-milliseconds | off | SCSS | — | — |
unit-allowed-list | off | SCSS | — | — |
unit-disallowed-list | off | SCSS | — | — |
unit-layout-mappings | off | SCSS | — | — |
unit-no-unknown | error | SCSS | — | — |
value-keyword-case | off | SCSS | — | Off: a notation choice, not a mistake. |
value-keyword-layout-mappings | off | SCSS | — | — |
value-no-vendor-prefix | off | SCSS | — | Off: the Angular build adds the vendor prefixes. |