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

fix: check if contain results #300

Merged
merged 2 commits into from Sep 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Linter.js
Expand Up @@ -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);
Expand Down