From 7d1d1fee2dd923a65690f612ae1427e6c63d40bb Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Thu, 26 Sep 2019 18:56:34 -0300 Subject: [PATCH] fix: check if contain results (#300) --- src/Linter.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Linter.js b/src/Linter.js index eea5f5a..eea59d8 100644 --- a/src/Linter.js +++ b/src/Linter.js @@ -66,6 +66,12 @@ export default class Linter { } const results = this.parseResults(res); + + // Do not analyze if there are no results or eslint config + if (!results) { + return; + } + const messages = options.formatter(results); this.reportOutput(results, messages);