Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JsHint error with analytics

I am getting a bunch of errors on JsHint regarding my Google Analytics snippet.

How can I isolate this code so that JsHint ignores it? I guess this should be ignored by JsHint.

like image 297
gespinha Avatar asked Jun 01 '26 18:06

gespinha


1 Answers

From the documentation:

// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be linted with ignored by JSHint.
/* jshint ignore:end */
like image 188
musically_ut Avatar answered Jun 03 '26 06:06

musically_ut