How can i use es6 based code analysis for html files by webstorm 10?

hello.

when I try es6 on html files, webstorm 10 shows to me es5 based error.

as you know, arrow function is equiped on chrome. 

how can i fix it?

2 comments
Comment actions Permalink

Hi there,

As far as I'm aware ES6 support in inline scripts (without type="text/babel", type="text/ecmascript-6" or type="module") is only implemented for upcoming 2016.2 version -- https://youtrack.jetbrains.com/issue/WEB-16444

For your v10 you have to use one of the aforementioned `type="xxx"` attributes or via custom attribute as described in this comment: https://youtrack.jetbrains.com/issue/WEB-16444#comment=27-1150207

You can try 2016.2 EAP build now: https://blog.jetbrains.com/webstorm/2016/06/webstorm-2016-2-eap-162-844/

1

Please sign in to leave a comment.