.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / formatters / jsonFormatter.js
1 "use strict";
2
3 const _ = require("lodash");
4
5 // Omit any properties starting with `_`, which are fake-private
6 module.exports = function(results) {
7   const cleanedResults = results.map(result => {
8     return _.omitBy(result, (value, key) => key[0] === "_");
9   });
10   return JSON.stringify(cleanedResults);
11 };