openai-node
openai-node copied to clipboard
[SDK-198] Migrate ESLint and Prettier to Oxlint and Oxfmt
- [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
experimentalTernariesoption.
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 lintpnpm test:unit— 61 test files and 1,453 tests passing- 20 focused Oxlint import-rule/autofix cases passing
pnpm formatand selective/emptyscripts/fast-formatbehavior verified