diff options
author | William Goulois <[email protected]> | 2021-07-17 15:46:31 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-17 09:46:31 -0400 |
commit | 75fab5cea10eba9cd5930841007638521d735c68 (patch) | |
tree | c8787ef21bf1a2b995da5bb835ea1f2d859e0654 /lua/lsp/ts-fmt-lint.lua | |
parent | f5991a9d1b480fcf38e5fe622a154f93ba53a731 (diff) |
fix: diagnostics level for eslint and $ missing (#1001)
Diffstat (limited to 'lua/lsp/ts-fmt-lint.lua')
-rw-r--r-- | lua/lsp/ts-fmt-lint.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/lsp/ts-fmt-lint.lua b/lua/lsp/ts-fmt-lint.lua index a73b817e..e77614ff 100644 --- a/lua/lsp/ts-fmt-lint.lua +++ b/lua/lsp/ts-fmt-lint.lua @@ -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, |