SSR rules
Code that breaks or behaves differently during server rendering and hydration.
Each rule page shows a failing example, a passing example, and the configuration that turns the rule on.
Default (2)
Added by happy-path, the default preset.
| Rule | What it checks | Auto-fix |
|---|---|---|
ssr/no-browser-globals-in-ssr |
Disallow browser-only globals in SSR context. | |
ssr/no-hydration-mismatch |
Disallow non-deterministic values that cause hydration mismatch. |