...
To start, see the matrix here as it provides links to linting documentation for each editor: Editors/IDEs
vim
Install https://github.com/vim-syntastic/syntastic follow README instructions, then add this to your .vimrc:
Code Block |
---|
let g:syntastic_javascript_checkers=['eslint'] |
Also, install: https://github.com/mtscout6/syntastic-local-eslint.vim so that it lints based on each individual project's configuration.
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 run the included script: https://github.com/efischer19/personal_vimSee Vim Linting
Sublime
Install SublimeLinter and SublimeLinter-eslint via package control.
...