Enabling jshint es6 support in VS Code

I was recently working on a Node project and when I copy and pasted code from the Node Docs I would get squiggles.

image

Unfortunately, reading the tool tip was little help.

image

I had no idea where I was supposed to place these values to correct this issue.  After some searching I discovered I needed adjust my workspace settings.

  1. Select File / Preferences / Workspace Settings
    image
  2. Paste the following code in the settings.json file
    "jshint.options": {"esversion": 6},
  3. Save the settings.json file
    image

Comments (1) -

Add comment

Loading