Update checked-in dependencies
This commit is contained in:
parent
1c369971ff
commit
9b3d4fd580
9 changed files with 58 additions and 18 deletions
6
node_modules/eslint/lib/cli-engine/cli-engine.js
generated
vendored
6
node_modules/eslint/lib/cli-engine/cli-engine.js
generated
vendored
|
|
@ -156,6 +156,9 @@ function calculateStatsPerFile(messages) {
|
|||
return messages.reduce((stat, message) => {
|
||||
if (message.fatal || message.severity === 2) {
|
||||
stat.errorCount++;
|
||||
if (message.fatal) {
|
||||
stat.fatalErrorCount++;
|
||||
}
|
||||
if (message.fix) {
|
||||
stat.fixableErrorCount++;
|
||||
}
|
||||
|
|
@ -168,6 +171,7 @@ function calculateStatsPerFile(messages) {
|
|||
return stat;
|
||||
}, {
|
||||
errorCount: 0,
|
||||
fatalErrorCount: 0,
|
||||
warningCount: 0,
|
||||
fixableErrorCount: 0,
|
||||
fixableWarningCount: 0
|
||||
|
|
@ -183,12 +187,14 @@ function calculateStatsPerFile(messages) {
|
|||
function calculateStatsPerRun(results) {
|
||||
return results.reduce((stat, result) => {
|
||||
stat.errorCount += result.errorCount;
|
||||
stat.fatalErrorCount += result.fatalErrorCount;
|
||||
stat.warningCount += result.warningCount;
|
||||
stat.fixableErrorCount += result.fixableErrorCount;
|
||||
stat.fixableWarningCount += result.fixableWarningCount;
|
||||
return stat;
|
||||
}, {
|
||||
errorCount: 0,
|
||||
fatalErrorCount: 0,
|
||||
warningCount: 0,
|
||||
fixableErrorCount: 0,
|
||||
fixableWarningCount: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue