mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
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
dd21c89626
Co-authored-by: Romain Lafourcade <romainlafourcade@gmail.com>
This commit is contained in:
parent
2833925cfc
commit
fd865fbd92
@ -1,13 +1,12 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: ESLint for JavaScript
|
" Compiler: ESLint for JavaScript
|
||||||
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
" Last Change: 2020 August 20
|
" Last Change: 2024 Nov 30
|
||||||
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let current_compiler = "eslint"
|
let current_compiler = "eslint"
|
||||||
|
|
||||||
CompilerSet makeprg=npx\ eslint\ --format\ compact
|
CompilerSet makeprg=npx\ eslint\ --format\ stylish
|
||||||
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
|
CompilerSet errorformat=%-P%f,\%\\s%#%l:%c\ %#\ %trror\ \ %m,\%\\s%#%l:%c\ %#\ %tarning\ \ %m,\%-Q,\%-G%.%#,
|
||||||
|
Loading…
Reference in New Issue
Block a user