Skip to content

chore: fail the lint run on a warning - #19

Merged
kkdev92 merged 1 commit into
mainfrom
chore/lint-fails-on-warning
Aug 13, 2026
Merged

chore: fail the lint run on a warning#19
kkdev92 merged 1 commit into
mainfrom
chore/lint-fails-on-warning

Conversation

@kkdev92

@kkdev92 kkdev92 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

eslint src exits zero on warnings. A rule set to warn reported into the
log and nothing stopped it accumulating. --max-warnings 0 makes the lane say no.

Nothing to clean up first

The run currently reports zero errors and zero warnings, so this changes no
output today. What it changes is tomorrow: a rule that is deliberately a warning
rather than an error now has to be dealt with rather than scrolled past.

What is deliberately not in here

  • lint:fix keeps no flag. Adding it there would fail the run after fixing
    what it could, which is the opposite of what that script is for.
  • Prettier is not added. Formatting is the other half of "maximally strict",
    but introducing it now would reformat files wholesale and bury the next few
    diffs. That is a decision worth taking on its own, not as a rider.

vscode-ext-kit has carried this flag for a while; this brings the three
extensions in line with it.

Verification

lint, the type check and the test suite.

🤖 Generated with Claude Code

`eslint src` exits zero on warnings, so a rule set to `warn` reported into the
log and nothing stopped it accumulating. `--max-warnings 0` makes the lane say no.

Nothing to clean up first: the run currently reports zero errors and zero
warnings, so this changes no output today. What it changes is tomorrow — a rule
that is deliberately a warning rather than an error now has to be dealt with
rather than scrolled past.

`lint:fix` is left alone. Adding the flag there would fail the run after fixing
what it could, which is the opposite of what that script is for.

Prettier deliberately not added. Formatting is the other half of "maximally
strict", but introducing it now would reformat files wholesale and bury the next
few diffs; that is a decision worth taking on its own.

`vscode-ext-kit` has carried this flag for a while, so this brings the three
extensions in line with it.

Verified: lint, type check and the test suite.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kkdev92
kkdev92 merged commit 409b3ca into main Aug 13, 2026
8 checks passed
@kkdev92
kkdev92 deleted the chore/lint-fails-on-warning branch August 13, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant