JSHint: Turn off missing semicolon warning

Christian Ayscue picture Christian Ayscue · Aug 6, 2015 · Viewed 8.2k times · Source

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

Answer

Abaxial picture Abaxial · Aug 6, 2015

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.