Closed susnux closed 1 year ago
Thanks.
Problem - in cli.mjs
, we get returned a LintResult[]
but we're interrogating it for the error count as if it were a single LintResult
.
Caused by #37
In the old CLIEngine, a report object with various properties including a results
array and a total errorCount
were returned. The replacement ESLint just returns the results.
When I did the work, I renamed the variable and changed the pass-down to the formatter, but missed the errorCount.
Released in https://github.com/robatwilliams/es-compat/releases/tag/v2.2.1
Thanks for reporting.
When running
check-es-compat
it reports:So there are 2 errors but no issues found? The return code is also 0 ("ok")