diff --git a/docs/rules/no-unstable-nested-components.md b/docs/rules/no-unstable-nested-components.md index c7be87f1fa..45fa214ef4 100644 --- a/docs/rules/no-unstable-nested-components.md +++ b/docs/rules/no-unstable-nested-components.md @@ -124,6 +124,7 @@ function Component() { "off" | "warn" | "error", { "allowAsProps": true | false, + "customValidators": [] /* optional array of validators used for propTypes validation */ "propNamePattern": string } ] diff --git a/lib/rules/no-unstable-nested-components.js b/lib/rules/no-unstable-nested-components.js index b8f44b171f..c330795ff0 100644 --- a/lib/rules/no-unstable-nested-components.js +++ b/lib/rules/no-unstable-nested-components.js @@ -272,6 +272,12 @@ module.exports = { schema: [{ type: 'object', properties: { + customValidators: { + type: 'array', + items: { + type: 'string', + }, + }, allowAsProps: { type: 'boolean', },