Pattern: Malformed property value
Issue: -
This rules enforces either variables ($sass
, @less
, var(--cssnext)
), functions or custom CSS keywords (inherit
, none
, etc.) for property's values.
Example of incorrect code:
a { color: #FFF; }
a { color: inherit; }
a { color: currentColor; }
Example of correct code:
a { color: var(--color-white); }
a { color: -var(--color-white); }
a { color: color(red alpha(-10%)); }
// defaults
{
ignoreVariables: true,
ignoreFunctions: true,
ignoreKeywords: null,
}