first commit
This commit is contained in:
27
node_modules/stylelint/lib/formatters/compactFormatter.cjs
generated
vendored
Normal file
27
node_modules/stylelint/lib/formatters/compactFormatter.cjs
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
const preprocessWarnings = require('./preprocessWarnings.cjs');
|
||||
|
||||
/**
|
||||
* @type {import('stylelint').Formatter}
|
||||
*/
|
||||
function compactFormatter(results) {
|
||||
return results
|
||||
.flatMap((result) => {
|
||||
const { warnings } = preprocessWarnings(result);
|
||||
|
||||
return warnings.map(
|
||||
(warning) =>
|
||||
`${result.source}: ` +
|
||||
`line ${warning.line}, ` +
|
||||
`col ${warning.column}, ` +
|
||||
`${warning.severity} - ` +
|
||||
`${warning.text}`,
|
||||
);
|
||||
})
|
||||
.join('\n');
|
||||
}
|
||||
|
||||
module.exports = compactFormatter;
|
||||
Reference in New Issue
Block a user