{"id":1032,"date":"2022-08-30T15:11:15","date_gmt":"2022-08-30T15:11:15","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/why-is-js-lint-is-reporting-an-error-in-the-jquery-library-duplicate-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:11:15","modified_gmt":"2022-08-30T15:11:15","slug":"why-is-js-lint-is-reporting-an-error-in-the-jquery-library-duplicate-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/why-is-js-lint-is-reporting-an-error-in-the-jquery-library-duplicate-collection-of-common-programming-errors\/","title":{"rendered":"Why is JS Lint is reporting an error in the JQuery library? [duplicate]-Collection of common programming errors"},"content":{"rendered":"<p>Linter like jsHint and jsLint are help tools. They help teams coding in standard way, but they aren&#8217;t really checking your script for actual error. For this kind of feedback, you&#8217;d be looking more at esprima.js kind of tools.<\/p>\n<p>This mean that you don&#8217;t have to buy in any defaults linter come with. In fact, these tools are easily configurable to work best with you and your team workflow (jsHint option page).<\/p>\n<p>For jQuery, you can find their jsHint settings right here on their github project: https:\/\/github.com\/jquery\/jquery\/blob\/master\/.jshintrc<\/p>\n<p>If you set your option as those, you shouldn&#8217;t have any error showing up. That&#8217;s why most editor let you setup a linter configuration for each project, so you can easily follow guidelines of each ones.<\/p>\n<p>So remember, linter are only a tools to help you out, not any form of Truth with a big T.<\/p>\n<p>Hope this help!<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:16:34. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Linter like jsHint and jsLint are help tools. They help teams coding in standard way, but they aren&#8217;t really checking your script for actual error. For this kind of feedback, you&#8217;d be looking more at esprima.js kind of tools. This mean that you don&#8217;t have to buy in any defaults linter come with. In fact, [&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-1032","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1032","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=1032"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1032\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}