summaryrefslogtreecommitdiffstats
path: root/compiler/eslint.vim
blob: 95e39535692c3784bf5622eadf8e3e44aea3b4e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
  
if exists("current_compiler")
  finish
endif
let current_compiler = "eslint"

if exists(":CompilerSet") != 2
  command! -nargs=* CompilerSet setlocal <args>
endif

CompilerSet makeprg=eslint\ -f\ compact\ %
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m

endif