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

Polymer({...}) generates new-cap error #25

Closed
dandv opened this issue Sep 27, 2016 · 2 comments
Closed

Polymer({...}) generates new-cap error #25

dandv opened this issue Sep 27, 2016 · 2 comments

Comments

@dandv
Copy link

dandv commented Sep 27, 2016

Typical Polymer code such as

Polymer({
  is: 'my-view1',
  ...
});

generates the A function with a name starting with an uppercase letter should only be used as a constructor. (new-cap) error due to 'new-cap': 2,.

@stramel
Copy link
Contributor

stramel commented May 19, 2017

You could add this in your globals section

@philipwalton
Copy link
Contributor

AFAIK, Polymer has its own JS style guide, so I don't think we need to make any exceptions here for Polymer. Polymer could create it's own eslint config that extends Google if it wants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants