Skip to content

Commit

Permalink
chore: fix lint task
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed May 23, 2024
1 parent d6ae13f commit a7c455f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions scripts/lint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ module.exports = function lint() {
const loadFormatter = eslint.loadFormatter('stylish');

return Promise.all([lintFiles, loadFormatter]).then(([results, formatter]) => {
if (results.errorCount > 0 || results.warningCount > 0) {
fancyLog(formatter.format(results));
throw new Error('ESLintError');
for (let i = 0; i < results.length; i++) {
const lintResult = results[i];
if (lintResult.warningCount > 0 || lintResult.errorCount > 0 || lintResult.fatalErrorCount > 0) {
fancyLog(formatter.format(results));
throw new Error('ESLintError');
}
}
});
};
4 changes: 2 additions & 2 deletions scripts/release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ function createReleaseTask(level) {
}

return gulp.series(
doRelease,
prepareNextRelease
doRelease,
prepareNextRelease,
);
}

Expand Down

0 comments on commit a7c455f

Please sign in to comment.