Skip to content

[code-infra] Replace all references of event as e #41968

Open
@Janpot

Description

@Janpot

For example

onKeyDown: (e: React.KeyboardEvent<HTMLAnchorElement>) => {

Also enforce this with an eslint rule. e.g. https://eslint.org/docs/latest/rules/id-length https://eslint.org/docs/latest/rules/id-denylist

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?
  • ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: code-infraSpecific to the core-infra product

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions