How to disable deno linter for whole project directory?
I'm using deno with mixed project folders, some use Vue and shouldn't be linted by deno. How do i disable it for the project folder?
23 Replies
In
.vscode/settings.json
you can set "deno.lint": false
I believe.I tried that, it did nothing
Now I set
deno.lint
to false. When I press save in the settings.json
I can see some editors flashing so it's obviously reloading stuff:And I no longer have the deno lint warning.
ie. It does seem to do something. Maybe try forcing the Deno LSP to restart using the
Deno: Restart Language Server
command.I added it in
.vscode/settings.json
Restarting deno lang server or vscode didn't help
Also upgraded vscode
Also reloaded window as someone suggestedThat's not Deno's linting but the importing (ie. not a "don't do this, this may be bad code" but Deno itself saying "this will not work, it will throw an error in runtime"). Presumably you have the Deno language extension enabled globally, but in this case you only want to apply it selectively. Try adding the
"deno.enablePaths": [...]
setting to control where you use the Deno LSP and where normal TypeScript LSP should be used.eg. I just used
enablePaths
to set only "lib"
to be used by Deno. Now in my test/some.test.ts
file I have this error:It got disabled if i opened only that specific project folder
but not in a workspace with multiple projects
@frigjord And the reason why I say
Presumably you have the Deno language extension enabled globallyis due to
"deno.enable": true
not being in that settings.json.
Ah, then you might have it defined in the workspace settings.I disabled it globally, but still shows