Ignore camelcase variable in JSHint
JSHint obeys directives at a function level, so you can find the enclosing function and add a camelcase option to it. Here’s an example: /*jshint camelcase: true */ var not_camel_case = 1; // Warns function example() { /*jshint camelcase: false */ var not_camel_case = 2; // Does not warn }