exceedsMaxLinesComponent '{{name}}' is {{lines}} lines; max allowed is {{max}}. Split into smaller components/hooks.small-rules/no-god-componentsEnforce React component size and complexity limits inspired by the 'Refactor God Component' checklist.
exceedsMaxLinesComponent '{{name}}' is {{lines}} lines; max allowed is {{max}}. Split into smaller components/hooks.exceedsTargetLinesComponent '{{name}}' is {{lines}} lines; target is {{target}} (max {{max}}). Consider extracting hooks/components.nullLiteralAvoid `null` in components; use `undefined` instead.tooManyPropsComponent '{{name}}' destructures {{count}} props; max allowed is {{max}}. Group props or split the component.tooManyStateHooksComponent '{{name}}' has {{count}} state hooks ({{hooks}}); max allowed is {{max}}. Extract cohesive state into a custom hook.tsxNestingTooDeepComponent '{{name}}' has TSX nesting depth {{depth}}; max allowed is {{max}}. Extract child components.This rule accepts one options object after the severity.
function Big() { const a = 1; const b = 2; const c = 3; return <div />;}function Small({ a, b }) { const [count, setCount] = useState(0); if (count > 0) setCount(count - 1); return <div><span>{a}{b}</span></div>;}