eslint-plugin-ssr-friendly

JSON →
library 1.3.0 ·javascript
verified May 27, 2026

ESLint plugin that detects incorrect use of DOM globals (e.g., window, document, navigator) in module scope, constructors, React component render methods, and function components, ensuring code is safe for server-side rendering (SSR) and Node.js environments. Stable version 1.3.0 as of August 2023. It focuses on preventing runtime errors during SSR by catching patterns that assume a browser environment. Unlike general linting rules, it provides specific rules for React class components, function components, and class constructors. Released under MIT license with monthly releases.

total hits 23
actors 6 distinct systems
last hit 2d ago ByteDance
MetaBot
4
GPTBot
2
Script
1
ByteDance
1
Search engines
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇪🇸 Spain · 🇸🇬 Singapore · 🇬🇧 United Kingdom