Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1322e30

Browse filesBrowse files
committed
Fix the plugin not finishing in some cases
Fixes #172
1 parent 259ce5c commit 1322e30
Copy full SHA for 1322e30

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎tasks/eslint.js

Copy file name to clipboardExpand all lines: tasks/eslint.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ module.exports = grunt => {
2525

2626
if (this.filesSrc.length === 0) {
2727
grunt.log.writeln(chalk.magenta('Could not find any files to validate'));
28-
return true;
28+
done(true);
29+
return;
2930
}
3031

3132
const engine = new ESLint(options);
@@ -34,7 +35,8 @@ module.exports = grunt => {
3435

3536
if (!formatter) {
3637
grunt.warn(`Could not find formatter ${format}`);
37-
return false;
38+
done(false);
39+
return;
3840
}
3941

4042
let results = await engine.lintFiles(this.filesSrc);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.