Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea Ecmascript Harmony modules syntax

Im using Intellij Idea for some ES Harmony app. With modules syntax I want my IDE to do not highlight this as errors:

import $ from "jquery";

I have turned ES Harmony support in project settings, but it does not help.

Thanks!

like image 369
Sergey Kamardin Avatar asked Feb 06 '14 16:02

Sergey Kamardin


2 Answers

In case somebody here is still experiencing Issues with ECMAScript 6, you have to enable it in IntelliJ.

enter image description here

and after activating ecmascript, set it as JavaScript Language Version:

enter image description here

like image 98
Daniel Bo Avatar answered Sep 18 '22 08:09

Daniel Bo


Try an EAP version, it technically has support but it is not currently working for me.

like image 33
Indolering Avatar answered Sep 19 '22 08:09

Indolering