5 * Check whether a declaration is standard
7 module.exports = function(decl /*: Object*/) /*: boolean*/ {
8 const prop = decl.prop,
11 // Declarations belong in a declaration block
13 if (parent.type === "root") {
17 // SCSS var (e.g. $var: x), nested list (e.g. $list: (x)) or nested map (e.g. $map: (key:value))
18 if (prop[0] === "$") {
22 // Less var (e.g. @var: x), but exclude variable interpolation (e.g. @{var})
23 if (prop[0] === "@" && prop[1] !== "{") {
27 // SCSS nested properties (e.g. border: { style: solid; color: red; })
30 parent.selector[parent.selector.length - 1] === ":" &&
31 parent.selector.substring(0, 2) !== "--"