UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

40 lines (36 loc) 539 B
const singleArgumentMathFunctions = new Set([ "abs", "acos", "asin", "atan", "calc", "cos", "exp", "sign", "sin", "sqrt", "tan" ]); const mathFunctions = new Set([ ...singleArgumentMathFunctions, "atan2", "calc-size", "clamp", "hypot", "log", "max", "min", "mod", "pow", "rem", "round" ]); export const atRuleRegexes = { propertyName: /^property$/i }; export const mayIncludeRegexes = { mathFunction: new RegExp( `\\b(?:${[...mathFunctions.values()].join("|")})\\(`, "i" ) };