eslint-plugin-ssr-friendly
JSON →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.
Traffic · last 30 days ↓73% vs prev 7d
total hits 23
actors 6 distinct systems
last hit 2d ago ByteDance
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇪🇸 Spain · 🇸🇬 Singapore · 🇬🇧 United Kingdom
Resources
API endpoints
compatibility /v1/registry/eslint-plugin-ssr-friendly/compatibility