mirror of
https://github.com/vim/vim
synced 2025-03-15 22:37:52 +01:00
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>
12 lines
385 B
VimL
12 lines
385 B
VimL
" Vim compiler file
|
|
" Compiler: ESLint for JavaScript
|
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
|
" Last Change: 2024 Nov 30
|
|
|
|
if exists("current_compiler")
|
|
finish
|
|
endif
|
|
let current_compiler = "eslint"
|
|
|
|
CompilerSet makeprg=npx\ eslint\ --format\ stylish
|
|
CompilerSet errorformat=%-P%f,\%\\s%#%l:%c\ %#\ %trror\ \ %m,\%\\s%#%l:%c\ %#\ %tarning\ \ %m,\%-Q,\%-G%.%#,
|