From 24cce963308af5528f785dd8985ff9895382c612 Mon Sep 17 00:00:00 2001 From: Christopher Lee Date: Wed, 7 Dec 2022 23:20:22 -0500 Subject: [PATCH] Fix typo "foo.property"... Change "foo.property" to "example.property" --- packages/eslint-plugin/docs/rules/no-non-null-assertion.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/no-non-null-assertion.md b/packages/eslint-plugin/docs/rules/no-non-null-assertion.md index d8ac3bd31048..874e01605c8e 100644 --- a/packages/eslint-plugin/docs/rules/no-non-null-assertion.md +++ b/packages/eslint-plugin/docs/rules/no-non-null-assertion.md @@ -22,7 +22,7 @@ interface Example { } declare const example: Example; -const includesBaz = foo.property!.includes('baz'); +const includesBaz = example.property!.includes('baz'); ``` ### ✅ Correct @@ -33,7 +33,7 @@ interface Example { } declare const example: Example; -const includesBaz = foo.property?.includes('baz') ?? false; +const includesBaz = example.property?.includes('baz') ?? false; ``` ## When Not To Use It