Skip to content

Commit aa23680

Browse files
committed
Fix ESLint VSCode configuration
The working directory of ESLint was not set directly, so ESLint warnings did not show up in VSCode. This sets the working directory properly such that ESLint warnings are shown in VSCode. See: https://github.com/Microsoft/vscode-eslint#settings-options
1 parent 8c0fee5 commit aa23680

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
"typescript",
3131
"typescriptreact"
3232
],
33-
"eslint.options": {
34-
// This is necessary so that eslint can properly resolve its plugins
35-
"resolvePluginsRelativeTo": "./extensions/ql-vscode"
36-
},
33+
// This is necessary to ensure that ESLint can find the correct configuration files and plugins.
34+
"eslint.workingDirectories": ["./extensions/ql-vscode"],
3735
"editor.formatOnSave": false,
3836
"typescript.preferences.quoteStyle": "single",
3937
"javascript.preferences.quoteStyle": "single",

0 commit comments

Comments
 (0)