Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
858 stars 2.83k forks source link

fix: Implement prettier #7702

Closed Koenkk closed 6 days ago

Koenkk commented 1 week ago

CC: @Nerivec

Nerivec commented 1 week ago

Well now, that's some cleanup job!

Probably should also enforce providing a reason for @ts-expect-error (ensure it's warranted). Seems there are a lot of obj.hasOwnProperty('var') in here too, might want to change that to obj.var != undefined where appropriate (likely most of them). Might want separate PRs though, to commit this faster to avoid too many conflicting PRs being opened in the meantime.