Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces shareable oxlint configuration alongside existing oxfmt config, and adds a generator script to derive oxlint configs from eslint-config-fans.
Changes:
- Add
src/oxlintshareable config entrypoint plus a set of theme configs (javascript/imports/node/unicorn/typescript/vue, etc.). - Add
scripts/oxgen.tsto migrate/generate oxlint configs and produceUNSUPPORTED-RULES.md. - Update tooling and packaging (new
oxlint.config.ts, new npm scripts, updated dependencies/lockfile).
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/oxlint/index.js | New oxlint config composer (defineConfig) assembling theme configs via extends. |
| src/oxlint/index.d.ts | Type definitions for the exported oxlint API. |
| src/oxlint/configs/javascript.js | Base oxlint rules + category enabling (correctness/suspicious). |
| src/oxlint/configs/imports.js | Import-related rule configuration. |
| src/oxlint/configs/promise.js | Promise rules configuration. |
| src/oxlint/configs/node.js | Node rules configuration. |
| src/oxlint/configs/de-morgan.js | De Morgan rules config (JS plugin). |
| src/oxlint/configs/unicorn.js | Unicorn rules configuration. |
| src/oxlint/configs/typescript.js | TypeScript rules configuration incl. overrides for tests. |
| src/oxlint/configs/vue.js | Vue rules + .vue override. |
| src/oxlint/configs/vue-a11y.js | Vue accessibility rules config (JS plugin). |
| src/oxlint/configs/perfectionist.js | Perfectionist sorting rules config (JS plugin). |
| src/oxlint/configs/e18e.js | E18E rules config (JS plugin). |
| src/oxlint/configs/opinionated.js | Additional opinionated overrides layered on top of base themes. |
| src/oxfmt/index.js | Refactor to share a helper for optional/merged formatter sub-configs. |
| scripts/oxgen.ts | New generator to migrate ESLint flat-config themes into oxlint configs and prune/patch results. |
| oxlint.config.ts | Repo-local oxlint config using the new shareable config. |
| UNSUPPORTED-RULES.md | Generated report of ESLint rules without oxlint equivalents. |
| package.json | Expose ./oxlint, add lint/build scripts, and add dev/peer deps for oxlint tooling. |
| pnpm-workspace.yaml | Add pnpm onlyBuiltDependencies configuration. |
| pnpm-lock.yaml | Lockfile updates for new dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 22 out of 24 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 22 out of 24 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 23 out of 25 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 26 out of 29 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.