-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Is it possible to suppress a warning via a comment? #512
Comments
The escape hatch for this is currently to surround the |
Hi @evanw, What do you suggest we do if an imported module is using require() (within itself), and we want to suppress the warning? |
Some options:
|
Thanks! Am using the API :-) |
yaegassy
added a commit
to yaegassy/coc-psalm
that referenced
this issue
Mar 10, 2021
yaegassy
added a commit
to yaegassy/coc-htmlhint
that referenced
this issue
Mar 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting this warning currently:
warning: This call to "require" will not be bundled because the argument is not a string literal
It's totally legitimate and is a useful warning, however its fine in this instance:
It would be nice to be able to disable the warning with an explanation like:
The text was updated successfully, but these errors were encountered: