Updates. By Jeff Kreeftmeijer

Retroactively run a formatter on past commits by using the--exec option during an interactive rebase:

git rebase -i --exec 'mix format’ main
git rebase -i --exec 'prettier --write {**/*,*}.js’ main
git rebase -i --exec 'rubocop -a’ main

https://jeffkreeftmeijer.com/git-rebase-exec/