Rule camelcase cannot detect between upper-camelcase and lower-camelcase when lint `property`.
See original GitHub issueWhat rule do you want to change?
camelcase
Does this change cause the rule to produce more or fewer warnings?
More warnings.
How will the change be implemented? (New option, new default behavior, etc.)?
New options.
{
propertiesStyle: "upper" | "lower" | "all",
}
Please provide some example code that this change will affect:
This is bad code example.
const camel = {};
camel.UpperCamelcase = true;
This is good code example.
const camel = {};
camel.lowerCamelcase = true;
What does the rule currently do for this code?
All will be ok. The rule currently do not detect what type of camelcase is using for property
.
What will the rule do after it’s changed?
There will be an option to configure upper-camelcase or lower-camelcase for property
.
What’s more
I’m willing to fork and make a PR if my idea is acceptable. 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
camelcase - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Disable check of camel case rule in eslint - Stack Overflow
Just get the same camelcase error without any change. The eslint documentation says just disable the entire rule but does not specify a...
Read more >Effective Dart: Style
lowerCamelCase names capitalize the first letter of each word, except the first which is always lowercase, even if it's an acronym.
Read more >What is the lowerCamelCase naming convention? - TechTarget
Learn about lowerCamelCase, a naming convention in which a name contains multiple words joined together as a single word with a lowercase first...
Read more >Google TypeScript Style Guide
UpperCamelCase, class / interface / type / enum / decorator / type parameters. lowerCamelCase, variable / parameter / function / method / property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry that I got busy on my work and had a cold last week. I’m working on it now. @mcclowes
Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach accepted status after 21 days tend to never be accepted, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.
Thanks for contributing to ESLint and we appreciate your understanding.