UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

12 lines (9 loc) 293 B
"use strict"; // Remove empty lines before a node. Mutates the node. module.exports = 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; };