Using Google Closure Compiler I get this error:
JSC_TRAILING_COMMA: Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option. at line 7 character 9
},
for the following code:
App.prototype = {
testA: function () {
},
testB: function () {
},
};
I would like to know if jshint has some build-in option to detect tailing commas and show a warning message.