Skip to content

migrate to oxlint#14

Merged
james-elicx merged 3 commits intomainfrom
j-branch-6
Feb 1, 2026
Merged

migrate to oxlint#14
james-elicx merged 3 commits intomainfrom
j-branch-6

Conversation

@james-elicx
Copy link
Collaborator

@james-elicx james-elicx commented Feb 1, 2026

Notable changes

  • Remove Biome + eslint from projects, in favour of using oxlint.
  • Applies the oxlint fixes for several rules, incl. prefer node builtins, unnecessary escapes, redundant spreads.
    • I tried to preserve rules from both previous setups.
  • Switch the http import alias to @/http for aws to avoid node builtin clashes (one of the linting rules that now applies throughout).
    • Note: There's a new sub-task to cleanup import aliases throughout our packages.
  • Bump engines version for Node to 22.

Result

Finished in 318ms on 980 files using 14 threads.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 1, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/cloudflare@14
npm i https://pkg.pr.new/@opennextjs/aws@14

commit: 5555db2

@james-elicx james-elicx force-pushed the j-branch-6 branch 3 times, most recently from ddc3099 to 594b928 Compare February 1, 2026 15:33
@james-elicx james-elicx linked an issue Feb 1, 2026 that may be closed by this pull request
@james-elicx james-elicx marked this pull request as ready for review February 1, 2026 15:48
@james-elicx james-elicx requested review from sommeeeer and vicb February 1, 2026 15:49
@@ -0,0 +1,91 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you intend to add this?

Copy link
Collaborator Author

@james-elicx james-elicx Feb 1, 2026

Choose a reason for hiding this comment

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

yeah, we have vscode settings in the repo, so i added the zed ones for oxc since i use zed

import type { OpenNextHandlerOptions } from "types/overrides";
import { runWithOpenNextRequestContext } from "utils/promise";

import type { OpenNextNodeResponse } from "@/http/index.js";
Copy link
Contributor

Choose a reason for hiding this comment

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

@/http looks weird (not consistent).
IIUC you plan to address it in a follow up which is reasonable

Copy link
Collaborator Author

@james-elicx james-elicx Feb 1, 2026

Choose a reason for hiding this comment

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

yeah would have been a bigger diff if i addressed them all in one, wanted to keep it smaller. going to tidy it up tomorrow evening

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

LGTM with a few nits, thanks James!

Bump engines version for Node to 20

20 EOL in 2026-04, what about 22?

@james-elicx
Copy link
Collaborator Author

james-elicx commented Feb 1, 2026

Bump engines version for Node to 20

20 EOL in 2026-04, what about 22?

Oh wow, that really crept up, didn't realise it was so soon, I'll up it to 22

@james-elicx james-elicx merged commit 5f5ff31 into main Feb 1, 2026
6 checks passed
@james-elicx james-elicx deleted the j-branch-6 branch February 1, 2026 19:35
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.

switch to oxlint

2 participants