[Pkg-javascript-commits] [node-mocks-http] 220/296: chore(lint): fix lint errors in gulpfile

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit 40ed9336f3d8060abd849815da4a3deb12a1c1db
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Thu May 7 20:38:26 2015 +0800

    chore(lint): fix lint errors in gulpfile
---
 gulpfile.js | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index d4c5b08..68ad629 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -11,34 +11,34 @@ var files = {
 };
 
 gulp.task('lint', function () {
-    return gulp.src(files.src.concat(files.test))
-      .pipe(eslint())
-      .pipe(eslint.format())
-      .pipe(eslint.failOnError());
+  return gulp.src(files.src.concat(files.test))
+    .pipe(eslint())
+    .pipe(eslint.format())
+    .pipe(eslint.failOnError());
 });
 
 gulp.task('test', function () {
-    return gulp.src(files.test, {read: false})
-      .pipe(mocha({reporter: 'dot'}));
+  return gulp.src(files.test, {read: false})
+    .pipe(mocha({reporter: 'dot'}));
 });
 
 gulp.task('spec', function () {
-    return gulp.src(files.test, {read: false})
-      .pipe(mocha({reporter: 'spec'}));
+  return gulp.src(files.test, {read: false})
+    .pipe(mocha({reporter: 'spec'}));
 });
 
 gulp.task('coverage', function (done) {
-    gulp.src(files.src)
-      .pipe(istanbul())
-      .pipe(istanbul.hookRequire())
-      .on('finish', function () {
-          gulp.src(files.test)
-              .pipe(mocha({reporter: 'dot'}))
-              .pipe(istanbul.writeReports({
-                  dir: './coverage',
-                  reporters: ['lcov', 'json', 'html'],
-                  reportOpts: { dir: './coverage' }
-                }))
-              .on('end', done);
-      });
+  gulp.src(files.src)
+    .pipe(istanbul())
+    .pipe(istanbul.hookRequire())
+    .on('finish', function () {
+      gulp.src(files.test)
+        .pipe(mocha({reporter: 'dot'}))
+        .pipe(istanbul.writeReports({
+            dir: './coverage',
+            reporters: ['lcov', 'json', 'html'],
+            reportOpts: { dir: './coverage' }
+          }))
+        .on('end', done);
+    });
 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git



More information about the Pkg-javascript-commits mailing list