File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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
88
99The following patterns are considered warnings:
1010
11- ``` js
11+ ``` jsx
1212var Hello = React .createClass ({
1313 render : function () {
1414 return < div> Hello {this .props .name }< / div> ;
@@ -27,7 +27,7 @@ var Hello = React.createClass({
2727
2828The following patterns are not considered warnings:
2929
30- ``` js
30+ ``` jsx
3131var Hello = React .createClass ({
3232 render : function () {
3333 return < div> Hello World< / div> ;
@@ -58,12 +58,13 @@ This rule can take one argument to ignore some specific props during validation.
5858
5959```
6060...
61- "prop-types": [<enabled>, { ignore: <ignore> }]
61+ "prop-types": [<enabled>, { ignore: <ignore>, customValidators: <customValidator> }]
6262...
6363```
6464
6565* ` enabled ` : for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
6666* ` ignore ` : optional array of props name to ignore during validation.
67+ * ` customValidators ` : optional array of validators used for propTypes validation.
6768
6869### As for "exceptions"
6970
You can’t perform that action at this time.
0 commit comments