Skip to content

Commit

Permalink
eslint errors and warnings are now reported as fail again
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-gorter committed Mar 20, 2024
1 parent a17ea40 commit 57a180b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/code-style/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function createFormatter(dependencies: {
let options =
(await resolveConfig(".prettierrc")) ??
(await resolveConfig("prettier.config.js"));
logger.log("formatter", `formatter options: ${JSON.stringify(options)}`);
// logger.log("formatter", `formatter options: ${JSON.stringify(options)}`);
let checks = await Promise.all(files.map(runFile));
return !checks.some((c) => !c);

Expand Down
2 changes: 1 addition & 1 deletion src/code-style/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function createLinter(dependencies: {
running = false;
logger.log(
"linter",
response.finished.success
response.finished.success && errors === 0
? "All files are ok"
: `${errors} Linting problems found, ${fixable} ${
fix ? "fixed" : "fixable"
Expand Down

0 comments on commit 57a180b

Please sign in to comment.