Rules Reference

Deslint ships with 34 rules across 7 scoring categories. Each rule can be set to "error", "warn", or "off". Rules marked fixable auto-fix when you run eslint --fix.

Deep dive: for the full story on why arbitrary Tailwind values drift — the three archetypes, how AI coding agents amplify them, and how deslint catches each — read The hidden cost of Tailwind arbitrary values.

Colors

Spacing

Typography

Responsive

Accessibility

Consistency

Motion & Animation

Inline Suppression

Suppress a single violation with deslint-ignore and a mandatory reason:

{/* deslint-ignore no-arbitrary-colors -- brand gradient requires exact hex */}
<div className="bg-[#1E3A5F]" />

Report a False Positive

If a rule flags code that you believe is correct, please report it so we can improve Deslint for everyone. Include the rule name, the flagged code, and why you think it's a false positive.

Report a false positive on GitHub →