derekprior / homebridge-schluter-thermostat

A homebridge plugin to control Schluter thermostats
MIT License
9 stars 2 forks source link

Add prettier to format code #20

Closed derekprior closed 1 month ago

derekprior commented 1 month ago

I'm happy to yield to prettier's opinions on formatting. To do so, I adjusted the conflicting rules that existed in the eslint config by removing them.

I also added a GitHub workflow to check the formatting of pull requests. In my ideal world, we'd automatically commit the formatted code, but I can't trust that all users who submit PRs will give maintainers the ability to push to their branches.

Maybe someday we can format automatically where possible but then fall back to commenting where we don't have the necessary permissions. Or maybe this is good enough.

I have also formatted all existing files as part of this change.