Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Commit 7d1d1fe

Browse files
fix: check if contain results (#300)
1 parent 16e9ccf commit 7d1d1fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Linter.js

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ export default class Linter {
6666
}
6767

6868
const results = this.parseResults(res);
69+
70+
// Do not analyze if there are no results or eslint config
71+
if (!results) {
72+
return;
73+
}
74+
6975
const messages = options.formatter(results);
7076

7177
this.reportOutput(results, messages);

0 commit comments

Comments
 (0)