dislop AI slop linter · v0.8.2

Three-level nested boxes

How to judge

Remove outer wrapper borders and separate sections with alignment, whitespace, or a single 1px rule.

What this rule catches

Three or more nested bordered/rounded containers wrap the same content (box-in-box-in-box).

Before and after examples

Original (flagged)
<div class="border rounded-xl p-6"><div class="border rounded-lg p-4"><div class="border rounded-md p-3">99.98% uptime</div></div></div>
Fallback trap (still sounds like AI)
<div class="shadow-xl rounded-2xl p-6"><div class="shadow-md rounded-xl p-4"><div class="bg-slate-900 rounded-lg p-3">99.98% uptime</div></div></div>
Clean version
<section class="metric-row"><span>Uptime (90d)</span><strong>99.98%</strong></section>

Edit note: One container boundary or hairline rule is enough to group a metric.

Run locally via CLI

npx --yes dislop explain ui-box-in-box
npx --yes dislop check . --pack deck-and-ui

Related guides

Other rules in deck-and-ui