Closed OliverJAsh closed 11 years ago
Yup. Whichever is preferred!
On 24 Jan 2013, at 10:30, Jack Franklin notifications@github.com wrote:
Or you pass in options directly in the Gruntfile?
— Reply to this email directly or view it on GitHub.
Cool - I don't really have a preference towards which one. Perhaps the Gruntfile so it's one less dotfile? It makes little difference.
:thumbsup:
Just thought, surely .jshintrc
should be better so that the IDE recognises it too?
Who uses an IDE these days?! :pager:
SublimeLinter is popular. I use it! :P https://github.com/SublimeLinter/SublimeLinter#linter-specific-notes
Haha! Need to check that grunt-contrib-jshint does indeed pick up a .jshintrc
file - although I'm 99% confident it will do - and yeah I'm happy to go with that.
Whoever tackles #39 (currently assigned as me but anyone else, feel free :+1:) should probably tackle this at the same, they kind of go together.
Yup, the task for it would look something like this:
jshint: {
all: ['Gruntfile.js', 'app/scripts/**/*.js'],
options: {
jshintrc: './.jshintrc',
}
},
(Dammit, why doesn't Markdown work from email?!)
Or you pass in options directly in the Gruntfile?