]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): update eslint compiler
authorRomain Lafourcade <romainlafourcade@gmail.com>
Sat, 30 Nov 2024 10:05:18 +0000 (11:05 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 30 Nov 2024 10:05:18 +0000 (11:05 +0100)
compact formatter is no longer distributed with eslint, so:

- switch to '--format stylish' in makeprg
- update 'errorformat' for the 'stylish' format output

fixes: #16126
closes: #16137

Signed-off-by: Romain Lafourcade <romainlafourcade@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/eslint.vim

index db7a665991e610b28312b2d289b909f28e77d803..0414817900554a5104c9ea8114391b61f3afafb9 100644 (file)
@@ -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%.%#,