-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
add eslint-disable-line to prevent restricted globals error #933
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
successful build, addresses issue. need to call this out in the docs as a necessary eslint-disable
@erinz2020 I think I removed this in my last PR, so apologies if it caused any problems! How did the problem look, so I can be on the lookout in the future? |
the error message was something like |
hi @Rodhlann yea I tried to add some rules to eslint.config.mjs but for some reason it didn't work, if you happen to know how to fix this please let me know, I've no idea about how this doesn't work
|
…_global_self add eslint-disable-line to prevent restricted globals error
I think our current solution matches what the community was doing, though I'm still confused as to why it wasn't showing up for me. I will say, it seems that the |
Agreed! I tried to make react-app-rewired follow our eslint rule by indicating our mjs in packge.json, but it didn't work either. so... adding back that line seems the best solution for us, at least for now. |
This PR addresses an ESLint issue in service-worker.js by adding a directive (/* eslint-disable no-restricted-globals */) to prevent linting errors related to the use of self, which is required in the Service Worker context.
PR does not fix a numbered issue.