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/no-unused-prop-types.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ This rule can take one argument to ignore some specific props during validation.
54
54
*`enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
55
55
*`customValidators`: optional array of validators used for propTypes validation.
56
56
*`skipShapeProps`: In some cases it is impossible to accurately detect whether or not a `PropTypes.shape`'s values are being used. Setting this option to `true` will skip validation of `PropTypes.shape` (`true` by default).
57
-
*`propWrapperFunctions`: Needed when wrapping propTypes in a function, such as `forbidExtraProps`. Otherwise propType checking will be skipped.
57
+
*`propWrapperFunctions`: The names of any functions used to wrap the propTypes object, such as `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.
0 commit comments