Skip to content

Commit f8f7305

Browse files
committed
Fix lint errors and lint runner
1 parent bdc8e97 commit f8f7305

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

.jshintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"node": true,
3+
"proto": true
4+
}

lib/blob.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use strict";
2-
31
var git = require('../');
42
var TreeEntry = git.TreeEntry;
53
var Blob = git.Blob;

lib/commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Commit.prototype.parents = function() {
138138
result.push(this.parentId(i));
139139
}
140140
return result;
141-
}
141+
};
142142

143143
/**
144144
* Generate an array of diff trees showing changes between this commit

lib/reference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ Reference.prototype.target = function() {
6060
*/
6161
Reference.prototype.toString = function() {
6262
return this.name();
63-
}
63+
};

lib/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Tree.prototype.getEntry = function(path, callback) {
7070
if (error) return callback(error);
7171

7272
entry.parent = self;
73-
entry.path = function() { return path };
73+
entry.path = function() { return path; };
7474
callback(null, entry);
7575
});
7676
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"host": "https://s3.amazonaws.com/nodegit/nodegit/"
6464
},
6565
"scripts": {
66-
"lint": "jshint src",
66+
"lint": "jshint lib test/*.js",
6767
"test": "cd test && nodeunit nodegit.js",
6868
"publish": "node-pre-gyp package && node-pre-gyp publish",
6969
"generate": "node generate/setup && node generate",

test/nodegit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ exports.setUp = function(cb) {
4444
};
4545

4646
Object.keys(testFiles).forEach(function(fileName) {
47-
var testFile = testFiles[fileName]
47+
var testFile = testFiles[fileName];
4848
exports[testFile] = require('./' + testFile);
4949
});

0 commit comments

Comments
 (0)