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

ESLint rule new-cap #466

Closed
timarney opened this issue Aug 20, 2016 · 2 comments
Closed

ESLint rule new-cap #466

timarney opened this issue Aug 20, 2016 · 2 comments

Comments

@timarney
Copy link

Reporting this as a note of something I ran into.

I'm getting this warning:

7:24 warning A function with a name starting with an uppercase letter should only be used as a constructor new-cap
✖ 1 problem (0 errors, 1 warning)

It turns out this warning is thrown when using Immutable JS

const list = Immutable.List(generateRandomList())
@gaearon
Copy link
Contributor

gaearon commented Aug 20, 2016

Hmm, this is a stylistic rule and we should disable it. Can you send a PR removing it?

@gaearon
Copy link
Contributor

gaearon commented Aug 20, 2016

Duplicate of #465.

@gaearon gaearon closed this as completed Aug 20, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants