FRONT007infoPro

unbounded-ai-output

AI/LLM output rendered in JSX without truncation or overflow handling.

Applies to: JavaScript, TypeScript

Why this matters

AI model responses are unpredictably long — a 'summary' might be one sentence or five paragraphs. Rendering them directly in JSX without truncation (line-clamp, text-ellipsis) or overflow handling (overflow-hidden, max-w-*) can break card layouts, push other content off-screen, and create a poor user experience. Always constrain AI output with CSS truncation or programmatic slicing.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, FRONT007 includedstablestack explain FRONT007

FRONT007 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: FRONT007