Skip to content

Use oxlint for pre-commit lint, fix errors#2592

Merged
david-crespo merged 1 commit intomainfrom
oxlint
Dec 3, 2024
Merged

Use oxlint for pre-commit lint, fix errors#2592
david-crespo merged 1 commit intomainfrom
oxlint

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Dec 2, 2024

See https://oxc.rs/ and https://voidzero.dev/

Closes #2591. oxlint takes about 100ms. lint-staged with eslint took 6 seconds with a warm cache, which is appalling. This is going to change my life.

The biggest downside currently is that there is some mismatch between the oxlint and eslint configs. As long as oxlint generally catches the most obvious stuff before pushing, that's fine, because we will see the full results in CI. The really annoying situation would be if there's an actual disagreement between oxlint and eslint, where oxlint errors, and then we fix it and now eslint errors. We'll see if that happens.

The idea for the future is that we are eventually all-in on the oxc toolchain, which means oxlint is our only linter and we also use their formatter, which is not published yet, but they have a working prototype.

@vercel
Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Dec 2, 2024 11:54pm

@david-crespo david-crespo merged commit aad054c into main Dec 3, 2024
@david-crespo david-crespo deleted the oxlint branch December 3, 2024 16:21
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.

Use oxlint instead of lint-staged in the precommit hook

1 participant