Skip to content

feat: add oxlint with correctness defaults#22682

Merged
kitlangton merged 1 commit intodevfrom
kit/oxlint
Apr 16, 2026
Merged

feat: add oxlint with correctness defaults#22682
kitlangton merged 1 commit intodevfrom
kit/oxlint

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Add oxlint (v1.60.0) as the project linter with correctness-focused defaults (91 rules, 0 config needed for most)
  • Suppress require-yield (Effect function* pattern) and no-unassigned-vars (SolidJS ref pattern) as false positives
  • Apply auto-fixes across 56 files: remove useless ?? {} spread fallbacks and unnecessary escape characters

Details

Oxlint is a Rust-based linter that's 50-100x faster than ESLint, stable since v1.0 (June 2025), and used in production by Shopify, Airbnb, Midjourney, etc.

Config (.oxlintrc.json):

  • All correctness defaults enabled
  • 2 rules suppressed for framework false positives
  • Ignores node_modules, dist, .build, .sst, *.d.ts

Auto-fixes applied (safe, mechanical):

  • 90x ...(x ?? {})...x (useless fallback in spread)
  • 28x unnecessary escape characters removed

Remaining (249 warnings, 0 errors):

  • 196 no-unused-vars (real unused imports/variables, need manual review)
  • 53 other minor warnings
  • Warnings don't fail CI (exit code 0), can be addressed incrementally

New script: bun run lint from root

Add oxlint as the project linter with correctness-focused defaults (91 rules).
Suppress require-yield (Effect generator pattern) and no-unassigned-vars
(SolidJS ref pattern) as false positives. Apply auto-fixes for useless
spread fallbacks and unnecessary escape characters across 56 files.
@kitlangton kitlangton merged commit 3d6f90c into dev Apr 16, 2026
14 checks passed
@kitlangton kitlangton deleted the kit/oxlint branch April 16, 2026 00:45
jerome-benoit pushed a commit to jerome-benoit/opencode that referenced this pull request Apr 16, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant