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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eslint-plugin): [prefer-optional-chain] support logical with empty object #4430
Merged
bradzacher
merged 23 commits into
typescript-eslint:main
from
omril1:feat/issue-4395-empty-object-optional-chaining
Mar 18, 2022
Merged
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a5d7ec7
feat(eslint-plugin): issue 4395
omril1 a1dcc4d
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 a5823d3
feat(eslint-plugin): issue 4395
omril1 65392a8
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 c788fcb
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 bd59eb5
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 6002a5c
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 aac5eb1
fix(eslint-plugin): cr comment
omril1 155e936
fix(eslint-plugin): more UT and handle ternary
omril1 13f6e95
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 7f907c5
fix(eslint-plugin): remove comment
omril1 d9c8120
fix(eslint-plugin): prefer optional chaining over `?? {}).`
omril1 4065bfe
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 3249b85
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 914d2f9
Legit nitpick
omril1 6836a74
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 d1650b0
fix(eslint-plugin): prefer optional chaining
omril1 f355e92
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 75884fb
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 aa33afb
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 3dc29b3
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 2e06f7a
Merge branch 'main' into feat/issue-4395-empty-object-optional-chaining
omril1 44236bb
feat(eslint-plugin): cr util.getOperatorPrecedence
omril1 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, interesting point. My hunch would be that we probably want to handle function calls for cases like this:
...but I wouldn't consider it a blocker / must-have for this PR. Up to you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoshuaKGoldberg Care to re-review this? I don't think I'm going to add object built-ins in the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got it, no problem!