@schnittchen counterpoint: your repository should have a defined style and only accept commits that comply with that style. That way, format-on-save becomes really useful
@schnittchen nah, you can just format everything in one big commit. It shouldn't even fuck up your history too much
@noiob if you're only one or two ppl on the team and it's a very small codebase
@noiob that requires all existing code to be already in shape, which in my years of experience is extremely rately the case.
Once all linting is done at some point, the problem becomes trivial: all it needs is some check that prevents unlinted code to be committed or integrated, which could be done via CI or git hook.