Just stumbled upon https://editorconfig.org/ searching for ways to support different people in a project with basic formatting rules. Looks like it's spot on. (I haven't dived in yet)
I'm a bit surprised I can't recall seeing this before. Is it me, or is this just not used much?