astronvim/lsp/config/eslint.lua

7 lines
169 B
Lua
Raw Normal View History

2023-02-03 16:08:09 +01:00
return {
eslint = function(opts)
opts.root_dir = require("lspconfig.util").root_pattern("package.json", ".eslintrc.json", ".eslintrc.js")
return opts
end,
}