Skip to content

Commit 399954f

Browse files
committed
Revert cleanup
1 parent 18a2d38 commit 399954f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/rules/no-unstable-nested-components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ function Component() {
124124
"off" | "warn" | "error",
125125
{
126126
"allowAsProps": true | false,
127+
"customValidators": [] /* optional array of validators used for propTypes validation */
127128
"propNamePattern": string
128129
}
129130
]

lib/rules/no-unstable-nested-components.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,12 @@ module.exports = {
272272
schema: [{
273273
type: 'object',
274274
properties: {
275+
customValidators: {
276+
type: 'array',
277+
items: {
278+
type: 'string',
279+
},
280+
},
275281
allowAsProps: {
276282
type: 'boolean',
277283
},

0 commit comments

Comments
 (0)