JSHint: Turn off missing semicolon warning
Asked Answered
S

2

21

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

Sidonnie answered 5/8, 2015 at 22:0 Comment(0)
S
36

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.

Sherl answered 5/8, 2015 at 22:8 Comment(2)
Thanks @shennan! Updated.Sherl
Add it where? I tried adding this in SublimeLinter settings, in SublimeLiner-settings-User and also in the "jshin" portion of the latter... all to no avail.Eldwen
U
6

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

/*jshint -W033 */

Ullman answered 1/9, 2019 at 22:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.