From 8131cf46f844adeb006a9075200f70062ec382e9 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sun, 28 Nov 2021 17:07:04 -0500 Subject: fix(eslint): default to location mode for workingDirectory (#1506) * location mode uses the workspace folder location or the file location (if no workspace folder is open) as the working directory --- lua/lspconfig/server_configurations/eslint.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/eslint.lua b/lua/lspconfig/server_configurations/eslint.lua index 71a6b38d..06658f30 100644 --- a/lua/lspconfig/server_configurations/eslint.lua +++ b/lua/lspconfig/server_configurations/eslint.lua @@ -81,10 +81,8 @@ return { -- nodePath configures the directory in which the eslint server should start its node_modules resolution. -- This path is relative to the workspace folder (root dir) of the server instance. nodePath = '', - -- Automatically determine working directory by locating .eslintrc config files. - -- - -- It's recommended not to change this. - workingDirectory = { mode = 'auto' }, + -- use the workspace folder location or the file location (if no workspace folder is open) as the working directory + workingDirectory = { mode = 'location' }, codeAction = { disableRuleComment = { enable = true, -- cgit v1.2.3-70-g09d2