UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

17 lines (14 loc) 328 B
/** * Get the index of a media query's params * * @param {AtRule} atRule * @return {int} The index */ export default function atRuleParamIndex(atRule) { // Initial 1 is for the `@` let index = 1 + atRule.name.length; if (atRule.raw("afterName")) { index += atRule.raw("afterName").length; } return index; }