jsonFormatter.mjs 268 B

12345678910
  1. /**
  2. * Omit any properties starting with `_`, which are fake-private
  3. *
  4. * @type {import('stylelint').Formatter}
  5. */
  6. export default function jsonFormatter(results) {
  7. return JSON.stringify(results, (key, value) => {
  8. return key[0] === '_' ? undefined : value;
  9. });
  10. }