Skip to content

Commit e0b05c7

Browse files
authored
Docs: add a correct example to no-unsafe-optional-chaining (refs #14029) (#14050)
1 parent 46e836d commit e0b05c7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/rules/no-unsafe-optional-chaining.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ obj?.foo();
9292

9393
obj?.foo.bar;
9494

95+
obj.foo?.bar;
96+
9597
foo?.()?.bar;
9698

9799
(obj?.foo ?? bar)`template`;

0 commit comments

Comments
 (0)