2021-04-27 22:55:06 -07:00
|
|
|
" Vim compiler file
|
|
|
|
" Compiler: ESLint for JavaScript
|
|
|
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
2021-04-29 18:13:43 -07:00
|
|
|
" Last Change: 2020 August 20
|
2021-04-27 22:55:06 -07:00
|
|
|
|
|
|
|
if exists("current_compiler")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let current_compiler = "eslint"
|
|
|
|
|
|
|
|
if exists(":CompilerSet") != 2
|
|
|
|
command -nargs=* CompilerSet setlocal <args>
|
|
|
|
endif
|
|
|
|
|
2021-04-29 18:13:43 -07:00
|
|
|
CompilerSet makeprg=npx\ eslint\ --format\ compact
|
2021-04-27 22:55:06 -07:00
|
|
|
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
|