Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

compactFormatter.js 389B

1234567891011121314151617181920
  1. 'use strict';
  2. const _ = require('lodash');
  3. /**
  4. * @type {import('stylelint').Formatter}
  5. */
  6. const formatter = (results) =>
  7. _.flatMap(results, (result) =>
  8. result.warnings.map(
  9. (warning) =>
  10. `${result.source}: ` +
  11. `line ${warning.line}, ` +
  12. `col ${warning.column}, ` +
  13. `${warning.severity} - ` +
  14. `${warning.text}`,
  15. ),
  16. ).join('\n');
  17. module.exports = formatter;