UNPKG
eslint-formatter-stats
Version:
latest (0.1.0)
0.1.0
Visualize ESLint errors and warnings for large projects.
eslint-formatter-stats
/
index.js
9 lines
(6 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'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); }