question-mark
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.

No rule for avoiding single letter names

See original GitHub issue

While the readme says: Avoid single letter names. Be descriptive with your naming https://github.com/airbnb/javascript#naming--descriptive

The rule is deactivated: https://github.com/airbnb/javascript/blob/be6e13f7b91ede245602c9760d112905ac497dcc/packages/eslint-config-airbnb-base/rules/style.js#L48

What about activating the rules with min 2 characters?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

7reactions
nikgrafcommented, Aug 19, 2016

@ljharb @swist even if you use loops why not use index instead of i? Wouldn’t that match with Avoid single letter names. Be descriptive with your naming.

1reaction
ljharbcommented, Sep 5, 2016

I’d be fine updating “good” examples not to use i, but there shouldn’t be many since looping is a bad example 😃

We’re not currently planning to enable the id-length rule here, and will leave that for top-level apps to define.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SEC Proposes Rule Changes to Prevent Misleading or ...
The Securities and Exchange Commission today proposed amendments to enhance and modernize the Investment Company Act “Names Rule” to address ...
Read more >
If my brand has the same name as another, can I change one ...
If my brand has the same name as another, can I change one letter or add a period in between words to avoid...
Read more >
Single-letter name : r/namenerds - Reddit
Hey all, So I've been going by a single-letter name (B) for a while (almost two years), and I'm thinking of getting my...
Read more >
Single-letter second-level domain - Wikipedia
Single -letter second-level domains are domains in which the second-level domain of the domain name consists of only one letter, such as x.com....
Read more >
Discovered a disease? WHO has new rules for avoiding ...
WHO has new rules for avoiding offensive names ... "You should not take political correctness so far that in the end no one...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found