Skip to content

Commit 6f01949

Browse files
committed
update dev deps and fix lint
1 parent 346ea2a commit 6f01949

File tree

7 files changed

+19
-20
lines changed

7 files changed

+19
-20
lines changed

examples/gulpfile.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,53 @@ gulp.task('init', function() {
1414

1515
gulp.task('add', function() {
1616
gulp.src('./*')
17-
.pipe(git.add());
17+
.pipe(git.add());
1818
});
1919

2020

2121
// Commit files
2222

2323
gulp.task('commit', function() {
2424
gulp.src('./*', {buffer:false})
25-
.pipe(git.commit('initial commit'));
25+
.pipe(git.commit('initial commit'));
2626
});
2727

2828
gulp.task('commitDelayed', function() {
2929
gulp.src('./*')
30-
.pipe(git.commit(function () { return 'commiting at exactly ' + new Date().toISOString(); }));
30+
.pipe(git.commit(function () { return 'commiting at exactly ' + new Date().toISOString(); }));
3131
});
3232

3333
// Commit files with arguments
3434
gulp.task('commitopts', function() {
3535
gulp.src('./*')
36-
.pipe(git.commit('initial commit', {args: '-v'}));
36+
.pipe(git.commit('initial commit', {args: '-v'}));
3737
});
3838

3939
// Commit files using raw arguments, without message checking
4040
gulp.task('commitraw', function() {
4141
gulp.src('./*')
42-
.pipe(git.commit(undefined, {
43-
args: '-m "initial commit"',
44-
disableMessageRequirement: true
45-
}));
42+
.pipe(git.commit(undefined, {
43+
args: '-m "initial commit"',
44+
disableMessageRequirement: true
45+
}));
4646
});
4747

4848
// Commit files using raw arguments, without message checking
4949
gulp.task('commitmulti', function() {
5050
gulp.src('./*')
51-
.pipe(git.commit(['initial commit', 'additional message']));
51+
.pipe(git.commit(['initial commit', 'additional message']));
5252
});
5353

5454
// Commit files using the multiline option
5555
gulp.task('commitmultiline', function() {
5656
gulp.src('./*')
57-
.pipe(git.commit(['initial commit', 'additional message'], { mutiline: true }));
57+
.pipe(git.commit(['initial commit', 'additional message'], { mutiline: true }));
5858
});
5959

6060
// Commit files with multiline messages
6161
gulp.task('commitmultiline', function() {
6262
gulp.src('./*')
63-
.pipe(git.commit('initial commit\nadditional message'));
63+
.pipe(git.commit('initial commit\nadditional message'));
6464
});
6565

6666
// Clone remote repo to current directory ($CWD/git-test)
@@ -188,7 +188,7 @@ gulp.task('push-tag', function() {
188188

189189
gulp.task('rm', function() {
190190
gulp.src('./delete')
191-
.pipe(git.rm({args: '-f'}));
191+
.pipe(git.rm({args: '-f'}));
192192
});
193193

194194
gulp.task('addSubmodule', function() {

lib/diff.js

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ var exec = require('child_process').exec;
1212
var catFile = require('./catFile');
1313

1414
// https://git-scm.com/docs/git-diff#_raw_output_format
15+
/* eslint-disable */
1516
var RE_DIFF_RESULT = /\:(\w+)\s+(\w+)\s+(\w+)(?:\.{3})?\s+(\w+)(?:\.{3})?\s+(\w+)(\u0000|\t|\s+)(.+?)(?:\6|\n)(?:([^:]+?)\6)?/g;
17+
/* eslint-enable */
1618

1719
function getReaslt(data) {
1820
var result = [];

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"vinyl": "^2.0.1"
2121
},
2222
"devDependencies": {
23-
"eslint": "^3.17.0",
24-
"mocha": "^3.2.0",
23+
"eslint": "^6.7.2",
24+
"mocha": "^6.2.2",
2525
"mock-require": "^2.0.2",
2626
"rimraf": "^2.6.1",
27-
"should": "^11.2.0"
27+
"should": "^13.2.3"
2828
},
2929
"scripts": {
3030
"docs": "rimraf docs/* && jsdoc ./index.js ./lib --recurse --destination ./docs",

test/checkout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function(git) {
99
git.checkout('testBranch', opt, function() {
1010
fs.readFileSync('test/repo/.git/HEAD')
1111
.toString('utf8')
12-
.should.match(/ref\: refs\/heads\/testBranch/);
12+
.should.match(/ref: refs\/heads\/testBranch/);
1313

1414
done();
1515
});

test/clean.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global beforeEach, it, afterEach */
21
'use strict';
32

43
var fs = require('fs');

test/fetch.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
/* global describe, it, after, before, afterEach, beforeEach */
4-
53
var fs = require('fs');
64
var rimraf = require('rimraf');
75
var should = require('should');

test/submodule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function(git) {
1515

1616
fs.readFileSync('test/repo/.gitmodules')
1717
.toString('utf8')
18-
.should.match(new RegExp(url.replace(/[\/]/g, '\\$&')));
18+
.should.match(new RegExp(url.replace(/[/]/g, '\\$&')));
1919
fs.stat('test/repo/testSubmodule/.git', function(err) {
2020
should.not.exist(err);
2121
done();

0 commit comments

Comments
 (0)