2

Ive seen other questions regarding this issue - Is there a way to turn on ES6/ES7 syntax support in vscode? - but this has now been addressed by Microsoft and implemented in VSCode.

However, I have downloaded the latest version of VSCode, and cloned the example es6 repo from GitHub, and it seems to not be working

Community
  • 1
  • 1
Alexander Forbes-Reed
  • 2,823
  • 4
  • 27
  • 44

2 Answers2

2

To turn ES6/ES7 support, the best way is to use ESLint with dedicated parser ( babel, etc...). I try it if you're interested: VSCode Linter ES6 ES7 Babel linter.

Community
  • 1
  • 1
Damien Leroux
  • 11,177
  • 7
  • 43
  • 57
0

If you're using eslint with npm, you may need the .eslintrc file in the root folder of your project. See my answer to this question and the docs for the ESLint VSCode extension.

VanAlbert
  • 2,299
  • 1
  • 21
  • 17