Skip to content

[SDK-198] Migrate ESLint and Prettier to Oxlint and Oxfmt - #2044

Open
HAYDEN-OAI wants to merge 21 commits into
mainfrom
dev/hayden/sdk-198-oxlint-oxfmt
Open

[SDK-198] Migrate ESLint and Prettier to Oxlint and Oxfmt#2044
HAYDEN-OAI wants to merge 21 commits into
mainfrom
dev/hayden/sdk-198-oxlint-oxfmt

Conversation

@HAYDEN-OAI

@HAYDEN-OAI HAYDEN-OAI commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Migrate the existing ESLint/Prettier toolchain to standalone Oxlint and Oxfmt.

  • Pin oxlint@1.75.0 and oxfmt@0.60.0, and remove the root ESLint, TypeScript-ESLint, and Prettier dependencies.
  • Preserve the existing formatting options, exclusions, restricted self-import rule, fixture exceptions, and historical breaking-change compatibility.
  • Add a small dependency-free Oxlint plugin to preserve the current unused-import-only behavior without introducing broad unused-variable errors.
  • Update the existing lint/format/fast-format scripts, contributor documentation, and VS Code development-container integration.
  • Apply the one-time mechanical formatting migration required because Oxfmt does not support Prettier's experimentalTernaries option.

Additional context & links

Validation

  • pnpm lint
  • pnpm test:unit — 61 test files and 1,453 tests passing
  • 20 focused Oxlint import-rule/autofix cases passing
  • pnpm format and selective/empty scripts/fast-format behavior verified

Tooling performance

Median wall-clock time for the exact repository checks:

Check ESLint / Prettier Oxlint / Oxfmt Improvement
Formatting Prettier 3.1.1: 6.44s Oxfmt 0.60.0: 0.87s 7.4× faster (86% less time)
Linting ESLint 9.39.4: 4.22s Oxlint 1.75.0: 0.89s 4.7× faster (79% less time)
Combined 10.72s 1.79s 6.0× faster (83% less time)

Measured on Linux x64 with Node 26.5.0 and 32 available logical CPUs. Each result is the median of seven interleaved runs after two warmup runs, using isolated tracked-file snapshots of base aeab0549 and PR head b014a1f; repository ignore rules were preserved and the local untracked coverage/ directory was excluded from both snapshots. No persistent formatter or linter caches were enabled.

# Before
prettier --check .
eslint .

# After
oxfmt --check .
oxlint .

Combined timings were measured by running the formatter and linter sequentially; unchanged build, TypeScript, and package-validation stages were excluded.

Comment thread tests/uploads.test.ts Fixed
@openai-sdks

openai-sdks Bot commented Aug 3, 2026

Copy link
Copy Markdown

OkTest Summary

237/237 SDK tests passed in 10.558s for Node SDK PR #2044.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 188ms
tests/chat-completions-create.test.ts ✅ Passed 274ms
tests/chat-completions-stream.test.ts ✅ Passed 138ms
tests/files-content-binary.test.ts ✅ Passed 163ms
tests/files-create-multipart.test.ts ✅ Passed 141ms
tests/files-list-pagination.test.ts ✅ Passed 147ms
tests/initialize-config.test.ts ✅ Passed 158ms
tests/instance-isolation.test.ts ✅ Passed 103ms
tests/models-list.test.ts ✅ Passed 133ms
tests/responses-background-lifecycle.test.ts ✅ Passed 221ms
tests/responses-body-method-errors.test.ts ✅ Passed 331ms
tests/responses-cancel-timeout.test.ts ✅ Passed 224ms
tests/responses-cancel.test.ts ✅ Passed 269ms
tests/responses-compact-retries.test.ts ✅ Passed 254ms
tests/responses-compact.test.ts ✅ Passed 245ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 115ms
tests/responses-create-advanced.test.ts ✅ Passed 260ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.129s
tests/responses-create-errors.test.ts ✅ Passed 181ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 129ms
tests/responses-create-retries.test.ts ✅ Passed 270ms
tests/responses-create-stream-failures.test.ts ✅ Passed 222ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.157s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.616s
tests/responses-create-stream.test.ts ✅ Passed 93ms
tests/responses-create-terminal-states.test.ts ✅ Passed 240ms
tests/responses-create-timeout.test.ts ✅ Passed 216ms
tests/responses-create.test.ts ✅ Passed 186ms
tests/responses-delete.test.ts ✅ Passed 199ms
tests/responses-input-items-errors.test.ts ✅ Passed 177ms
tests/responses-input-items-list.test.ts ✅ Passed 198ms
tests/responses-input-items-options.test.ts ✅ Passed 106ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 230ms
tests/responses-input-tokens-count.test.ts ✅ Passed 270ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.292s
tests/responses-not-found-errors.test.ts ✅ Passed 257ms
tests/responses-parse.test.ts ✅ Passed 199ms
tests/responses-retrieve-retries.test.ts ✅ Passed 236ms
tests/responses-retrieve.test.ts ✅ Passed 270ms
tests/responses-stored-method-errors.test.ts ✅ Passed 559ms
tests/retry-behavior.test.ts ✅ Passed 3.129s
tests/sdk-error-shape.test.ts ✅ Passed 259ms

View OkTest run #30865318567

SDK merge (9fc00ab3e7a3) · head (a83c977276e1) · base (481b325a0731) · OkTest (91635c6a2723)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b014a1f580

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/fast-format Outdated

@jbeckwith-oai jbeckwith-oai 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.

Comprehensive review of the exact current head. I found five reproducible correctness/parity regressions in the new lint/format path. CI and the existing suites are green, but they do not exercise these fixer and incremental-workflow cases; please add committed regression coverage with the fixes.

Comment thread scripts/oxlint-plugin.cjs Outdated
Comment thread scripts/oxlint-plugin.cjs
Comment thread scripts/oxlint-plugin.cjs Outdated
Comment thread scripts/fast-format Outdated
Comment thread scripts/fast-format Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22a138b0ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/oxlint-plugin.cjs Outdated
Comment thread scripts/oxlint-plugin.cjs
Comment thread scripts/oxlint-plugin.cjs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17152d6d2a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/oxlint-plugin.cjs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71a534c94e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/oxlint-plugin.cjs Outdated
Comment thread scripts/oxlint-plugin.cjs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5895555699

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/oxlint-plugin.cjs
Comment thread scripts/oxlint-plugin.cjs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbc8ff7713

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/oxlint-plugin.cjs
Comment thread scripts/lint
Comment thread scripts/oxlint-plugin.cjs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee837bb39c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/oxlint-plugin.cjs Outdated
Comment thread scripts/oxlint-plugin.cjs Outdated
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.

3 participants