Skip to content

chore(lint): adopt anti-slop oxlint rules and oxfmt formatting - #29

Merged
nixuuu merged 5 commits into
devfrom
chore/anti-slop
Nov 4, 2026
Merged

nixuuu merged 5 commits into
devfrom
chore/anti-slop

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Phase 1 of the code-quality refactor (docs/code-quality.md).

  • oxlint 1.91.0 + vendored anti-slop (tools/oxlint/anti-slop, upstream 13909c9, MIT): generic rules + Effect rules scoped to Effect packages; max-lines 400 / max-lines-per-function 120 (tests 800); accepted policy adjustments (no-shape-in-symbol-names off, safety comments off in tests, allowInTypeGuards, prefer-effect-match off in .svelte); shared JsonObject/JsonValue types.
  • oxfmt 0.76.0 (printWidth 120, Svelte, Tailwind class sorting; markdown excluded) applied to the whole repo together with the autofixable require-readable-spacing (mechanical, behaviour-neutral; a second round changes nothing). Generated code untouched.
  • Scripts lint, lint:fix, lint:spacing, format, format:check. format:check passes; lint still 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).

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 nixuuu changed the title chore(lint): vendor anti-slop oxlint rules and add oxfmt chore(lint): adopt anti-slop oxlint rules and oxfmt formatting Nov 4, 2026
@nixuuu
nixuuu marked this pull request as ready for review November 4, 2026 06:27
@nixuuu
nixuuu merged commit acd67d2 into dev Nov 4, 2026
4 checks passed
@nixuuu
nixuuu deleted the chore/anti-slop branch November 4, 2026 06:33
nixuuu added a commit that referenced this pull request Nov 4, 2026
The squash merge of #29 changed the formatting commit's hash; point
`.git-blame-ignore-revs` at acd67d2.
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.
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