Repository navigation
chore(lint): enable typescript/consistent-type-imports - #2272
Conversation
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Reviewed the incremental diff and relevant stacked context; no blocking issues found.
67ccff7 to
f73e032
Compare
6a172af to
306446a
Compare
jbeckwith-oai
left a comment
There was a problem hiding this comment.
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.
306446a to
7188ceb
Compare
f73e032 to
dbcb63f
Compare
jbeckwith-oai
left a comment
There was a problem hiding this comment.
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.
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.
Summary
typescript/consistent-type-importsfromcompatibilityRules.Stack
dev/hayden/ultracite-179-require-await.Validation
Validated cumulatively at the stack head:
pnpm lintpnpm exec tsc --pretty falseNODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts --update=nonepnpm run buildnode --experimental-strip-types scripts/test-packed-package.ts