ci(lint): use prefer-const rule from ESLint#16448
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
3f1df29 to
6a4af9a
Compare
There was a problem hiding this comment.
Pull request overview
This PR enables ESLint's prefer-const rule as a JavaScript plugin in Oxlint to dogfood the JS plugin functionality while awaiting native implementation in issue #15707. The change adds ESLint as a dependency and creates a custom plugin that wraps ESLint's built-in rules for use within Oxlint.
Key changes:
- Adds ESLint 9.39.1 as a development dependency for accessing built-in ESLint rules
- Creates a new JS plugin (
oxlint-plugin.mts) that exports ESLint'sprefer-construle - Configures Oxlint to use the JS plugin and enables the
prefer-construle with "all" destructuring mode
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Adds ESLint ^9.39.1 as a devDependency |
| pnpm-lock.yaml | Updates lock file with ESLint 9.39.1 and its dependencies |
| oxlintrc.json | Adds jsPlugins configuration and enables eslint-js/prefer-const rule |
| oxlint-plugin.mts | New JS plugin that wraps ESLint's built-in rules for use in Oxlint |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
98c53a9 to
790beeb
Compare
6a4af9a to
075113a
Compare
075113a to
635db80
Compare
635db80 to
5fb19d6
Compare
Merge activity
|
Dogfood Oxlint JS plugins by enabling ESLint's `prefer-const` rule, running as a JS plugin. #15707 will implement this rule natively in Oxlint, but in meantime this is a good one to use to test JS plugins.
5fb19d6 to
46bd226
Compare
Dogfood Oxlint JS plugins by enabling ESLint's `prefer-const` rule, running as a JS plugin. oxc-project#15707 will implement this rule natively in Oxlint, but in meantime this is a good one to use to test JS plugins.

Dogfood Oxlint JS plugins by enabling ESLint's
prefer-construle, running as a JS plugin.#15707 will implement this rule natively in Oxlint, but in meantime this is a good one to use to test JS plugins.