Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript code style in WebStorm shows unterminated statement warning

I'm using WebStorm 2016.1 on a NodeJS project and cannot seem to figure out some of the code styling issues that keep triggering warnings.

For instance, I get these gray blocks where I haven't terminated a line with a semi-colon, which I don't want to do because that goes against the eslint settings for the project. I add the ; and I get an eslint warning instead.

unterminated statement

What setting do I need to change to stop this?

like image 786
eComEvo Avatar asked Mar 31 '16 09:03

eComEvo


3 Answers

To fix this, change the following setting in Editor > Inspections of WebStorm:

Editor > Inspections]

like image 168
eComEvo Avatar answered Nov 16 '22 02:11

eComEvo


Try the following Steps:

Ctrl-Shift-A –> Unterminated Statement –> Off

like image 35
blefony Avatar answered Nov 16 '22 04:11

blefony


Also for other unwanted inspection problems press Alt+Enter on highlighted code. Context menu will be shown with suggested solutions, including disabling the inspection.

like image 32
PrashanD Avatar answered Nov 16 '22 03:11

PrashanD