Skip to content

Commit

Permalink
[ESLint] Consistently treat optional chaining as regular chaining (#1…
Browse files Browse the repository at this point in the history
…9273)

* Revert "Fix ExhaustiveDeps ESLint rule throwing with optional chaining (#19260)"

This reverts commit 0f84b0f.

* Re-add a test from #19260

* Remove all code for optional chaining support

* Consistently treat optional chaining as regular chaining

This is not ideal because our suggestions use normal chaining. But it gets rid of all current edge cases.

* Add more tests

* More consistency in treating normal and optional expressions

* Add regression tests for every occurrence of Optional*
  • Loading branch information
gaearon authored Jul 7, 2020
1 parent 98390f1 commit 7ca1d86
Show file tree
Hide file tree
Showing 2 changed files with 396 additions and 43 deletions.
Loading

0 comments on commit 7ca1d86

Please sign in to comment.