fix: diagnostics level for eslint and $ missing (#1001)

This commit is contained in:
William Goulois 2021-07-17 15:46:31 +02:00 committed by GitHub
parent f5991a9d1b
commit 75fab5cea1
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,