I don't do JS/TS, but I have no idea why all this hasn't converged on editorconfig rules.
I write C# and do "linting" via editorconfig + ReSharper file layout formatting at dev time and via precommit hook with their CLI tool
I'm surely missing something crucial in that ecosystem that editorconfig can't handle...