@cloud-ru/eslint-plugin-ssr-safe-react
Version:
eslint plugin for validating react code so that it would be suitable for SSR
22 lines (19 loc) • 423 B
JavaScript
export const DEFAULT_SCOPES = ['useEffect', 'useLayoutEffect'];
export const DEFAULT_CONDITIONS = ['isBrowser()'];
export const DEFAULT_VARIABLES = [
'document',
'history',
'location',
'screen',
'indexedDB',
'addEventListener',
'removeEventListener',
'innerHeight',
'innerWidth',
'requestAnimationFrame',
'dispatchEvent',
'IntersectionObserver',
'ResizeObserver',
'parent',
'matchMedia',
];