Reputation: 13
I am editing an HTML page in WebStorm. For some reason it's treating regular text like a JavaScript statement and throwing errors on code check 'Expecting newline or semicolon'. If the text is within an anchor tag it does not give an error.
Is this a bug? My JavaScript version is set to ES6.
HTML text showing an error:
WebStorm code check error:
Upvotes: 0
Views: 3819
Reputation: 165088
Settings/Preferences | Editor | Language Injections
You somehow (accidentally) created such wrong injection rule and now every <li>
tag is treated as AngularJS hence the warnings.
Upvotes: 2