43081j / 43081j/eslint-plugin-lit

Type export change after 2.x.x update causes different import behavior

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

Descrizione

Hi!
First of all, thank you for your work on such an amazing plugin.

After updating the package from **1.14.0** to a **2.x.x** version, I noticed that the type definitions in the library have changed slightly, which now requires importing the package differently.

Image

Image

This happens because the current `export default` is just `ESLint.Plugin`, where configs is simply an indexed record. This differs from how other ESLint plugins usually handle their exports.

Image

Image

What do you think – would it be possible to restore the previous behavior?

P.S. The same issue occurs with `eslint-plugin-wc`, since (as far as I know) you’re the author of both 🙂

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.