Alex
Alex

Reputation: 7583

How to disable Ecmascript 6 linting warnings in Visual Studio Code RC5?

I know that this is still a release candidate so it's possible that this functionality doesn't yet exist, but there is a setting for it in the Default Settings:

// Specifies which version of ECMA-Script is used.
"javascript.validate.target": "ES5"

I tried overwriting this in the User Settings by entering:

"javascript.validate.target": "ES6"

but this didn't work. Has anyone had any success with this?

Upvotes: 3

Views: 2543

Answers (2)

Ronny
Ronny

Reputation: 4537

Nowadays this is handled in jshint options, so you should set jshint.options.esversion to 6.

Upvotes: 0

Alex Dima
Alex Dima

Reputation: 23009

ES6 is not yet supported by the JavaScript language service in VSCode.

You can vote for it, though!

Upvotes: 4

Related Questions