Skip to content
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

Way to prevent warnings from an external library wither lower case constructor names #916

Closed
computersarecool opened this issue Jun 14, 2017 · 1 comment

Comments

@computersarecool
Copy link

commented Jun 14, 2017

I am using a library that uses lower case names for all constructors (in this case Ammo.js. This creates warnings all my code. Is there a way to disable this warning.

I am using Flycheck and Emacs so these warnings show up as I am coding.

@feross

This comment has been minimized.

Copy link
Member

commented Jun 21, 2017

You can try using the functions without new. Sometimes libraries support with and without new.

If that doesn't work, add /* eslint-disable new-cap */ to the top of your file to disable the rule.

@feross feross closed this Jun 21, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.