ec0lint-style
Version:
CSS linter for reducing digital footprint with ec0lint.
21 lines (18 loc) • 375 B
JavaScript
;
/**
* @type {import('ec0lint-style').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;