UNPKG

eslint-formatter-stats

Version:

Visualize ESLint errors and warnings for large projects.

9 lines (6 loc) 239 B
'use strict' const stats = require('eslint-stats/byErrorAndWarning'); const codeframe = require('eslint/lib/cli-engine/formatters/codeframe'); module.exports = function(results) { return codeframe(results) + "\n\n" + stats(results); }