Suppose I'm working with the javascript below:
var mapOptions = {
zoom: 6
};
new google.maps.Map('#map', mapOption);
I've mistakenly passed mapOption instead of mapOptions. Is there a javascript linter that will pick up on this mistake? Either warning me that mapOption is undefined or that mapOptions is unused?
I would love to have this functionality with jshint and vim, but I'm not sure how to set it up.