Skip to content

Commit

Permalink
Explicitly use .eslintrc.json with gulp-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah committed Dec 4, 2016
1 parent f6002e0 commit 4a76c5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';
var path = require('path');
var gulp = require('gulp');
// var eslintConfig = require('eslint-config-xo-space');
var eslintConfig = require('./.eslintrc.json');
var eslint = require('gulp-eslint');
var excludeGitignore = require('gulp-exclude-gitignore');
var mocha = require('gulp-mocha');
Expand All @@ -12,7 +14,7 @@ var coveralls = require('gulp-coveralls');
gulp.task('static', function () {
return gulp.src('**/*.js')
.pipe(excludeGitignore())
.pipe(eslint())
.pipe(eslint(eslintConfig))
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
Expand Down

0 comments on commit 4a76c5a

Please sign in to comment.