@shauna Far as I understand, the purposes overlap but neither is a subset of the other: a linter might identify problems that cannot be resolved automatically, but doesn't fix anything). So a linter has a bigger detection scope but no fixing capability, and a formatter has a fixing capability but a smaller detection scope.
And then some tools are (or can be) both, and then on top of *that* the terms are used semi-interchangeably depending on what a tool looks like it's made for aesthetically.
(Edited and reposted because my original description really wasn't very clear at all either)
@shauna That's my understanding, yep. Or alternatively use a tool that can do both in one pass - ESLint would be one example of that, although I'm not sure how far its auto-formatting capabilities reach so it *may* not be the best example.
(Assuming that enforcing consistent formatting is desirable for the project in the first place, of course - as that's often a topic of discussion)