File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ It can warn other developers if they make a mistake while reusing the component
8
8
9
9
The following patterns are considered warnings:
10
10
11
- ``` js
11
+ ``` jsx
12
12
var Hello = React .createClass ({
13
13
render : function () {
14
14
return < div> Hello {this .props .name }< / div> ;
@@ -27,7 +27,7 @@ var Hello = React.createClass({
27
27
28
28
The following patterns are not considered warnings:
29
29
30
- ``` js
30
+ ``` jsx
31
31
var Hello = React .createClass ({
32
32
render : function () {
33
33
return < div> Hello World< / div> ;
@@ -58,12 +58,13 @@ This rule can take one argument to ignore some specific props during validation.
58
58
59
59
```
60
60
...
61
- "prop-types": [<enabled>, { ignore: <ignore> }]
61
+ "prop-types": [<enabled>, { ignore: <ignore>, customValidators: <customValidator> }]
62
62
...
63
63
```
64
64
65
65
* ` enabled ` : for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
66
66
* ` ignore ` : optional array of props name to ignore during validation.
67
+ * ` customValidators ` : optional array of validators used for propTypes validation.
67
68
68
69
### As for "exceptions"
69
70
You can’t perform that action at this time.
0 commit comments