-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Rule for allowing upper camel case only in Class names and constructor functions (that require new) #8085
Comments
Does the |
No. |
|
Closing this issue as it looks like the question has been answered. Please feel free to visit us in the ESLint Gitter if you have any other issues! |
Saw this was closed and wondering what is the correct setting if you are getting new-cap error messages for creation of class in a Polymer 2 app? I have this line which generates 2 new-cap error messages: I have this rule: |
I'd like to setup eslint so that I can:
myImportedModule
,myObject
).MyClass
), and nowhere else.MY_CONSTANT
). This is already covered bycamelcase
rule.I have tried:
But
capIsNew
option here only works on function names, not on other variables/object names. For example,I've also considered
id-match
, but it doesn't distinguish between identifier types (classes/constructors vs other variables). I cannot totally disable upper camel case names.Can it be done?
The text was updated successfully, but these errors were encountered: