Skip to content

Commit a7c455f

Browse files
committed
chore: fix lint task
1 parent d6ae13f commit a7c455f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

scripts/lint/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ module.exports = function lint() {
6262
const loadFormatter = eslint.loadFormatter('stylish');
6363

6464
return Promise.all([lintFiles, loadFormatter]).then(([results, formatter]) => {
65-
if (results.errorCount > 0 || results.warningCount > 0) {
66-
fancyLog(formatter.format(results));
67-
throw new Error('ESLintError');
65+
for (let i = 0; i < results.length; i++) {
66+
const lintResult = results[i];
67+
if (lintResult.warningCount > 0 || lintResult.errorCount > 0 || lintResult.fatalErrorCount > 0) {
68+
fancyLog(formatter.format(results));
69+
throw new Error('ESLintError');
70+
}
6871
}
6972
});
7073
};

scripts/release/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ function createReleaseTask(level) {
8686
}
8787

8888
return gulp.series(
89-
doRelease,
90-
prepareNextRelease
89+
doRelease,
90+
prepareNextRelease,
9191
);
9292
}
9393

0 commit comments

Comments
 (0)