Skip to content

@rotki/composable-ssr-safety

Require browser global access in composables to be SSR-safe

📖 Rule Details

This rule reports unguarded access to browser globals (window, document, navigator) inside composables. Access must be guarded with a typeof check or placed inside onMounted/onBeforeMount.

🚀 Version

This rule was introduced in @rotki/eslint-plugin v1.3.0

🔍 Implementation