I am building a JSHint set for a JavaScript suite that I am writing. My habit with writing objects is as follows:
var obj = {
hello: 'World'
,foo: 'Bar'
,name: 'Dave'
};
I use Grunt and grunt-contrib-jshint to run the validations with the following options:
- browser: true
- eqeqeq: false
- laxcomma: true
- white: true
- indent: 2
When I run grunt jshint
I get errors that a space is expected after the commas. How do I ignore this space?