43081j / 43081j/eslint-plugin-lit

Fix `no-template-arrow` false positives

Aperta
#189 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
138
Fork
26
Merge medio
23h 29m
PR unite (30g)
4

Descrizione

These are currently marked as invalid:
- `@click=${() => this.#onRetry(file)}`
- `@click=${async () => await this.#onDelete(file)}`

I believe they are false positives since the arguments to the method do not match the arguments of the arrow function.

The rule should only be applicable when the arguments to the arrow function *match* the arguments of the called function.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.