UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

10 lines (8 loc) 275 B
// Remove empty lines before a node. Mutates the node. export default function removeEmptyLinesBefore( node /*: postcss$node*/, newline /*: '\n' | '\r\n'*/ ) /*: postcss$node*/ { node.raws.before = node.raws.before.replace(/(\r?\n\s*\n)+/g, newline); return node; }