Skip to content

chore(lint): enable typescript/consistent-type-imports - #2272

Merged
HAYDEN-OAI merged 1 commit into
mainfrom
dev/hayden/ultracite-180-typescript-consistent-type-imports
Aug 11, 2026
Merged

HAYDEN-OAI merged 1 commit into
mainfrom
dev/hayden/ultracite-180-typescript-consistent-type-imports

Conversation

@HAYDEN-OAI

Copy link
Copy Markdown
Contributor

Summary

  • Removes typescript/consistent-type-imports from compatibilityRules.
  • Resolves existing diagnostics with behavior-preserving fixes or narrowly documented exceptions.

Stack

  • Part 180 of 185.
  • Base: dev/hayden/ultracite-179-require-await.
  • This PR is stacked on the prior rule cleanup.

Validation

Validated cumulatively at the stack head:

  • pnpm lint
  • pnpm exec tsc --pretty false
  • NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts --update=none
  • pnpm run build
  • node --experimental-strip-types scripts/test-packed-package.ts

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

Reviewed the incremental diff and relevant stacked context; no blocking issues found.

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

Reviewed this exact head and audited the type-only import conversion across the affected files. Runtime values remain value imports, type-only symbols move to import type, and public type contracts are unchanged. CI is green; no blocking findings.

@HAYDEN-OAI
HAYDEN-OAI force-pushed the dev/hayden/ultracite-179-require-await branch from 306446a to 7188ceb Compare August 11, 2026 16:58
Base automatically changed from dev/hayden/ultracite-179-require-await to main August 11, 2026 17:02
@openai-sdks

openai-sdks Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 237/237 SDK tests passed in 10.487s for Node SDK PR #2272.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 217ms
tests/chat-completions-create.test.ts ✅ Passed 262ms
tests/chat-completions-stream.test.ts ✅ Passed 176ms
tests/files-content-binary.test.ts ✅ Passed 165ms
tests/files-create-multipart.test.ts ✅ Passed 138ms
tests/files-list-pagination.test.ts ✅ Passed 133ms
tests/initialize-config.test.ts ✅ Passed 197ms
tests/instance-isolation.test.ts ✅ Passed 92ms
tests/models-list.test.ts ✅ Passed 119ms
tests/responses-background-lifecycle.test.ts ✅ Passed 207ms
tests/responses-body-method-errors.test.ts ✅ Passed 428ms
tests/responses-cancel-timeout.test.ts ✅ Passed 277ms
tests/responses-cancel.test.ts ✅ Passed 205ms
tests/responses-compact-retries.test.ts ✅ Passed 209ms
tests/responses-compact.test.ts ✅ Passed 206ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 109ms
tests/responses-create-advanced.test.ts ✅ Passed 184ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.166s
tests/responses-create-errors.test.ts ✅ Passed 278ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 141ms
tests/responses-create-retries.test.ts ✅ Passed 257ms
tests/responses-create-stream-failures.test.ts ✅ Passed 193ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.152s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.504s
tests/responses-create-stream.test.ts ✅ Passed 188ms
tests/responses-create-terminal-states.test.ts ✅ Passed 241ms
tests/responses-create-timeout.test.ts ✅ Passed 343ms
tests/responses-create.test.ts ✅ Passed 158ms
tests/responses-delete.test.ts ✅ Passed 123ms
tests/responses-input-items-errors.test.ts ✅ Passed 211ms
tests/responses-input-items-list.test.ts ✅ Passed 178ms
tests/responses-input-items-options.test.ts ✅ Passed 99ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 335ms
tests/responses-input-tokens-count.test.ts ✅ Passed 237ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.093s
tests/responses-not-found-errors.test.ts ✅ Passed 399ms
tests/responses-parse.test.ts ✅ Passed 163ms
tests/responses-retrieve-retries.test.ts ✅ Passed 236ms
tests/responses-retrieve.test.ts ✅ Passed 197ms
tests/responses-stored-method-errors.test.ts ✅ Passed 560ms
tests/retry-behavior.test.ts ✅ Passed 2.998s
tests/sdk-error-shape.test.ts ✅ Passed 372ms

View OkTest run #31515564141

SDK merge (34009e91be4f) · head (dbcb63f68619) · base (d6870180b5f5) · OkTest (91635c6a2723)

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

Thermo-nuclear exact-head re-review complete. The rebased commit has the same stable patch-id as the previously audited change. I rechecked the type-only import conversion across all 101 affected files: runtime values remain value imports, type-only symbols and typeof-import contracts are represented with import type, and public API/type/runtime behavior is unchanged. Diff hygiene is clean, no changed file newly crosses 1k lines, and lint/build/examples/detect-breaking/CodeQL plus the available Node 22/26 tests pass. No blocking findings.

@HAYDEN-OAI
HAYDEN-OAI merged commit 259b978 into main Aug 11, 2026
25 checks passed
@HAYDEN-OAI
HAYDEN-OAI deleted the dev/hayden/ultracite-180-typescript-consistent-type-imports branch August 11, 2026 17:07
@openai-sdks openai-sdks Bot mentioned this pull request Aug 11, 2026
HAYDEN-OAI added a commit that referenced this pull request Sep 3, 2026
Restore the explicit `export {};` module markers in the CommonJS and ESM
web type-test fixtures, removed in #2542. Earlier lint migrations (#2170
and #2272) deliberately preserved these markers. Keep that intent with
exceptions for `unicorn/require-module-specifiers` and
`typescript/no-useless-empty-export` scoped to the two export lines.

Validated with frozen pnpm installation, `pnpm lint`, `pnpm build`, and
direct CJS/ESM fixture typechecks and emitted-module checks against the
built SDK using TypeScript 4.9.5 and 6.0.3. The direct checks explicitly
include these root-level files, which the normal ecosystem tsconfig
include patterns omit.

This branch was previously deployed

1 inactive deployment
ci — dbcb63f6 Deployed Aug 11, 2026 by HAYDEN-OAI via examples #6943
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.

2 participants