Repository navigation
chore: adopt oxlint as the primary lint gate - #136
Merged
Merged
Conversation
Replace ESLint with oxlint 1.82.0 for the edit loop and CI, keeping the same complexity, max-depth, and max-lines-per-function thresholds.
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.
Adopts oxlint 1.82.0 as the primary lint gate for the edit loop and CI. ESLint is removed: the previous
eslint.config.mjsonly enforcedcomplexity(15),max-depth(4), andmax-lines-per-function(100, skip blanks and comments; off in tests), and oxlint now enforces those equivalent rules with the same thresholds.Closes #72
Baseline (oxlint 1.82.0 on this tree, before fixes)
The August 2025 audit expected about 12 findings. The current tree had 20 correctness findings before this change (plus 3
no-control-regexthat are now disabled):eslint/no-useless-escapeeslint/no-unsafe-optional-chainingeslint/no-control-regex.oxlintrc.jsonunicorn/no-useless-fallback-in-spread...server.env,...opts.extra)unicorn/no-useless-spreadArray.from(...)so iteration still snapshots before mutationunicorn/prefer-string-starts-ends-withhost.startsWith("127."))no-control-regexstays off because those patterns exist to reject C0/DEL/bidi controls in AVD device names, androidinput text, and shell-unsafe path words. Matching control characters is the safety gate.Suppressions
oxlint understands remaining
eslint-disable-next-linecomments. Session and evidence files that still carryLegacy gate debt: pickforge/pickforge#60were converted tooxlint-disable-next-linewith the same rules and scope, except one:packages/desktop-linux/src/session.tsacquireSessionVncLockmax-depthwas paid instead of converted: extractingthrowIfSessionGonedropped nesting from 5 to 4 socomplexity-gate check --changedcould pass on the touched function. Thecomplexitydisable onensureSessionVncremains, converted.packages/browser/src/session.tshad no#60comments on currentmain(two of the nine listed in #135 were already gone). Other#60comments outside session/evidence files are left aseslint-disable-*for #135 to remove.CI
The
testjob already ranbun run lint; that step is now named Lint and runs oxlint. This tree has no.complexity-gate.json, so complexity-gate was not added to CI.Validation
On
5d0a3b1in/home/dev/Projects/.worktrees/picklab/chore-72-oxlint:bun install --frozen-lockfilebun run lint(exit 0)bun run typecheckbun run test(120 files, 1572 passed, 4 skipped)bun run buildcomplexity-gate check --changed(no violations)git fetch origin && git rebase origin/main(already up to date; feat(core): finalize orphaned multi-process evidence runs #134 and refactor: remove in-scope legacy lint gate suppressions #135 were still open)README development commands do not name lint, so README was left unchanged.