UNPKG

ember-codemod-remove-global-styles

Version:
15 lines (14 loc) 358 B
export function printStyles(styles) { return styles .sort((a, b) => { if (a.location.start.offset > b.location.start.offset) { return 1; } if (a.location.start.offset < b.location.start.offset) { return -1; } return 0; }) .map(({ raw }) => raw) .join('\n\n'); }