Most of the code I work on actually does conform to the formatting and linting settings. Once in a while I'll work on something that doesn't and if I've already written some code, I find it's easier to stage part of the changes like this. Obviously do what works for you.