Primary source of code best practices. Useful for PRs and disputes.
Setup your editor to remove trailing white space on save (or command if you preffer), eg. with vscode. Additionally setup your editor to use trailing new lines at the end of files (it just looks nice and it is easier when adding new stuff to the bottom of files).