1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:37:17 -04:00
notes/node_modules/stylelint/lib/formatters/jsonFormatter.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

12 lines
302 B
JavaScript

"use strict"
const _ = require("lodash")
// Omit any properties starting with `_`, which are fake-private
module.exports = function (results) {
const cleanedResults = results.map(result => {
return _.omitBy(result, (value, key) => key[0] === "_")
})
return JSON.stringify(cleanedResults)
}