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): [prefer-optional-chain] fixThisExpression andPrivateIdentifier errors#6028
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
bradzacher merged 25 commits intotypescript-eslint:mainfromomril1:fix/issue6024-fix-prefer-optional-chain-private-and-this-in-negated-orJan 31, 2023
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
25 commits Select commitHold shift + click to select a range
71cb502 prevent thrown error from default case
5acc1af try
a3b6eda Revert "try"
a68b13a More cases and format
7e2185e Update packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts
omril11a30e94 Merge remote-tracking branch 'upstream/main' into fix/issue6024-fix-p…
21cfbd2 TSAsExpression,AwaitExpression,NewExpression
0ae6c45 Merge remote-tracking branch 'upstream/main' into fix/issue6024-fix-p…
ecfacff Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
3ce9b0a Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
c3c458e CR: remove throws and simplify switch cases
9c15f28 Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
ab70949 support private identifiers
e58dab9 Merge remote-tracking branch 'upstream/main' into fix/issue6024-fix-p…
12effef coverage
0afc516 over covered case
8efa51d Clearly, we had some missing coverage 😄
57b86c1 this got uglier
99528f0 fix coverage
cbb5168 Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
b6d265c Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
54d4664 Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
ac8b6a2 Merge remote-tracking branch 'upstream/main' into fix/issue6024-fix-p…
a2a6314 Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
37716b2 Merge branch 'main' into fix/issue6024-fix-prefer-optional-chain-priv…
File 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
46 changes: 32 additions & 14 deletionspackages/eslint-plugin/src/rules/prefer-optional-chain.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
15 changes: 14 additions & 1 deletionpackages/eslint-plugin/tests/rules/prefer-optional-chain/prefer-optional-chain.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.