-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESLintBear: Handle corner case if eslint fails
If eslint fails to run, for example if it gets an invalid config file it does not know how to handle, earlier the bear would throw a JSON Decoding error because it wouldn't know how to parse "" (an empty string). Now this case is handled, and it gracefull doesn't try to create results in such cases. Fixes #727
- Loading branch information
1 parent
430d67c
commit 0a681b2
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"plugins": ["invalid_plugin_should_throw_error"], | ||
"rules": { | ||
"consistent-return": 2, | ||
"indent" : [1, 4], | ||
"no-else-return" : 1, | ||
"semi" : [1, "always"], | ||
"space-unary-ops" : [2, { | ||
"words": true, | ||
"nonwords": true | ||
}] | ||
} | ||
} |