Skip to content

Commit ee8d8ba

Browse files
committed
Migrate to ESLint for linting
1 parent e0e065f commit ee8d8ba

File tree

4 files changed

+230
-187
lines changed

4 files changed

+230
-187
lines changed

gulpfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var coveralls = require('gulp-coveralls');
22
var del = require('del');
33
var gulp = require('gulp');
4+
var eslint = require('gulp-eslint');
45
var karma = require('karma');
56
var rename = require('gulp-rename');
67
var runSequence = require('run-sequence');
@@ -10,6 +11,13 @@ var uglify = require('gulp-uglify');
1011
var sources = 'stackframe.js';
1112
var minified = sources.replace('.js', '.min.js');
1213

14+
gulp.task('lint', function() {
15+
return gulp.src(sources)
16+
.pipe(eslint())
17+
.pipe(eslint.format())
18+
.pipe(eslint.failAfterError());
19+
});
20+
1321
gulp.task('test', function(done) {
1422
new karma.Server({
1523
configFile: __dirname + '/karma.conf.js',

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (config) {
1717
flags: ['--no-sandbox']
1818
}
1919
},
20-
browsers: ['PhantomJS2'],
20+
browsers: ['PhantomJS'],
2121
singleRun: false
2222
});
2323
};

0 commit comments

Comments
 (0)