Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule camelcase cannot detect between upper-camelcase and lower-camelcase when lint `property`.

See original GitHub issue

What rule do you want to change?


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:closed
  • Created 5 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

tinyminscommented, Jul 4, 2018

Sorry that I got busy on my work and had a cold last week. I’m working on it now. @mcclowes

eslint-deprecated[bot]commented, Dec 11, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found