cannot read property 'verbose' of undefined
Closed this issue · 0 comments
sanderhouttekier commented
tried this out with the following setup:
gruntfile:
// ...
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: 'node_modules/jshint-stylish/stylish.js'
},
all: ['gruntfile.js', 'public/js/**/*.js', 'test/**/*.js', 'app/**/*.js']
},
// ...
package.json:
// ...
"devDependencies": {
// ...
"grunt-contrib-jshint": "latest",
"jshint-stylish": "~0.1.0"
}
// ...
either i'm doing something wrong causing options
to be undefined, or you shouldn't assume it exists and default it to an empty object?
Hope this helps.
Sander