diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index c6c42d60..e247d078 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -3,6 +3,8 @@ " Maintainer: vim-javascript community " URL: https://github.com/pangloss/vim-javascript +compiler eslint + setlocal iskeyword+=$ suffixesadd+=.js if exists('b:undo_ftplugin') diff --git a/compiler/eslint.vim b/compiler/eslint.vim index 7695a072..0724bbaf 100644 --- a/compiler/eslint.vim +++ b/compiler/eslint.vim @@ -12,5 +12,5 @@ if exists(":CompilerSet") != 2 command! -nargs=* CompilerSet setlocal endif -CompilerSet makeprg=eslint\ -f\ compact\ % -CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m +CompilerSet makeprg=npx\ -q\ eslint\ -f\ unix +CompilerSet errorformat&