Skip to content

Commit c1c9460

Browse files
ybiquitousbradzacher
authored andcommitted
docs(eslint-plugin): [explicit-member-accessibility] example (typescript-eslint#887)
1 parent 4a29098 commit c1c9460

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/eslint-plugin/docs/rules/explicit-member-accessibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following patterns are considered correct with the default options `{ access
7979

8080
```ts
8181
class Animal {
82-
public constructor(public breed, animalName) {
82+
public constructor(public breed, name) {
8383
// Parameter property and constructor
8484
this.animalName = name;
8585
}
@@ -102,7 +102,7 @@ The following patterns are considered incorrect with the accessibility set to **
102102

103103
```ts
104104
class Animal {
105-
public constructor(public breed, animalName) {
105+
public constructor(public breed, name) {
106106
// Parameter property and constructor
107107
this.animalName = name;
108108
}
@@ -125,7 +125,7 @@ The following patterns are considered correct with the accessibility set to **no
125125

126126
```ts
127127
class Animal {
128-
constructor(protected breed, animalName) {
128+
constructor(protected breed, name) {
129129
// Parameter property and constructor
130130
this.name = name;
131131
}

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