mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix: diagnostics level for eslint and $ missing (#1001)
This commit is contained in:
parent
f5991a9d1b
commit
75fab5cea1
1 changed files with 6 additions and 2 deletions
|
@ -7,9 +7,13 @@ M.setup = function()
|
|||
|
||||
if O.lang.tsserver.linter == "eslint" or O.lang.tsserver.linter == "eslint_d" then
|
||||
local eslint = {
|
||||
lintCommand = O.lang.tsserver.linter .. " -f unix --stdin --stdin-filename {INPUT}",
|
||||
lintCommand = O.lang.tsserver.linter .. " -f visualstudio --stdin --stdin-filename ${INPUT}",
|
||||
lintStdin = true,
|
||||
lintFormats = { "%f:%l:%c: %m" },
|
||||
lintFormats = {
|
||||
"%f(%l,%c): %tarning %m",
|
||||
"%f(%l,%c): %rror %m",
|
||||
},
|
||||
lintSource = O.lang.tsserver.linter,
|
||||
lintIgnoreExitCode = true,
|
||||
formatCommand = O.lang.tsserver.linter .. " --fix-to-stdout --stdin --stdin-filename=${INPUT}",
|
||||
formatStdin = true,
|
||||
|
|
Loading…
Reference in a new issue