Skip to content

Commit 1329294

Browse files
authored
docs(eslint-plugin): [no-unsafe-member-access] update variable naming (typescript-eslint#2575)
1 parent e26e43f commit 1329294

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/eslint-plugin/docs/rules/no-unsafe-member-access.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Examples of **correct** code for this rule:
3535
```ts
3636
declare const properlyTyped: { prop: { a: string } };
3737

38-
nestedAny.prop.a;
39-
nestedAny.prop['a'];
38+
properlyTyped.prop.a;
39+
properlyTyped.prop['a'];
4040

4141
const key = 'a';
42-
nestedAny.prop[key];
42+
properlyTyped.prop[key];
4343

4444
const arr = [1, 2, 3];
4545
arr[1];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy