{"id":783,"date":"2022-08-30T15:07:06","date_gmt":"2022-08-30T15:07:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/does-anyone-knows-another-way-to-tell-jslint-jshint-what-global-variables-are-already-defined-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:06","modified_gmt":"2022-08-30T15:07:06","slug":"does-anyone-knows-another-way-to-tell-jslint-jshint-what-global-variables-are-already-defined-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/does-anyone-knows-another-way-to-tell-jslint-jshint-what-global-variables-are-already-defined-collection-of-common-programming-errors\/","title":{"rendered":"Does anyone knows another way to tell JSLint \/ JSHint what global variables are already defined-Collection of common programming errors"},"content":{"rendered":"<p>JSLint has a textarea below the options that says <code>predefine global variables here<\/code> in it. Just add the variable names in there before running the check.<\/p>\n<p>JSHint doesn&#8217;t allow you to add global variables, but you can uncheck the <code>When variable is undefined<\/code> option to suppress that warning.<\/p>\n<p>The JSHint library also has parameters for globals, if you run it as a library . . . details in here: http:\/\/jshint.com\/docs\/<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:44:03. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>JSLint has a textarea below the options that says predefine global variables here in it. Just add the variable names in there before running the check. JSHint doesn&#8217;t allow you to add global variables, but you can uncheck the When variable is undefined option to suppress that warning. The JSHint library also has parameters for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-783","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/783\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}