After installing Deno, linting issues arise in VSCode Nodejs project

Viewed 897

Linting Errors

I have installed Deno recently, I am aware of all the default settings have been changed to TypeScript. Although, whenever I am working on a plain javascript nodejs project, the javascript lint is not working properly ever since.

The IntelliSense is also not working for sure. I have Nodejs version 12 installed.

enter image description here

2 Answers

install 'denoland' extension and add this config.

on the root of your project: create a hidden folder and inside settings.json :

.vscode/settings.json

{
    "deno.enable": true,
    "[typescript]": {
        "editor.defaultFormatter": "denoland.vscode-deno"
    },
    "[typescriptreact]": {
        "editor.defaultFormatter": "denoland.vscode-deno"
    }
}

enter image description here

You just need to disable deno extension in your VSCode when working with Node.js projects. After disabling try to close VSCode and open it again.

Related