UNPKG

eslint-formatter-json-with-metadata

Version:

ESLint’s official `json-with-metadata` formatter, unofficially published as a standalone module

15 lines (13 loc) 377 B
/** * @fileoverview JSON reporter, including rules metadata * @author Chris Meyer */ //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ module.exports = function (results, data) { return JSON.stringify({ results, metadata: data, }); };