Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
fix(eslint-plugin): [no-unnecessary-type-parameters] should parenthesize type in suggestion fixer if necessary#10907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
kirkwaiblinger merged 13 commits intotypescript-eslint:mainfromy-hsgw:fix/no-unnecessary-type-parametersApr 28, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
13 commits Select commitHold shift + click to select a range
681ac8e
fix: parenthesize type in suggestion fixer if necessary
y-hsgwe5cbe8e
test: add test
y-hsgwcc8af2e
feat: support TSIndexedAccessType
y-hsgw1a60c5b
test: add test
y-hsgw91dd50d
fix: add "!" type assertion
y-hsgw4cb399a
test: add test
y-hsgwdd18051
fix: correct type precedence logic to consider broader context
y-hsgw8505b54
fix: use getWrappingFixer
y-hsgw8086924
chore: revert comment
y-hsgw40a139f
Merge branch 'main' into fix/no-unnecessary-type-parameters
kirkwaiblinger90ad87b
Merge branch 'main' into fix/no-unnecessary-type-parameters
kirkwaiblinger66a4988
address cov
kirkwaiblinger30b0c4f
Merge branch 'main' into fix/no-unnecessary-type-parameters
kirkwaiblingerFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
24 changes: 23 additions & 1 deletionpackages/eslint-plugin/src/rules/no-unnecessary-type-parameters.ts
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
2 changes: 1 addition & 1 deletionpackages/eslint-plugin/src/util/getWrappingFixer.ts
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
167 changes: 167 additions & 0 deletionspackages/eslint-plugin/tests/rules/no-unnecessary-type-parameters.test.ts
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
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.