Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tasks/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ async function runESLint(filePatternsOrPaths, options = {}) {
if (errorCount > 0 && failOnErrors) {
throw new Error(`${taskName} found ${errorCount} error(s) and ${warningCount} warning(s). Build halted due to failOnErrors setting.`);
} else if (errorCount > 0) {
log.info(`ℹ ${taskName} found ${errorCount} error(s) and ${warningCount} warning(s), but continuing build. Use --fail-on-lint-errors to halt on errors.`);
if (sake.isBuildTask()) {
log.info(`ℹ ${taskName} found ${errorCount} error(s) and ${warningCount} warning(s), but continuing build. Use --fail-on-lint-errors to halt on errors.`);
} else {
log.info(`ℹ ${taskName} found ${errorCount} error(s) and ${warningCount} warning(s)`);
}
}

return { errorCount, warningCount, fixableCount };
Expand Down
Loading