-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve no-get with useOptionalChaining - infer when nesting is not o…
…ptional when autofixing this.get('foo.bar').baz // will error if either foo or bar is nullish "baz of undefined" this.foo?.bar?.baz // (previous behavior) evaluates to `undefined` this.foo.bar.baz // (updated behavior) errors with either "bar of undefined" or "baz of undefined" This maintains the behavior more closely when a nested chain contains a nullish value.
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
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