I have a web app created by yeoman
webapp generator, that has this structure:
myApp
app
node_modules
grunt
grunt-contrib-jshint
test
I try to change the quotmark: "single"
option for jshint
to quotmark: true
to turn off the error for double quote. I try to set it in:
However, it seems that my change is not registered when I run grunt:
grunt jshint
Do I have to make that change anywhere else?
How does your Gruntfile look like? You should have something like
jshint: {
options: {
jshintrc: '.jshintrc' // relative to Gruntfile
}
}
I found out the problem I am having. I was having this:
var myVar = [
{
"name": "a name" // jshint warning: Mixed double and single quotes.
}
];
The correct option I should set is "quotmark": false
instead of "quotmark": true
to turn off the quote mark checking, even though I don't see why it should be an issue in my case.
The .jshintrc
file to set this option is: myApp/.jshintrc
Thanks everyone for your help. I really appreciate it!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With