-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
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
Request: Include SSR-related rules #440
Comments
Some more context here: https://github.com/github/core-ux/discussions/102#discussioncomment-5512115 |
It looks like the ssr-friendly plugin was added to primer/react in primer/react#3164. @lesliecdubs do you think this is sufficient for your concerns? |
Here's my interpretation of all this:
And, here's some questions I think we should answer through this issue:
cc: @dgreif as I believe that comment about the ui config being temporary is yours |
Regarding I'm honestly not sure we should add SSR rules to this base |
I would generally think Primer and dotcom should be using the same rules.I see ssr-friendly/no-dom-globals-in-constructor and ssr-friendly/no-dom-globals-in-react-cc-render rules were set to "off" in https://github.com/primer/react/pull/3164/files, although it looks like we're also purposefully disabling these rules using the one-line As far as adding SSR rules to the base |
Would you consider adding SSR-related rules to the recommended React config in the eslint ruleset? This would help catch SSR incompatibility during development instead of requiring more expensive remediation later.
The text was updated successfully, but these errors were encountered: