You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[code-infra] Replace all references of event as e #41968
Single letter identifiers are desired in some cases (t for translations, and i, 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 mean result, or resolve?
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
Activity
danilo-leal commentedon Apr 19, 2024
I've also seen somewhat similar stuff with
tbeing used fortranslation:material-ui/docs/data/material/components/material-icons/SearchIcons.js
Line 263 in 6577056
Should we think of it similarly?
Janpot commentedon Apr 19, 2024
Maybe, it's up to the core team IMO. I think we're all quite on the same page for
e=>eventI found this issue back in the GitHub project I'm trying to revive for code-infra. Maybe we should groom this a bit first
flaviendelangle commentedon Apr 22, 2024
The one-letter variables are a never-ending topic in software development 😆
For
e=>event, it enforces some consistency across the codebase so I'm all in favor of doing it.IMHO the rule should not apply to for loops
for (let i=0), and formap/filterit's debatable but I don't have a strong preference.Janpot commentedon Apr 22, 2024
I agree. Ok, I propose then to keep the scope of this issue to
e=>eventonly. And to instead use theid-denylistrule. wdyt?[-][core] Replace all references of event as e[/-][+][code-infra] Replace all references of event as e[/+]AfaqShuaib09 commentedon Apr 29, 2024
Hey, Could someone this issue to me? I would love to make a PR on this issue
Thanks
Janpot commentedon Apr 30, 2024
@AfaqShuaib09 Go for it
Janpot commentedon Nov 12, 2026
Fixed in #43866. The
id-denylistrule forenow lives in the shared code-infra ESLint config.github-actions commentedon Nov 12, 2026
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.