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/rules/require-default-props.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ NotAComponent.propTypes = {
212
212
-`enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
213
213
-`forbidDefaultForRequired`: optional boolean to forbid prop default for a required prop. Defaults to false.
214
214
-`classes`: For now, only works with "defaultProps".
215
-
-`functions`: "Please help documentation". "defaultArguments" is recommended. We will change it to deafult later. Defaults to "defaultProps".
215
+
-`functions`: optional string that this rule determines strategy for the function. "defaultArguments" is recommended. We will change it to deafult later. Defaults to "defaultProps".
216
216
-`ignoreFunctionalComponents`: optional boolean to ignore this rule for functional components. Defaults to false. Deprecated, use `functions` instead.
0 commit comments