Skip to content

Commit 87a7623

Browse files
committed
Fix indenting for lint check.
1 parent 97eecaa commit 87a7623

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

gulpfile.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,40 @@ const coverallsCoverageLcovPath = `${coverallsCoverageDirPath}/lcov.info`;
1717
const coverallsBinPath = './node_modules/coveralls/bin/coveralls.js';
1818
const coverallsCommand = (process.platform === 'win32')
1919
// Windows (we have to resolve the paths).
20-
? `nyc report --reporter=lcov`
21-
+ ` && type ${path.resolve(coverallsCoverageLcovPath)} | ${path.resolve(coverallsBinPath)}`
22-
+ ` && rmdir /s /q ${path.resolve(coverallsCoverageDirPath)}`
20+
? `nyc report --reporter=lcov`
21+
+ ` && type ${path.resolve(coverallsCoverageLcovPath)} | ${path.resolve(coverallsBinPath)}`
22+
+ ` && rmdir /s /q ${path.resolve(coverallsCoverageDirPath)}`
2323
// Linux.
24-
: `nyc report --reporter=lcov`
25-
+ ` && cat ${coverallsCoverageLcovPath} | ${coverallsBinPath}`
26-
+ ` && rm -rf ${coverallsCoverageDirPath}`;
24+
: `nyc report --reporter=lcov`
25+
+ ` && cat ${coverallsCoverageLcovPath} | ${coverallsBinPath}`
26+
+ ` && rm -rf ${coverallsCoverageDirPath}`;
2727

2828
gulp.task('default', (done) => gulp.src([observableSlimPath, proxyPath])
29-
.pipe(babel({
30-
presets: ['@babel/preset-env'],
31-
sourceType: 'script' // Prevent insertion of "use strict".
32-
}))
33-
.pipe(useref())
34-
.pipe(uglify())
35-
.pipe(rename({
36-
suffix: '.min' // Add .min to the minified filename.
37-
}))
38-
.pipe(gulp.dest('./')) // Write it to the current directory.
39-
.on('end', done)
29+
.pipe(babel({
30+
presets: ['@babel/preset-env'],
31+
sourceType: 'script' // Prevent insertion of "use strict".
32+
}))
33+
.pipe(useref())
34+
.pipe(uglify())
35+
.pipe(rename({
36+
suffix: '.min' // Add .min to the minified filename.
37+
}))
38+
.pipe(gulp.dest('./')) // Write it to the current directory.
39+
.on('end', done)
4040
);
4141

4242
gulp.task('test', (done) => gulp.src([testPath])
43-
.pipe(mocha({
44-
compilers: babel
45-
}))
46-
.on('end', done)
43+
.pipe(mocha({
44+
compilers: babel
45+
}))
46+
.on('end', done)
4747
);
4848

4949
gulp.task('coveralls', shell.task([coverallsCommand]));
5050

5151
gulp.task('lint', (done) => gulp.src([observableSlimPath, proxyPath, testPath])
52-
.pipe(eslint())
53-
.pipe(eslint.format())
54-
.pipe(eslint.failOnError()) // Brick on failure to be super strict.
55-
.on('end', done)
52+
.pipe(eslint())
53+
.pipe(eslint.format())
54+
.pipe(eslint.failOnError()) // Brick on failure to be super strict.
55+
.on('end', done)
5656
);

observable-slim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var ObservableSlim = (function() {
6666
Object.defineProperty(target, "__length", { enumerable: false, value: target.length, writable: true });
6767
else
6868
target.__length = target.length;
69-
}
69+
}
7070

7171
var changes = [];
7272

0 commit comments

Comments
 (0)