Skip to content

chore: migrate to oxc - #11367

Merged
sheremet-va merged 7 commits into
mainfrom
chore/use-oxc
Sep 28, 2026
Merged

sheremet-va merged 7 commits into
mainfrom
chore/use-oxc

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

It's time

@sheremet-va sheremet-va changed the title Chore/use oxc chore: migrate to oxc Sep 27, 2026
@netlify

netlify Bot commented Sep 27, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit fee9508
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ab90bb30038cd00081ad73d
😎 Deploy Preview https://deploy-preview-11367--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread .oxlintrc.jsonc
},
"ignorePatterns": [
"**/fixtures",
"**/*.d.ts",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the reason for ignoring declaration files?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It was already in eslint config, at the time I think it was breaking dts files copied from jest-dom. In general there are few of them and they are not edited frequently, I think we can manage it on our own

@hi-ogawa hi-ogawa left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!


Looks like CI went down from 47s to 3s

Comment thread .oxfmtrc.jsonc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit. Can we switch to jsonc config? Just to avoid red-squiggles on some viewer. oxlint may also switch to jsonc config since we may want some comment inside.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or even TS configs?

@sheremet-va sheremet-va Sep 28, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think jsonc is fine. Using js/ts would require a js runtime while json/jsonc could just be consumed by rust (which is faster)

Providing a $schema also enables autocomplete for rules which is the only benefit of a ts/js config

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does autocomplete somehow cover custom plugins too?

@sheremet-va sheremet-va Sep 28, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It only covers plugins that oxc supports (the ones in plugins array - like unicorn/vue/import/jsdoc, it doesn't support jsPlugins obv)

@AriPerkkio AriPerkkio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome! Need to take closer look later. I also started same thing last week, maybe there's something for reference:

Comment thread .oxlintrc.jsonc
hi-ogawa
hi-ogawa previously approved these changes Sep 28, 2026
Comment thread .oxlintrc.jsonc Outdated

@AriPerkkio AriPerkkio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good like this. We can always fine tune rules in follow-up PRs.

@sheremet-va
sheremet-va merged commit a029e76 into main Sep 28, 2026
28 of 29 checks passed
@sheremet-va
sheremet-va deleted the chore/use-oxc branch September 28, 2026 09:25
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.

4 participants