check gruntfile.js syntax

Hii
is there a way to configure phpstorm to check in real time when writing the gruntfile.js syntax .
I ve got the error syntax in cli runtime ( C>grunt ) but not when edit gruntfile.js in phpstorm .
if gruntfile.js is a javascript file why phpstorm by default don't alert us during writing of syntax error ?

i see a light appear sometimes that alert us about error ....but seem some error syntax is not discover !!!

regard's

2 comments

Hello!

WebStorm treats Gruntfile.js in the same way as other javascript files, i.e. the syntax/error highlighting is enabled for it. But it just performs the static analysis, runtime errors can't be detected until the file is actually executed
What syntax errors were not discovered for you?

0

i dont have information  but i think it was about misleading { } and ;

regard's

0

Please sign in to leave a comment.