Skip to content

chore(ci): enforce oxlint warning ratchet in CI and pre-commit - #134

Merged
LeXwDeX merged 1 commit into
devfrom
chore/lint-gate
Jul 29, 2026
Merged

chore(ci): enforce oxlint warning ratchet in CI and pre-commit#134
LeXwDeX merged 1 commit into
devfrom
chore/lint-gate

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Jul 29, 2026

Copy link
Copy Markdown
Owner

What

Make the configured oxlint rules a mechanical merge gate.

  • Root lint script now runs oxlint --max-warnings=4704 (current baseline). All configured rules are warn-severity, so plain oxlint exits 0 regardless — the ratchet is what makes new warnings fail.
  • Run lint step added inside the existing required Typecheck check in ci-typecheck.yml, so lint failure blocks merges to dev and main immediately, with no ruleset changes.
  • .husky/run-lint (mirrors run-typecheck's sandbox fallback) wired into pre-commit.
  • Ratchet contract documented in .oxlintrc.json: when fixing existing warnings, lower the threshold.

Verification

  • oxlint --max-warnings=4704 → exit 0; --max-warnings=4703 → exit 1 (gate proven)
  • pre-commit hook ran lint + typecheck end-to-end on this commit

@LeXwDeX
LeXwDeX merged commit 1911658 into dev Jul 29, 2026
4 checks passed
@LeXwDeX
LeXwDeX deleted the chore/lint-gate branch July 29, 2026 08:02
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