Using WebStorm.
I do not want to write semicolon ;
at the end, how to turn off the error ?
File > Settings > Editor > Inspections > JavaScript > Code Style Issues > uncheck 'Unterminated statement'.
You'll have to restart WebStorm.
You can also do this in 'Default Settings' so this applies to any future projects.