Skip to content

Commit 42e20a1

Browse files
committed
Fix jshint warnings in grunt/
Fixes facebook#1052. Test Plan: jshint grunt
1 parent 7cbbff0 commit 42e20a1

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

grunt/config/webdriver-all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ module.exports = function(props){
110110
}
111111

112112
return exports;
113-
}
113+
};

grunt/config/webdriver-perf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var params = []
2121
)
2222
.concat(reactVersions
2323
.map(encodeURIComponent)
24-
.map(function(version){ return 'react=' + version }
24+
.map(function(version){ return 'react=' + version; }
2525
)
2626
);
2727

grunt/tasks/npm-react-tools.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var fs = require('fs');
44
var grunt = require('grunt');
55

66
function pack() {
7+
/*jshint validthis:true */
78
var done = this.async();
89
var spawnCmd = {
910
cmd: 'npm',

grunt/tasks/npm-react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function buildRelease() {
3838
}
3939

4040
function packRelease() {
41+
/*jshint validthis:true */
4142
var done = this.async();
4243
var spawnCmd = {
4344
cmd: 'npm',
@@ -47,7 +48,7 @@ function packRelease() {
4748
}
4849
};
4950
grunt.util.spawn(spawnCmd, function() {
50-
var src = 'build/react-' + grunt.config.data.pkg.version + '.tgz'
51+
var src = 'build/react-' + grunt.config.data.pkg.version + '.tgz';
5152
var dest = 'build/react.tgz';
5253
fs.rename(src, dest, done);
5354
});

0 commit comments

Comments
 (0)