Skip to content

Commit 67919e4

Browse files
committed
Mention defaults for forbid option in docs
Listing the defaults in the documentation for these rules makes it clearer how they work.
1 parent 7e67c2d commit 67919e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/rules/forbid-component-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ The following patterns are not considered warnings:
4141

4242
### `forbid`
4343

44-
An array of strings, with the names of props that are forbidden.
44+
An array of strings, with the names of props that are forbidden. The default value of this option is `['className', 'style']`.

docs/rules/forbid-prop-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Component extends React.Component {
5050

5151
### `forbid`
5252

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

5555
## When not to use
5656

0 commit comments

Comments
 (0)