Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSHint: Turn off missing semicolon warning

How do I turn off missing semicolon warnings with JSHint in Sublime. I have tried multiple things on the internet to no avail.

like image 386
Christian Ayscue Avatar asked Aug 05 '15 22:08

Christian Ayscue


2 Answers

asi is an option within the sublime linter that will suppress the semicolon warnings when set to true.

See JSHint Info

For additional information.

Ultimately, you'll want to create a .jshintrc file in your app root folder and add the following code inside:

{
   "asi": true,
}

Set the file type as json, save it and restart your ide.

like image 119
Abaxial Avatar answered Oct 08 '22 03:10

Abaxial


By inserting the following line at the beginning of your .js Javascript file should work:

/*jshint -W033 */

like image 35
tofu head Avatar answered Oct 08 '22 04:10

tofu head