Is there an option to and/or how do I suppress errors like the following?
175,14:['tracker'] is better written in dot notation.
Is there an option to and/or how do I suppress errors like the following?
175,14:['tracker'] is better written in dot notation.
In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W069.
This means you can tell JSHint to not issue this warning with the
/*jshint -W069 */
directive.You can even wrap several lines of code and then reenable the warning as the example below (with a note to future you why it was a good idea):
If it's a feature and not a bug, place this at the top of your file.
If it's a bug, you should refactor your code
Good post on the reasons here: https://stackoverflow.com/a/2001410/94668