Skip to content

Commit e04a31b

Browse files
committed
Added 'customValidators' key to proptypes schema
This allows adding the name of the custom validator used instead of React.PropTypes
1 parent e009744 commit e04a31b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/rules/prop-types.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,12 @@ module.exports.schema = [{
610610
items: {
611611
type: 'string'
612612
}
613+
},
614+
customValidators: {
615+
type: 'array',
616+
items: {
617+
type: 'string'
618+
}
613619
}
614620
},
615621
additionalProperties: false

0 commit comments

Comments
 (0)