Skip to content

Commit

Permalink
Add eslint config back to package.json remove eslint job to debug travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kojinkai committed Dec 10, 2016
1 parent e2c9207 commit de6df07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

11 changes: 1 addition & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
'use strict';
const path = require('path');
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const excludeGitignore = require('gulp-exclude-gitignore');
const mocha = require('gulp-mocha');
const istanbul = require('gulp-babel-istanbul');
const nsp = require('gulp-nsp');
const plumber = require('gulp-plumber');
const coveralls = require('gulp-coveralls');

gulp.task('static', () => {
return gulp.src('**/*.js')
.pipe(excludeGitignore())
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('nsp', cb => {
nsp({package: path.resolve('package.json')}, cb);
});
Expand Down Expand Up @@ -59,4 +50,4 @@ gulp.task('coveralls', ['test'], () => {
});

gulp.task('prepublish', ['nsp']);
gulp.task('default', ['static', 'test', 'coveralls']);
gulp.task('default', ['test', 'coveralls']);
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
"yeoman-assert": "^2.0.0",
"yeoman-test": "^1.0.0"
},
"eslintConfig": {
"extends": "xo-space/esnext",
"env": {
"es6": true,
"mocha": true,
"jasmine": true
}
},
"repository": "kojinkai/generator-karma-gulp-browserify-update",
"scripts": {
"prepublish": "gulp prepublish",
Expand Down

0 comments on commit de6df07

Please sign in to comment.