UNPKG

@udyux/stylelint-order

Version:

[fork] A collection of order related linting rules for stylelint.

7 lines (5 loc) 215 B
// Remove empty lines before a node. Mutates the node. module.exports = function removeEmptyLinesBefore(node, newline) { node.raws.before = node.raws.before.replace(/(\r?\n\s*\r?\n)+/g, newline); return node; };