Skip to content

fix(no-useless-default-assignment): use suggestions for undefined defaults - #1231

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/no-useless-default-assignment-suggestions
Sep 23, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
codex/no-useless-default-assignment-suggestions

Conversation

@camc314

@camc314 camc314 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Convert the remaining = undefined automatic fixes in no-useless-default-assignment to suggestions, so --fix no longer removes defaults that can affect a function's runtime .length. Ordinary default removal was already suggestion-only.

Ports typescript-eslint#12826, including suggestion wording and regression coverage for unchanged automatic-fix output and exact suggestion edits.

Copilot AI lite review requested due to automatic review settings September 23, 2026 09:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T09:42:04.009902Z 1cb3f33 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@camc314 camc314 self-assigned this Sep 23, 2026

camc314 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

…aults (#1231)

Convert the remaining `= undefined` automatic fixes in `no-useless-default-assignment` to suggestions, so `--fix` no longer removes defaults that can affect a function's runtime `.length`. Ordinary default removal was already suggestion-only.

Ports [typescript-eslint#12826](typescript-eslint/typescript-eslint#12826), including suggestion wording and regression coverage for unchanged automatic-fix output and exact suggestion edits.
@graphite-app
graphite-app Bot force-pushed the codex/no-useless-default-assignment-suggestions branch from 1cb3f33 to 5f54862 Compare September 23, 2026 10:02
@graphite-app
graphite-app Bot merged commit 5f54862 into main Sep 23, 2026
9 checks passed
@graphite-app graphite-app Bot removed the 0-merge label Sep 23, 2026
@graphite-app
graphite-app Bot deleted the codex/no-useless-default-assignment-suggestions branch September 23, 2026 10:08
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