Some of the code I am working on dictates the the syntax of various variables and since I want to have JSHint check for camel case in the rest of the file, I'm ignoring it for a single line as follows:
grant_type: 'password' // jshint ignore:line
However, using this approach which came from another StackOverflow question fails both in IntelliJ IDEA (13.1.1) and when performing a grunt jshint
with errors similar to the following:
[L128:C0] W106: Identifier 'grant_type' is not in camel case.
? grant_type: 'password' // jshint ignore:line
[L128:C45] E001: Bad option: 'ignore'.
grant_type: 'password' // jshint ignore:line
What should be done to correct this issue in both of the environments?