Thanks, great answer, that’s probably what I need if I can figure how to make it format on save with some customized settings
I’ve configured my Preferences: LSP-typescript Settings like this:
// Settings in here override those in "LSP-typescript/LSP-typescript.sublime-settings"
{
  "settings": {
    "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
    "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
    "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
  }
}
but this code
const f2 = function() {
}
gets formatted like that, there should a space between function and () instead
Would you happen to have an idea on this? (I asked it here btw https://github.com/sublimelsp/LSP-typescript/issues/82)
edit: What I meant by closing and opening ST to make it work, is that if a file is already opened in ST at loading time, formatting works, if a file is opened then saved, formatting doesn’t work with the customization (space after anonymius function)