JSHint is a community-driven tool that checks for errors and potential problems in JavaScript code.
Inline Directives
/* jshint esversion: 6, browser: true */
/* global $, jQuery */
// Disable checking for an entire file or block
/* jshint -W098 */ // Disable warning for unused variable
// Ignore a block of code
/* jshint ignore:start */
const invalidCode = 123;
/* jshint ignore:end */
.jshintrc Configuration
{
"esversion": 8,
"browser": true,
"node": true,
"curly": true,
"eqeqeq": true,
"undef": true,
"unused": true,
"globals": {
"jQuery": false,
"describe": false,
"it": false
}
}