test(linter/no-param-reassign): cover this computed key assignment#22303
Merged
graphite-app[bot] merged 1 commit intoMay 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds regression coverage for no-param-reassign to ensure assignments performed via computed member expressions like this[key] don’t incorrectly trigger parameter reassignment/property-modification diagnostics (especially when props: true), including a TypeScript this-parameter signature variant.
Changes:
- Add passing test cases for
this[key]simple assignment, compound assignment (+=), anddelete. - Add a TypeScript-annotated function signature case (generic + explicit
thisparameter) to ensure the computed-key path remains clean under TS syntax.
Merging this PR will not alter performance
Comparing Footnotes
|
Dunqing
approved these changes
May 11, 2026
f5f7a33 to
a7c3e22
Compare
Member
Merge activity
|
187d80f to
a74a9b0
Compare
a74a9b0 to
f3ed565
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
no-param-reassignregression cases for assignments throughthis[key]Stacked on #22302.
Related to #22300