Skip to content

chore(lint): enable no-else-return - #2181

Merged
HAYDEN-OAI merged 1 commit into
mainfrom
dev/hayden/ultracite-091-no-else-return
Aug 10, 2026
Merged

HAYDEN-OAI merged 1 commit into
mainfrom
dev/hayden/ultracite-091-no-else-return

Conversation

@HAYDEN-OAI

@HAYDEN-OAI HAYDEN-OAI commented Aug 10, 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

  • Remove the no-else-return compatibility exception from oxlint.config.ts.
  • Flatten seven else branches that follow unconditional returns.
  • Baseline count: 7 diagnostics.

Additional context & links

Validation

  • pnpm lint
  • pnpm exec tsc --pretty false
  • NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts --update=none

Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181 👈 this PR
#2182
#2183
#2184
#2185

@HAYDEN-OAI
HAYDEN-OAI marked this pull request as ready for review August 10, 2026 17:55
@HAYDEN-OAI
HAYDEN-OAI requested a review from a team as a code owner August 10, 2026 17:55
@openai-sdks

openai-sdks Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 237/237 SDK tests passed in 10.663s for Node SDK PR #2181.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 188ms
tests/chat-completions-create.test.ts ✅ Passed 285ms
tests/chat-completions-stream.test.ts ✅ Passed 141ms
tests/files-content-binary.test.ts ✅ Passed 158ms
tests/files-create-multipart.test.ts ✅ Passed 163ms
tests/files-list-pagination.test.ts ✅ Passed 155ms
tests/initialize-config.test.ts ✅ Passed 161ms
tests/instance-isolation.test.ts ✅ Passed 93ms
tests/models-list.test.ts ✅ Passed 127ms
tests/responses-background-lifecycle.test.ts ✅ Passed 217ms
tests/responses-body-method-errors.test.ts ✅ Passed 433ms
tests/responses-cancel-timeout.test.ts ✅ Passed 268ms
tests/responses-cancel.test.ts ✅ Passed 265ms
tests/responses-compact-retries.test.ts ✅ Passed 247ms
tests/responses-compact.test.ts ✅ Passed 201ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 166ms
tests/responses-create-advanced.test.ts ✅ Passed 147ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.087s
tests/responses-create-errors.test.ts ✅ Passed 254ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 126ms
tests/responses-create-retries.test.ts ✅ Passed 242ms
tests/responses-create-stream-failures.test.ts ✅ Passed 204ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.133s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.474s
tests/responses-create-stream.test.ts ✅ Passed 119ms
tests/responses-create-terminal-states.test.ts ✅ Passed 308ms
tests/responses-create-timeout.test.ts ✅ Passed 265ms
tests/responses-create.test.ts ✅ Passed 174ms
tests/responses-delete.test.ts ✅ Passed 172ms
tests/responses-input-items-errors.test.ts ✅ Passed 182ms
tests/responses-input-items-list.test.ts ✅ Passed 177ms
tests/responses-input-items-options.test.ts ✅ Passed 90ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 321ms
tests/responses-input-tokens-count.test.ts ✅ Passed 222ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.197s
tests/responses-not-found-errors.test.ts ✅ Passed 321ms
tests/responses-parse.test.ts ✅ Passed 207ms
tests/responses-retrieve-retries.test.ts ✅ Passed 301ms
tests/responses-retrieve.test.ts ✅ Passed 238ms
tests/responses-stored-method-errors.test.ts ✅ Passed 795ms
tests/retry-behavior.test.ts ✅ Passed 3.022s
tests/sdk-error-shape.test.ts ✅ Passed 398ms

View OkTest run #31426670609

SDK merge (a68df85a7b8d) · head (e30164559c6c) · base (9cd0461dce29) · 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 review complete: no blocking findings. The full diff and surrounding semantics look maintainable, and the lint, build, test matrix, examples, ecosystem, breaking-change, and CodeQL checks are green.

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

Re-review complete on exact head 9881cf0. The prior type-contract blocker is resolved: the public zero-argument event contracts keep direct void, with a narrow documented exact-file lint override. I reviewed the full stacked diff and this PR’s no-else-return cleanup; the control-flow changes preserve behavior and add no new structural or maintainability issues. Hosted lint, build, Node 22/24/26 tests, examples, ecosystem tests, breaking-change detection, and CodeQL are green.

HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `promise/param-names` compatibility exception from
`oxlint.config.ts`.
- Rename four Promise executor parameters to the configured
resolve/reject names.
- Baseline count: 4 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 76; stacked on
#2165.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166 👈 this PR
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `typescript/no-invalid-void-type` compatibility exception
from `oxlint.config.ts`.
- Preserve four `void` type semantics through `ReturnType<() => void>`.
- Baseline count: 4 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 77; stacked on
#2166.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167 👈 this PR
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/no-useless-switch-case` compatibility exception
from `oxlint.config.ts`.
- Remove four redundant switch labels while retaining catch-all
defaults.
- Baseline count: 4 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 78; stacked on
#2167.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168 👈 this PR
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/prefer-query-selector` compatibility exception
from `oxlint.config.ts`.
- Use `querySelector()` for four fixed-ID ecosystem fixture lookups.
- Baseline count: 4 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 79; stacked on
#2168.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169 👈 this PR
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/require-module-specifiers` compatibility exception
from `oxlint.config.ts`.
- Localize four intentional empty module-marker exports with
explanations.
- Baseline count: 4 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 80; stacked on
#2169.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170 👈 this PR
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `no-useless-concat` compatibility exception from
`oxlint.config.ts`.
- Collapse adjacent literal concatenations without changing emitted
bytes.
- Baseline count: 5 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 81; stacked on
#2170.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171 👈 this PR
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/no-lonely-if` compatibility exception from
`oxlint.config.ts`.
- Combine five nested predicates while preserving short-circuit
behavior.
- Baseline count: 5 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 82; stacked on
#2171.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172 👈 this PR
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/prefer-code-point` compatibility exception from
`oxlint.config.ts`.
- Use code-point APIs where safe and document three intentional UTF-16
code-unit sites.
- Baseline count: 5 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 83; stacked on
#2172.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173 👈 this PR
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `import/newline-after-import` compatibility exception from
`oxlint.config.ts`.
- Add the six required import-boundary blank lines.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 84; stacked on
#2173.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174 👈 this PR
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `logical-assignment-operators` compatibility exception from
`oxlint.config.ts`.
- Use `||=` for six listener-array initializations while preserving
falsy semantics.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 85; stacked on
#2174.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175 👈 this PR
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `no-case-declarations` compatibility exception from
`oxlint.config.ts`.
- Brace five switch case bodies that contain lexical declarations.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 86; stacked on
#2175.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176 👈 this PR
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `no-useless-return` compatibility exception from
`oxlint.config.ts`.
- Remove or make explicit six redundant bare returns without weakening
typecheck control flow.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 87; stacked on
#2176.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177 👈 this PR
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `typescript/no-wrapper-object-types` compatibility
exception from `oxlint.config.ts`.
- Replace wrapper object types with primitive `object` and `bigint`
types.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 88; stacked on
#2177.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178 👈 this PR
#2179
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/custom-error-definition` compatibility exception
from `oxlint.config.ts`.
- Set Realtime error names and preserve two vendored exported class
identities locally.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 89; stacked on
#2178.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179 👈 this PR
#2180
#2181
#2182
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `unicorn/prefer-number-properties` compatibility exception
from `oxlint.config.ts`.
- Replace six safe global numeric references with `Number.*`
equivalents.
- Baseline count: 6 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 90; stacked on
#2179.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180 👈 this PR
#2181
#2182
#2183
#2184
#2185

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

Re-review complete on exact head e301645. This update is a rebase onto current main: the PR commit has the same stable patch-id as the previously approved head. I rechecked the complete seven-file diff and surrounding control flow; the no-else-return flattening remains behavior-preserving, direct, and maintainable, with no API, type, security, architecture, or file-size regression. Hosted lint, build, examples, breaking-change detection, and completed CodeQL checks are green; the remaining test and ecosystem jobs are still running.

@HAYDEN-OAI
HAYDEN-OAI merged commit da60bda into main Aug 10, 2026
26 checks passed
@HAYDEN-OAI
HAYDEN-OAI deleted the dev/hayden/ultracite-091-no-else-return branch August 10, 2026 20:01
@openai-sdks openai-sdks Bot mentioned this pull request Aug 10, 2026
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `no-unsafe-optional-chaining` compatibility exception from
`oxlint.config.ts`.
- Carry optionality or add explicit guards at seven unsafe chain uses.
- Baseline count: 7 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 92; stacked on
#2181.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182 👈 this PR
#2183
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `oxc/no-barrel-file` compatibility exception from
`oxlint.config.ts`.
- Enable the rule globally while scoping seven intentional public/vendor
barrel entrypoints.
- Baseline count: 7 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 93; stacked on
#2182.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183 👈 this PR
#2184
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `typescript/no-empty-object-type` compatibility exception
from `oxlint.config.ts`.
- Replace seven empty object types with `object`-based equivalents.
- Baseline count: 7 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 94; stacked on
#2183.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184 👈 this PR
#2185
HAYDEN-OAI added a commit that referenced this pull request Aug 10, 2026
- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

- Remove the `typescript/no-inferrable-types` compatibility exception
from `oxlint.config.ts`.
- Remove seven primitive annotations inferred from their initializers.
- Baseline count: 7 diagnostics.

## Additional context & links

- Oxlint cleanup stack, part 95; stacked on
#2184.
- Preserves generated-file exclusions and repository-specific import
policy.

### Validation

- `pnpm lint`
- `pnpm exec tsc --pretty false`
- `NODE_NO_WARNINGS=1 pnpm exec vitest run --config vitest.config.mts
--update=none`

## Stack

#2166
#2167
#2168
#2169
#2170
#2171
#2172
#2173
#2174
#2175
#2176
#2177
#2178
#2179
#2180
#2181
#2182
#2183
#2184
#2185 👈 this PR

This branch was previously deployed

1 inactive deployment
ci — e3016455 Deployed Aug 10, 2026 by HAYDEN-OAI via examples #6046
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