We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-restricted-syntax
Add new rule or no-restricted-syntax config to ban browser globals like window and document:
window
document
'use client'
useEffect()
If considering 3rd-party options, check out:
eslint-plugin-ssr-friendly
ssr-friendly/no-dom-globals-in-react-fc
The text was updated successfully, but these errors were encountered:
karlhorky
Eprince-hub
No branches or pull requests
Add new rule or
no-restricted-syntax
config to ban browser globals likewindow
anddocument
:'use client'
directive) but NOT inuseEffect()
'use client'
directive)If considering 3rd-party options, check out:
eslint-plugin-ssr-friendly
withssr-friendly/no-dom-globals-in-react-fc
ruleThe text was updated successfully, but these errors were encountered: