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: docs/src/rules/max-params.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,10 @@ This rule enforces a maximum number of parameters allowed in function definition
29
29
This rule has a number or object option:
30
30
31
31
*`"max"` (default `3`) enforces a maximum number of parameters in function definitions
32
-
*`"countVoidThis"` (default `false`) counts a `this` declaration when the type is `void` (TypeScript only)
32
+
*`"countThis"` (default `"except-void"`, possible values `"always"`, `"never"` or `"except-void"`) whether to count a `this` declaration (TypeScript only)
33
33
34
34
**Deprecated:** The object property `maximum` is deprecated; please use the object property `max` instead.
35
+
**Deprecated:** The object property `countVoidThis` is deprecated; please use `countThis: "except-void"` instead of `countVoidThis: false`, and `countThis: "always"` instead of `countVoidThis: true`.
0 commit comments