Skip to content

refactor(oxlint,oxfmt): Share src-js code via apps/shared#22452

Merged
graphite-app[bot] merged 1 commit into
mainfrom
05-15-refactor_oxlint_oxfmt_share_js_code_via_apps_shared
May 18, 2026
Merged

refactor(oxlint,oxfmt): Share src-js code via apps/shared#22452
graphite-app[bot] merged 1 commit into
mainfrom
05-15-refactor_oxlint_oxfmt_share_js_code_via_apps_shared

Conversation

@leaysgur

@leaysgur leaysgur commented May 15, 2026

Copy link
Copy Markdown
Member

New place to share code for use in src-js, similar to how crates/oxc_config works.

Initially, I considered creating an apps/oxc_cli and moving crates/oxc_config there. However, it felt unnatural deps for crates/oxc_linter -> apps/oxc_cli, so I decided to keep the Rust code as is for now and share only the JS code.

Since apps/shared exports .ts files directly, each app is responsible for bundling them via @oxapps/shared. Tests still live in apps/shared, so separate CI is also added and hooked by each app.

To start, I've only shared the function that reports TS incompatibility errors. This is just for verification purposes and will be fixed in a later PR.

@github-actions github-actions Bot added A-linter Area - Linter A-cli Area - CLI A-formatter Area - Formatter A-linter-plugins Area - Linter JS plugins labels May 15, 2026

leaysgur commented May 15, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of 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.

Comment thread apps/oxfmt/vitest.config.ts Outdated
@leaysgur leaysgur force-pushed the 05-15-refactor_oxlint_oxfmt_share_js_code_via_apps_shared branch 3 times, most recently from 2e98c6d to a39e030 Compare May 18, 2026 02:06
@leaysgur leaysgur marked this pull request as ready for review May 18, 2026 03:51
@leaysgur leaysgur requested a review from overlookmotel as a code owner May 18, 2026 03:51

@camc314 camc314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if "shared" is the right name, but the rest LGTM

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label May 18, 2026

camc314 commented May 18, 2026

Copy link
Copy Markdown
Contributor

Merge activity

New place to share code for use in `src-js`, similar to how `crates/oxc_config` works.

Initially, I considered creating an `apps/oxc_cli` and moving `crates/oxc_config` there. However, it felt unnatural deps for `crates/oxc_linter` -> `apps/oxc_cli`, so I decided to keep the Rust code as is for now and share only the JS code.

Since `apps/shared` exports `.ts` files directly, each app is responsible for bundling them via `@oxapps/shared`. Tests still live in `apps/shared`, so separate CI is also added and hooked by each app.

To start, I've only shared the function that reports TS incompatibility errors. This is just for verification purposes and will be fixed in a later PR.
@graphite-app graphite-app Bot force-pushed the 05-15-refactor_oxlint_oxfmt_share_js_code_via_apps_shared branch from a39e030 to 37d49fc Compare May 18, 2026 07:56
@graphite-app graphite-app Bot merged commit 37d49fc into main May 18, 2026
27 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label May 18, 2026
@graphite-app graphite-app Bot deleted the 05-15-refactor_oxlint_oxfmt_share_js_code_via_apps_shared branch May 18, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-formatter Area - Formatter A-linter Area - Linter A-linter-plugins Area - Linter JS plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants