stylelint-scss
Version:
A collection of SCSS-specific rules for Stylelint
16 lines (13 loc) • 331 B
JavaScript
/**
* Get the index of a declaration's value
*
* @param {Decl} decl
* @return {int} The index
*/
module.exports = function (decl) {
const beforeColon = decl.toString().indexOf(":");
const afterColon =
decl.raw("between").length - decl.raw("between").indexOf(":");
return beforeColon + afterColon;
};
;