AI-native design editor. Open-source Figma alternative.
Fix no-inline-named-types to match required members only
Danila Poyarkovdf0ccbca48d3
diff --git a/lint/plugin.ts b/lint/plugin.tsindex 22653b2ee..1e11d74aa 100644--- a/lint/plugin.ts+++ b/lint/plugin.ts@@ -28,9 +28,10 @@ const noInlineNamedTypes = {)if (!props || props.length < 2) return- if (props.some((m) => m.optional)) return+ const required = props.filter((m) => !m.optional)+ if (required.length < 2) return- const shape = props+ const shape = required.map((m) => {const typeNode = m.typeAnnotation?.typeAnnotationlet typeName = 'unknown'