-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[code-infra] Replace all references of event as e #41968
Comments
I've also seen somewhat similar stuff with
Should we think of it similarly? |
Maybe, it's up to the core team IMO. I think we're all quite on the same page for I found this issue back in the GitHub project I'm trying to revive for code-infra. Maybe we should groom this a bit first |
The one-letter variables are a never-ending topic in software development 😆 For IMHO the rule should not apply to for loops |
I agree. Ok, I propose then to keep the scope of this issue to |
Hey, Could someone this issue to me? I would love to make a PR on this issue |
@AfaqShuaib09 Go for it |
For example
material-ui/docs/data/joy/components/list/ExampleNavigationMenu.tsx
Line 67 in 1103320
Also enforce this with an eslint rule. e.g.
https://eslint.org/docs/latest/rules/id-lengthhttps://eslint.org/docs/latest/rules/id-denylistSingle letter identifiers are desired in some cases (
t
for translations, andi
,j
,k
for loop variables). So let's keep the scope of this issue down to specific identifiers only and not enforce it by length. Some other ids I can think of are:err
=>error
res
=>response
, or did you meanresult
, orresolve
?The text was updated successfully, but these errors were encountered: