openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

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

Open HAYDEN-OAI opened this issue 4 months ago • 0 comments

  • [x] 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, without introducing Ultracite yet.

  • Pin [email protected] and [email protected], 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

  • Linear: https://linear.app/openai/issue/SDK-198/adopt-ultracite-oxfmt-and-oxlint-with-automated-checks
  • This PR intentionally covers direct Oxlint/Oxfmt adoption first; Ultracite integration can follow separately.

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

HAYDEN-OAI avatar Aug 01 '26 00:08 HAYDEN-OAI