From 62df1dd316df39d7aaed02d6bacd415803301943 Mon Sep 17 00:00:00 2001 From: Chris Nickel Date: Fri, 22 Nov 2019 10:30:43 -0500 Subject: [PATCH] [Docs] `prop-types`: Update 'skipUndeclared' in rule options - Updated description to indicate it's of type boolean. - Included 'skipUndeclared' in rule option's snippet. --- docs/rules/prop-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/prop-types.md b/docs/rules/prop-types.md index 627b93bb94..7dea535f04 100644 --- a/docs/rules/prop-types.md +++ b/docs/rules/prop-types.md @@ -102,14 +102,14 @@ This rule can take one argument to ignore some specific props during validation. ```js ... -"react/prop-types": [, { ignore: , customValidators: }] +"react/prop-types": [, { ignore: , customValidators: , skipUndeclared: }] ... ``` * `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0. * `ignore`: optional array of props name to ignore during validation. * `customValidators`: optional array of validators used for propTypes validation. -* `skipUndeclared`: only error on components that have a propTypes block declared +* `skipUndeclared`: optional boolean to only error on components that have a propTypes block declared. ### As for "exceptions"