Skip to content

feat(eslint): make no-redudant-default-arguments work across files - #122976

Merged
TkDodo merged 2 commits into
masterfrom
tkdodo/feat/eslint-no-redudant-default-arguments-accross-files
Aug 28, 2026
Merged

feat(eslint): make no-redudant-default-arguments work across files#122976
TkDodo merged 2 commits into
masterfrom
tkdodo/feat/eslint-no-redudant-default-arguments-accross-files

Conversation

@TkDodo

@TkDodo TkDodo commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

The initial rule worked without type information, which means it couldn’t track across files. That made it somewhat usable, but the biggest offenders are usually cross-file imports.

The rule is now updated and found 150+ more usages where we pass the defaultValue unnecessarily to a function or component.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 28, 2026
@TkDodo

TkDodo commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator Author

bugbot run

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit bfe3dfe. Configure here.

@TkDodo
TkDodo marked this pull request as ready for review August 28, 2026 09:56
@TkDodo
TkDodo requested review from a team as code owners August 28, 2026 09:56
Comment thread static/app/components/core/checkbox/checkbox.spec.tsx

@priscilawebdev priscilawebdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!!

@TkDodo
TkDodo merged commit f72a018 into master Aug 28, 2026
82 checks passed
@TkDodo
TkDodo deleted the tkdodo/feat/eslint-no-redudant-default-arguments-accross-files branch August 28, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants