Commit: runtime(compiler): update eslint compiler

4 views
Skip to first unread message

Christian Brabandt

unread,
Nov 30, 2024, 5:15:17 AM11/30/24
to vim...@googlegroups.com
runtime(compiler): update eslint compiler

Commit: https://github.com/vim/vim/commit/dd21c8962680ba726ac1bf78ae106a4b6071450f
Author: Romain Lafourcade <romainla...@gmail.com>
Date: Sat Nov 30 11:05:18 2024 +0100

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: #16126
closes: #16137

Signed-off-by: Romain Lafourcade <romainla...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/compiler/eslint.vim b/runtime/compiler/eslint.vim
index db7a66599..041481790 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 <romainla...@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%.%#,
Reply all
Reply to author
Forward
0 new messages