diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-30 11:12:38 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-30 11:39:36 +0100 |
commit | fd865fbd9229ddd4856d8913b0e452deb0bba872 (patch) | |
tree | b022a9275fa50860927321d16d422993c63b013c | |
parent | 2833925cfc688786759d6a980a1ad62b62d20570 (diff) | |
download | rneovim-fd865fbd9229ddd4856d8913b0e452deb0bba872.tar.gz rneovim-fd865fbd9229ddd4856d8913b0e452deb0bba872.tar.bz2 rneovim-fd865fbd9229ddd4856d8913b0e452deb0bba872.zip |
vim-patch:dd21c89: runtime(compiler): update eslint compiler
compact formatter is no longer distributed with eslint, so:
- switch to '--format stylish' in makeprg
- update 'errorformat' for the 'stylish' format output
fixes: vim/vim#16126
closes: vim/vim#16137
https://github.com/vim/vim/commit/dd21c8962680ba726ac1bf78ae106a4b6071450f
Co-authored-by: Romain Lafourcade <romainlafourcade@gmail.com>
-rw-r--r-- | runtime/compiler/eslint.vim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/compiler/eslint.vim b/runtime/compiler/eslint.vim index db7a665991..0414817900 100644 --- a/runtime/compiler/eslint.vim +++ b/runtime/compiler/eslint.vim @@ -1,13 +1,12 @@ " Vim compiler file " Compiler: ESLint for JavaScript " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com> -" Last Change: 2020 August 20 -" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) +" Last Change: 2024 Nov 30 if exists("current_compiler") finish endif let current_compiler = "eslint" -CompilerSet makeprg=npx\ eslint\ --format\ compact -CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%# +CompilerSet makeprg=npx\ eslint\ --format\ stylish +CompilerSet errorformat=%-P%f,\%\\s%#%l:%c\ %#\ %trror\ \ %m,\%\\s%#%l:%c\ %#\ %tarning\ \ %m,\%-Q,\%-G%.%#, |