Both @GitLuckier and @Tammo0987 have suggested that it would be a good idea to have a formatter, and I agree.
I thought eslint could be used for formatting as well, and it used to do so, but apparently no longer.
My proposal is:
- Setting up prettier as a formatter, sticking to defaults as much as possible
- Formatting the code according to this (put this in a separate commit)
- Setting up a pre-commit hook to format the code
- Extending the lint CI to also check that the formatting is okay.
- Do this for both waterproof-vscode and waterproof-editor
Both @GitLuckier and @Tammo0987 have suggested that it would be a good idea to have a formatter, and I agree.
I thought eslint could be used for formatting as well, and it used to do so, but apparently no longer.
My proposal is: