UNPKG

stylelint-scss

Version:

A collection of SCSS specific rules for stylelint

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