UNPKG

stylelint-scss

Version:

A collection of SCSS specific rules for stylelint

18 lines (16 loc) 395 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeEmptyLinesBefore = removeEmptyLinesBefore; // Remove empty lines before a node. Mutates the node. function removeEmptyLinesBefore(node /*: postcss$node*/ , newline /*: '\n' | '\r\n'*/ ) /*: postcss$node*/ { node.raws.before = node.raws.before.replace(/(\r?\n\s*\r?\n)+/g, newline); return node; }