Fix the oxlint errors and turn the oxlint hook back on #107

Open
opened 2026-11-21 22:31:22 +00:00 by jalenluorion · 0 comments
Member

The kennel flake module runs oxlint on every commit, with ScottyLabs' landmines and anti-slop rules. It reports 431 errors on web/, so #104 turns the hook off (oxlint.enable = lib.mkForce false in flake.nix).Most are mechanical: == to ===, unused imports and variables, comments inline with code, async functions with no await, missing u regex flags, charCodeAt to codePointAt.Where to start- nix develop, then prek run oxlint --all-files lists them. oxlint applies the safe fixes itself.- Split it into a few PRs by folder (web/src/app/utils, web/src/app/components, web/src/server), so each stays reviewable.Done when- [ ] prek run oxlint --all-files passes- [ ] the oxlint.enable override is removed from flake.nix- [ ] .oxlintrc.json at the root extends .scottylabs/oxlint/oxlintrc.json (kennel requires it)

The kennel flake module runs [oxlint](https://oxc.rs/docs/guide/usage/linter.html) on every commit, with ScottyLabs' landmines and anti-slop rules. It reports 431 errors on `web/`, so #104 turns the hook off (`oxlint.enable = lib.mkForce false` in `flake.nix`).Most are mechanical: `==` to `===`, unused imports and variables, comments inline with code, `async` functions with no `await`, missing `u` regex flags, `charCodeAt` to `codePointAt`.**Where to start**- `nix develop`, then `prek run oxlint --all-files` lists them. oxlint applies the safe fixes itself.- Split it into a few PRs by folder (`web/src/app/utils`, `web/src/app/components`, `web/src/server`), so each stays reviewable.**Done when**- [ ] `prek run oxlint --all-files` passes- [ ] the `oxlint.enable` override is removed from `flake.nix`- [ ] `.oxlintrc.json` at the root extends `.scottylabs/oxlint/oxlintrc.json` (kennel requires it)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/cal#107
No description provided.