Is there a way to turn on ES6/ES7 syntax support in vscode?

It’s quite easy, at the root of your project create a jsconfig.json file and write this object in it:

{
    "compilerOptions": {
        "target": "ES6",
        "module": "commonjs"
    }
}

Leave a Comment