runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
314 stars 35 forks source link

Update `no-nullable-attribute-binding` rule for null attribute #317

Closed xiaohk closed 6 months ago

xiaohk commented 11 months ago

It seems ifDefined now supports both undefined and null (https://github.com/lit/lit/issues/1927)

This rule should be updated.

https://github.com/runem/lit-analyzer/blob/9659154904fd2010de3749fc5e904e8c3dfe684b/packages/lit-analyzer/src/lib/rules/no-nullable-attribute-binding.ts#L26-L41