mirror of
https://github.com/thangisme/notes.git
synced 2025-09-25 11:44:11 -04:00
Initial commit
This commit is contained in:
11
node_modules/stylelint/lib/formatters/jsonFormatter.js
generated
vendored
Normal file
11
node_modules/stylelint/lib/formatters/jsonFormatter.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"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)
|
||||
}
|
Reference in New Issue
Block a user