jsonFormatter.cjs 444 B

12345678910111213141516
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /**
  5. * Omit any properties starting with `_`, which are fake-private
  6. *
  7. * @type {import('stylelint').Formatter}
  8. */
  9. function jsonFormatter(results) {
  10. return JSON.stringify(results, (key, value) => {
  11. return key[0] === '_' ? undefined : value;
  12. });
  13. }
  14. module.exports = jsonFormatter;