Skip to content

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.

RuleSettingFilesWhat it checksWhy
annotation-no-unknownoffSCSS——
declaration-property-value-disallowed-listwarning, [{"/.*/":["/\\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-listoffSCSS——
function-calc-no-unspaced-operatorerrorSCSS——
function-disallowed-listoffSCSS——
function-linear-gradient-no-nonstandard-directionerrorSCSS——
function-name-caseoffSCSS—Off: a notation choice, not a mistake.
function-no-unknownoffSCSS——
length-zero-no-unitoffSCSS—Off: a notation choice, not a mistake.
number-max-precisionoffSCSS—Off: a notation choice, not a mistake.
string-no-newlineerrorSCSS——
time-min-millisecondsoffSCSS——
unit-allowed-listoffSCSS——
unit-disallowed-listoffSCSS——
unit-layout-mappingsoffSCSS——
unit-no-unknownerrorSCSS——
value-keyword-caseoffSCSS—Off: a notation choice, not a mistake.
value-keyword-layout-mappingsoffSCSS——
value-no-vendor-prefixoffSCSS—Off: the Angular build adds the vendor prefixes.

Generated from the JSDoc of the sources.