How do I disable Ecmascript 6 warning warnings in Visual Studio Code RC5?

I know this is still a release candidate, so it's possible that this functionality doesn't exist yet, but there is an option in the default settings:

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

      

I tried rewriting this in user preferences by entering:

"javascript.validate.target": "ES6"

      

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

+3
visual-studio-code


source to share


2 answers


ES6 is not yet supported by the JavaScript Language Service in VSCode.



You can vote for it though!

+4


source to share


This is currently handled in jshint options , so you must set jshint.options.esversion

to 6

.



-1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics