File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,23 @@ module.exports = function(grunt) {
33
33
jshint : {
34
34
options : {
35
35
curly : true ,
36
- eqeqeq : true ,
36
+ // eqeqeq: true,
37
37
immed : true ,
38
38
latedef : true ,
39
39
newcap : true ,
40
40
noarg : true ,
41
41
sub : true ,
42
42
undef : true ,
43
- unused : true ,
43
+ // unused: true,
44
44
boss : true ,
45
45
eqnull : true ,
46
+ // Copied from build.xml
47
+ forin : true ,
48
+ noempty : true ,
49
+ rhino : false ,
50
+ // Temporary to suppress warnings that exist when using the latest JSHint
51
+ eqeqeq : false ,
52
+ unused : false ,
46
53
globals : {
47
54
jQuery : true
48
55
}
@@ -60,7 +67,7 @@ module.exports = function(grunt) {
60
67
watch : {
61
68
gruntfile : {
62
69
files : '<%= jshint.gruntfile.src %>' ,
63
- tasks : [ 'jshint:gruntfile ' ]
70
+ tasks : [ 'jshint' ]
64
71
} ,
65
72
src : {
66
73
files : '<%= jshint.all.src %>' ,
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ function cli(api){
192
192
}
193
193
194
194
// Pad out with the appropriate number of spaces
195
- toPrint += Array ( lenToPad - ( optionName . length + formatString . length ) ) . join ( ' ' ) ;
195
+ toPrint += new Array ( lenToPad - ( optionName . length + formatString . length ) ) . join ( ' ' ) ;
196
196
197
197
// Print the description
198
198
toPrint += globalOptions [ optionName ] . description + "\n" ;
You can’t perform that action at this time.
0 commit comments