fix(nvim): fixes eslint commant for EFM LS and start it for typescript

and glimmer files
This commit is contained in:
Bruno Carlin 2025-02-11 15:23:05 +01:00
parent 714007013b
commit f4ee62d918

View file

@ -1,7 +1,8 @@
local eslint = {
lintCommand = 'eslint -f visualstudio --stdin --stdin-filename ${INPUT}',
lintCommand = 'npx eslint -f visualstudio --cache --stdin --stdin-filename ${INPUT}',
lintIgnoreExitCode = true,
lintStdin = true,
rootMarkers = { "package.json" },
lintFormats = {
"%f(%l,%c): %tarning %m",
"%f(%l,%c): %trror %m",
@ -54,12 +55,16 @@ local hadolint = {
require('lspconfig').efm.setup {
cmd = {'efm-langserver'},
filetypes = {
"bash",
"css",
"dockerfile",
"fish",
"javascript",
"typescript",
"javascript.glimmer",
"typescript.glimmer",
"markdown",
"scss",
"sh",
@ -73,6 +78,9 @@ require('lspconfig').efm.setup {
dockerfile = { hadolint },
fish = { fish },
javascript = { eslint },
typescript = { eslint },
["javascript.glimmer"] = { eslint },
["typescript.glimmer"] = { eslint },
markdown = { mdlint },
scss = { stylelint },
sh = { shellcheck },