eslint-plugin-ssr-friendly icon indicating copy to clipboard operation
eslint-plugin-ssr-friendly copied to clipboard

ESLint plugin to detect inappropriate use of DOM globals properties

Results 6 eslint-plugin-ssr-friendly issues
Sort by recently updated
recently updated
newest added
trafficstars

# `no-dom-globals-as-default-params` ## Not allowed ```javascript function createStorage(storage = localStorage) { } const isVisible = (element = scrollbars) => element.visible ``` ## Allowed ``` function createStorage(storage) { const storageMethod =...

This plugin supports react functional components, but not custom hooks: ``` const useX = () => { // doesn't error return window.scrollX } function Component() { const errors = window.scrollX...

It will protect from: > Please note that we can't detect if you're still calling this function without properly checking upfront if `typeof window !== "undefined"`. ### Not allowed example...

https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/ ESLint 9 has been released and the custom rule API has significantly changed. `eslint-plugin-ssr-friendly` is no longer compatible w/ the ESLint 9. It is possible to migrate the existing...

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...

dependencies