Skip to content

Commit

Permalink
docs(eslint-plugin): [no-unsafe-member-access] update variable naming (
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPopOut committed Sep 17, 2020
1 parent e26e43f commit 1329294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/eslint-plugin/docs/rules/no-unsafe-member-access.md
Expand Up @@ -35,11 +35,11 @@ Examples of **correct** code for this rule:
```ts
declare const properlyTyped: { prop: { a: string } };

nestedAny.prop.a;
nestedAny.prop['a'];
properlyTyped.prop.a;
properlyTyped.prop['a'];

const key = 'a';
nestedAny.prop[key];
properlyTyped.prop[key];

const arr = [1, 2, 3];
arr[1];
Expand Down

0 comments on commit 1329294

Please sign in to comment.