Skip to content

Commit

Permalink
Migrate to ESLint for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eriwen committed Oct 24, 2018
1 parent e0e065f commit ee8d8ba
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 187 deletions.
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var coveralls = require('gulp-coveralls');
var del = require('del');
var gulp = require('gulp');
var eslint = require('gulp-eslint');
var karma = require('karma');
var rename = require('gulp-rename');
var runSequence = require('run-sequence');
Expand All @@ -10,6 +11,13 @@ var uglify = require('gulp-uglify');
var sources = 'stackframe.js';
var minified = sources.replace('.js', '.min.js');

gulp.task('lint', function() {
return gulp.src(sources)
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('test', function(done) {
new karma.Server({
configFile: __dirname + '/karma.conf.js',
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function (config) {
flags: ['--no-sandbox']
}
},
browsers: ['PhantomJS2'],
browsers: ['PhantomJS'],
singleRun: false
});
};
Loading

0 comments on commit ee8d8ba

Please sign in to comment.