No rule for avoiding single letter names
See original GitHub issueWhile 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:
- Created 7 years ago
- Comments:9
Top 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 >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
@ljharb @swist even if you use loops why not use
index
instead ofi
? Wouldn’t that match withAvoid single letter names. Be descriptive with your naming.
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.