Skip to content

Commit

Permalink
Docs: add a correct example to no-unsafe-optional-chaining (refs #14029
Browse files Browse the repository at this point in the history
…) (#14050)
  • Loading branch information
arminyahya committed Jan 29, 2021
1 parent 46e836d commit e0b05c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/no-unsafe-optional-chaining.md
Expand Up @@ -92,6 +92,8 @@ obj?.foo();

obj?.foo.bar;

obj.foo?.bar;

foo?.()?.bar;

(obj?.foo ?? bar)`template`;
Expand Down

0 comments on commit e0b05c7

Please sign in to comment.