43081j / 43081j/eslint-plugin-wc

Optional stylistic rule for requiring a static name

Aperta
#54 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
help wanted new lint rule
Lingua principale
TypeScript
Stelle
113
Fork
19
Merge medio
3h 14m
PR unite (30g)
2

Descrizione

I have seen quite a bit recently a pattern of a static getter or property for the component name. We could fairly easily add an opt-in rule for this.

Something like `require-static-name` with a default config `{ propertyName: 'is' }` that could be changed to something like `{ propertyName: 'tag' }` instead?

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.