@@ -1203,7 +1203,10 @@ export interface DummyRuleMap {
12031203 "react/no-unescaped-entities" ?: RuleNoConfig ;
12041204 "react/no-unknown-property" ?: AllowWarnDeny | [ AllowWarnDeny ] | [ AllowWarnDeny , NoUnknownPropertyConfig ] ;
12051205 "react/no-unsafe" ?: AllowWarnDeny | [ AllowWarnDeny ] | [ AllowWarnDeny , NoUnsafeConfig ] ;
1206- "react/no-unstable-nested-components" ?: DummyRule ;
1206+ "react/no-unstable-nested-components" ?:
1207+ | AllowWarnDeny
1208+ | [ AllowWarnDeny ]
1209+ | [ AllowWarnDeny , NoUnstableNestedComponentsConfig ] ;
12071210 "react/no-will-update-set-state" ?: AllowWarnDeny | [ AllowWarnDeny ] | [ AllowWarnDeny , NoWillUpdateSetStateConfig ] ;
12081211 "react/only-export-components" ?: AllowWarnDeny | [ AllowWarnDeny ] | [ AllowWarnDeny , OnlyExportComponentsConfig ] ;
12091212 "react/prefer-es6-class" ?: AllowWarnDeny | [ AllowWarnDeny ] | [ AllowWarnDeny , AlwaysNever ] ;
@@ -4231,6 +4234,20 @@ export interface NoUnsafeConfig {
42314234 */
42324235 checkAliases ?: boolean ;
42334236}
4237+ export interface NoUnstableNestedComponentsConfig {
4238+ /**
4239+ * Allow component definitions in props.
4240+ */
4241+ allowAsProps ?: boolean ;
4242+ /**
4243+ * Optional custom propTypes validators accepted for eslint-plugin-react compatibility.
4244+ */
4245+ customValidators ?: string [ ] ;
4246+ /**
4247+ * Glob pattern for render-prop names that may receive inline component definitions.
4248+ */
4249+ propNamePattern ?: string ;
4250+ }
42344251export interface OnlyExportComponentsConfig {
42354252 /**
42364253 * Allow exporting primitive constants (string/number/boolean/template literal)
0 commit comments