Skip to content
GitHub
Sections

Reference · Things to avoid

JavaScript for something CSS does

Forbidden
Scroll listeners for sticky positioning; scripted accordions and dialogs that have native equivalents
Instead
Platform first: position: sticky, <details>, <dialog>, :has(), container queries, scroll-behavior, popover. Reach for a framework when the platform genuinely lacks the capability.

What this rule looks like

Forbidden
Instead
Kind
Rule
Section
Things to avoid
Group
Code-level
Bucket
judgment
Severity
note
Since
v0.1.0

Read as plain text