43081j / eslint-plugin-lit

lit-html support for ESLint
120 stars 22 forks source link

rule: require-listener-teardown #81

Closed 43081j closed 3 years ago

43081j commented 3 years ago

This requires that listeners added in connectedCallback are removed in disconnectedCallback.

Some shortcomings where we should improve in future:

stramel commented 3 years ago

Wouldn't this be a better fit in the WC plugin?

43081j commented 3 years ago

You sir have an excellent point! 😂

I will work on moving it over 👍

43081j commented 3 years ago

Closing this, replaced by 43081j/eslint-plugin-wc#50