Skip to content

Commit

Permalink
Merge pull request #1041 from EvNaverniouk/976
Browse files Browse the repository at this point in the history
Minor documentation updates for no-unused-prop-types rule for issue 976
  • Loading branch information
lencioni committed Jan 29, 2017
2 parents 1bbbbba + 9a4eeba commit 3949b50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/rules/no-unused-prop-types.md
Expand Up @@ -53,7 +53,11 @@ This rule can take one argument to ignore some specific props during validation.

* `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
* `customValidators`: optional array of validators used for propTypes validation.
* `skipShapeProps`: In some cases it is impossible to accurately detect whether or not a `React.PropTypes.shape`'s values are being used. Setting this option to `true` will skip validation of `PropTypes.shape`.
* `skipShapeProps`: In some cases it is impossible to accurately detect whether or not a `React.PropTypes.shape`'s values are being used. Setting this option to `true` will skip validation of `PropTypes.shape` (`true` by default).

## Caveats

This rule does not track component props as they move from function to function or during variable renaming (such as in the event of prop object destructuring assignments). As such, it's prone to false positives in situations where the prop use cannot be accurately detected.

## About component detection

Expand Down

0 comments on commit 3949b50

Please sign in to comment.