9

I'm working on a web project, using react with es6 for the client side and asp.net for the server side and I want to be able to work on visual studio 2015 update 2 which supports es6 and jsx.

My problem is that visual studio always gives syntax error when I'm writing es6 and jsx:

enter image description here

I searched all over google and all I found is 2 solutions which can be found here: Visual Studio 2015 JSX/ES2015 syntax highlighting

I tried both of the solution, and they did help but I still have syntax errors, as showed in the first picture.

The only option to completely solve my problem is to tell vs to ignore syntax errors in js and jsx files :

enter image description here

But I still want a better solution that shows me relevant syntax errors.

Community
  • 1
  • 1
Golan Kiviti
  • 3,895
  • 7
  • 38
  • 63

0 Answers0