/** * Agents solve "need a slightly different X" by subclassing X instead of * composing; each layer makes sense alone but understanding one class means * reading the whole chain to its root. Counts superclass hops, reports once * a chain passes the max. */ import type { Rule } from 'eslint'; /** Options for the `no-deep-class-inheritance` rule. */ export interface NoDeepClassInheritanceOptions { /** Maximum number of superclass hops allowed before an allowed root is reached. */ readonly maxDepth: number; /** Class names that end the depth count early once reached. */ readonly allowedRoots: readonly string[]; } declare const rule: Rule.RuleModule; export default rule;