eslint.vim 429 B

1234567891011121314151617
  1. " Vim compiler file
  2. " Compiler: ESLint for JavaScript
  3. " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
  4. " Last Change: 2020 August 20
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "eslint"
  9. if exists(":CompilerSet") != 2
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. CompilerSet makeprg=npx\ eslint\ --format\ compact
  13. CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#