How to disable WebStorm semicolon check?

node.jsEcmascript 6Webstorm

node.js Problem Overview


How to disable WebStorm semicolon check in Node.js?

I have tried the following method but they do not work:

  • Checked out the option use semicolon to terminate statement
  • Changed JavaScript version to ecma6

node.js Solutions


Solution 1 - node.js

  1. Settings/Preferences | Editor | Inspections
  2. JavaScript | Code style issues | Unterminated statement -- disable this inspection

You can also reach the same inspection by:

  1. Placing caret on problematic place in your Editor and bringing Quick Fix menu (Alt + Enter or by clicking on light bulb icon)
  2. Choosing right option in appeared menu (if not sure which one then try step #3 for few of them)
  3. Arrow Right (or click on small triangle on the right side) to open submenu
  4. Choose desired action

P.S. JSLinh/JSHint and alike may also produce such warnings if you are using these tools.


As for the actual code generated by IDE (e.g. when using Code | Reformat... or using code completion popup/functionality) -- such option is available at

  • Settings/Preferences | Editor | Code Style | JavaScript (similar path for TypeScript)
  • Punctuation tab

enter image description here

Solution 2 - node.js

In Preferences -> Editor -> Code Style -> JavaScript, click the Punctuation tab on the right hand side pane.

Set

Don't use semicolon to terminate statements always

This would allow you to check for unterminated statements while not flagging up the missing semicolons.

https://i.stack.imgur.com/GiwuV.png">

Solution 3 - node.js

Cmd(Ctrl) + Shift + A → Unterminated statement → OFF

enter image description here

Solution 4 - node.js

Using Webstorm->Preferences->Editor->Code Style->JavaScript Use semicolon to terminate spaces works fine for me. Maybe double check what Code Style scheme you are setting that for. Sometimes I have changed code style settings, but for a different scheme than the one being applied to the project in question.

enter image description here

Solution 5 - node.js

In Webstorm 2017 its here, you just need to change "use" to "don't use" instead.

Webstorm 2017

Solution 6 - node.js

We were also straggling with it all the time. To make our life easier we even commit idea styling file. To make it work for every team member.

Open setting/preferences => search by rule text => disable it.

Once you disabled this or any other rule. To stop it appear again you can add to .gitignore:

### Commit specific idea files
.idea/*
!.idea/inspectionProfiles
.idea/inspectionProfiles/*
!.idea/inspectionProfiles/Project_Default.xml

I didn't find any better way to configure it. So...

Solution 7 - node.js

JSHint

check suprress warnings about missing semicolons at

settings -> Language & Frameworks -> JavaScript -> Code Quality Tools -> JSHint => Relaxing options

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHavenView Question on Stackoverflow
Solution 1 - node.jsLazyOneView Answer on Stackoverflow
Solution 2 - node.jsAaron ZorelView Answer on Stackoverflow
Solution 3 - node.jsAiron TarkView Answer on Stackoverflow
Solution 4 - node.jsPhilip O'BrienView Answer on Stackoverflow
Solution 5 - node.jsIvor ScottView Answer on Stackoverflow
Solution 6 - node.jsVladislav ZaynchkovskyView Answer on Stackoverflow
Solution 7 - node.jsArash YounesiView Answer on Stackoverflow