Skip to content

Commit

Permalink
Issues oasp#6 / oasp#20 resolved: - gulp lint task refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Szewcow committed Sep 25, 2015
1 parent 609541b commit 7c6a951
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/templates/gulp/unit-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var eslint = require('gulp-eslint');
var createKarmaTask = function (options) {
/**
* Pass empty array - karma will query for files.
Expand Down Expand Up @@ -41,7 +40,7 @@ gulp.task('test:tdd:debug', ['ngTemplates'], function () {
});
gulp.task('lint', function () {
return gulp.src(config.scripts.lintSrc())
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failOnError());
.pipe($.eslint())
.pipe($.eslint.format())
.pipe($.eslint.failOnError());
});

0 comments on commit 7c6a951

Please sign in to comment.