Repository navigation
chore(lint): adopt anti-slop oxlint rules and oxfmt formatting - #29
Merged
Merged
Conversation
nixuuu
force-pushed
the
chore/anti-slop
branch
from
November 3, 2026 17:26
1d8d4a2 to
c1f3f94
Compare
Prepare lint and formatting without touching application code: oxlint 1.91.0 with the vendored anti-slop plugin (upstream 13909c9, generic rules plus Effect rules scoped to Effect packages), file and function size limits, oxfmt 0.76.0 (printWidth 120, Svelte, Tailwind class sorting). Adds lint, lint:fix, lint:spacing, format and format:check scripts, not wired into check or CI yet. docs/code-quality.md records the baseline measurement and the refactor plan.
nixuuu
force-pushed
the
chore/anti-slop
branch
from
November 4, 2026 06:27
c1f3f94 to
45fafdd
Compare
nixuuu
marked this pull request as ready for review
November 4, 2026 06:27
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
Phase 4 of the code-quality refactor (docs/code-quality.md); phases 1–3 are merged (#29, #39–#43, #46, #47–#52) and the whole repo passes `bun run lint` and `bun run format:check`. - CI: "Lint" (`bun run lint`: oxlint + anti-slop + size limits) and "Formatting" (`bun run format:check`: oxfmt) right after the typecheck. - Root `check` script runs them too. - AGENTS.md: lint + format in the hand-over checklist and a short "Code quality" section (boundary parsing over casts, `// SAFETY:` for remaining assertions, 400/120 size limits never disabled, no repo-wide `oxlint --fix`). - docs/code-quality.md: status — all phases done.
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of the code-quality refactor (docs/code-quality.md).
tools/oxlint/anti-slop, upstream 13909c9, MIT): generic rules + Effect rules scoped to Effect packages;max-lines400 /max-lines-per-function120 (tests 800); accepted policy adjustments (no-shape-in-symbol-names off, safety comments off in tests,allowInTypeGuards, prefer-effect-match off in .svelte); sharedJsonObject/JsonValuetypes.require-readable-spacing(mechanical, behaviour-neutral; a second round changes nothing). Generated code untouched.lint,lint:fix,lint:spacing,format,format:check.format:checkpasses;lintstill reports the manual findings (1 798 in 376 files) fixed in phase 2; CI wiring comes last.docs/code-quality.md+ baseline JSON: remaining findings per rule/area, phase-2 split into 6 disjoint areas, phase-3 file splits.Checks: install, gen:check, typecheck, check:tmp (823 pass / 0 fail), web and desktop shell builds.
After the squash merge, the merge commit is added to
.git-blame-ignore-revs(squash changes the hash).