43081j / eslint-plugin-lit

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

feat: improve LitElement identification #206

Closed jpradelle closed 2 weeks ago

jpradelle commented 1 month ago

Improve algorithm to identify whether a class is a LitElement or not.

This should help with issue #148

43081j commented 3 weeks ago

sorry it took so long to get to this. i've been away for the past month mostly

i think the idea is good, we just need to shuffle some code around

jpradelle commented 2 weeks ago

I pushed a fix, it's cleaner like that :) There was in fact no need of checking parent node element.