Skip to content

Commit

Permalink
Mention defaults for forbid option in docs
Browse files Browse the repository at this point in the history
Listing the defaults in the documentation for these rules makes it
clearer how they work.
  • Loading branch information
lencioni committed Jul 28, 2016
1 parent 7e67c2d commit 67919e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rules/forbid-component-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ The following patterns are not considered warnings:

### `forbid`

An array of strings, with the names of props that are forbidden.
An array of strings, with the names of props that are forbidden. The default value of this option is `['className', 'style']`.
2 changes: 1 addition & 1 deletion docs/rules/forbid-prop-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Component extends React.Component {

### `forbid`

An array of strings, with the names of `React.PropTypes` keys that are forbidden.
An array of strings, with the names of `React.PropTypes` keys that are forbidden. The default value for this option is `['any', 'array', 'object']`.

## When not to use

Expand Down

0 comments on commit 67919e4

Please sign in to comment.