stylelint
Version:
A mighty, modern CSS linter.
21 lines (18 loc) • 371 B
JavaScript
/**
* @type {import('stylelint').Formatter}
*/
const formatter = (results) =>
results
.flatMap((result) =>
result.warnings.map(
(warning) =>
`${result.source}: ` +
`line ${warning.line}, ` +
`col ${warning.column}, ` +
`${warning.severity} - ` +
`${warning.text}`,
),
)
.join('\n');
module.exports = formatter;
;