4 const _ = require("lodash");
5 const hasInterpolation = require("../utils/hasInterpolation");
7 * Check whether a property is standard
9 module.exports = function(property /*: string*/) /*: boolean*/ {
10 // SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))
11 if (property[0] === "$") {
15 // Less var (e.g. @var: x)
16 if (property[0] === "@") {
20 // Less append property value with space (e.g. transform+_: scale(2))
21 if (_.endsWith(property, "+") || _.endsWith(property, "+_")) {
25 // SCSS or Less interpolation
26 if (hasInterpolation(property)) {