...
You can also use https://github.com/sbdchd/neoformat to run an auto-formatter like prettier or prettier-eslint.
If you're feeling extra lazy, just clone my vim setup and runt he included script: https://github.com/efischer19/personal_vim
Sublime
Install SublimeLinter and SublimeLinter-eslint via package control.
...