chore(linter): Create a JSON file for Vitest-compatible Jest rules.#18414
chore(linter): Create a JSON file for Vitest-compatible Jest rules.#18414graphite-app[bot] merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR creates a JSON file containing the list of Vitest-compatible Jest rules to enable automation of rule updates across the oxc ecosystem. The JSON file serves as a machine-readable version of the existing Rust constant, allowing external tools (oxlint-migrate and eslint-plugin-oxlint) to programmatically access the rule list without manual synchronization.
Changes:
- Added a new JSON file containing the 41 Vitest-compatible Jest rules
- Updated comments in the Rust code to reference the new JSON file instead of the external oxlint-migrate repository
- Added a comprehensive test to ensure the JSON file stays synchronized with the Rust constant
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/oxc_linter/data/vitest_compatible_jest_rules.json | New JSON file containing the alphabetized list of 41 Vitest-compatible Jest rules, matching the existing Rust constant |
| crates/oxc_linter/src/utils/mod.rs | Updated comments to reference the JSON file and added a test to enforce synchronization between the JSON and Rust constant |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
…18414) This is intended to match the existing constant in the codebase exactly, and will be used for oxlint-migrate and eslint-plugin-oxlint to get rid of some tedious busywork with keeping the projects in sync. Fixes #18413 See oxc-project/oxlint-migrate#344 for the companion PR in oxlint-migrate.
a2ba9a7 to
0ffb5e9
Compare
…ases (#619) See oxc-project/oxc#18413 for the concept, and oxc-project/oxc#18414 for the PR where I implemented this in the oxc repo. This was generated with help from Claude Code by having it basically reproduce the changes from oxc-project/oxlint-migrate#344 in this repo. --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
This is intended to match the existing constant in the codebase exactly, and will be used for oxlint-migrate and eslint-plugin-oxlint to get rid of some tedious busywork with keeping the projects in sync.
Fixes #18413
See oxc-project/oxlint-migrate#344 for the companion PR in oxlint-migrate.