通过以下设置,jsHint 不会抱怨console.log
语句,但仍会报告debugger
语句:
jshint: {
files: [
'Gruntfile.js',
'js/**/*.js',
'tests/*.js',
],
options: {
curly: true,
immed: true,
noarg: true,
expr: true,
quotmark: 'single',
maxdepth: 3,
browser: true,
eqnull: true
}
},