stylelint
Version:
A mighty CSS linter that helps you avoid errors and enforce conventions.
25 lines (19 loc) • 483 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
;
/**
* Stringify PostCSS node including its raw "before" string.
*
* @param {import('postcss').Node} node
*
* @returns {string}
*/
function rawNodeString(node) {
let result = '';
if (node.raws.before) {
result += node.raws.before;
}
result += node.toString();
return result;
}
module.exports = rawNodeString;