UNPKG

stylelint-sassdoc

Version:

stylelint plugin to check scss files for a valid sassdoc documentation Credits to https://github.com/anneangersbach

9 lines (8 loc) 343 B
/** Splits the source css file at linebreaks * @param {Node} node - the current root node * @return {Array} sourceLines - the array generated from the sourcefile */ module.exports = function getSourceArray(node) { // making sure we get clean strings for both windows and unix systems return node.source.input.css.split(/\r?\n/); };