-
Notifications
You must be signed in to change notification settings - Fork 5
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
[feature] need a process undefined linting rule #70
Comments
i did a bit of searching and the best i came up with is disabling |
|
yeah, that's the issue with that approach for sure. adding a comment to disable the no-undef rule on the lines that you actually use |
Yeah it still wouldn't prevent |
Using a types in js would catch this and feel more tuned into the job than eslint. Have you considered that? |
Code that checks for the presence of process should test its type against undefined. Trying to access it AT ALL in a browser environment will throw an exception.
I don't know if a linting rule exists or if one needs to be written. But it should prevent things like:
or
The text was updated successfully, but these errors were encountered: