You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin/docs/rules/member-ordering.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,9 @@ There are multiple ways to specify the member types. The most explicit and granu
37
37
'public-instance-field',
38
38
'protected-instance-field',
39
39
'private-instance-field',
40
+
'public-abstract-field',
41
+
'protected-abstract-field',
42
+
'private-abstract-field',
40
43
41
44
// Constructors
42
45
'public-constructor',
@@ -50,14 +53,17 @@ There are multiple ways to specify the member types. The most explicit and granu
50
53
'public-instance-method',
51
54
'protected-instance-method',
52
55
'private-instance-method',
56
+
'public-abstract-method',
57
+
'protected-abstract-method',
58
+
'private-abstract-method',
53
59
]
54
60
```
55
61
56
62
Note: If you only specify some of the possible types, the non-specified ones can have any particular order. This means that they can be placed before, within or after the specified types and the linter won't complain about it.
57
63
58
64
### Member group types (with accessibility, ignoring scope)
59
65
60
-
It is also possible to group member types by their accessibility (`static`, `instance`), ignoring their scope.
66
+
It is also possible to group member types by their accessibility (`static`, `instance`, `abstract`), ignoring their scope.
61
67
62
68
```json5
63
69
[
@@ -85,13 +91,15 @@ Another option is to group the member types by their scope (`public`, `protected
0 commit comments