If that's really an issue just reformat the whole code base once and be done with it.
For example
git blame a1b2c4 -- foo.js
Where a1b2c4 is the commit hash. Could even tag the commit to make it more convenient: git tag beforeRefmt a1b2c4
git blame beforeRefmt —- foo.js
and push the tag up for everyone to have access to it git push —-tags