Skip to content

Commit

Permalink
Fix gulp lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed May 6, 2018
1 parent 99838b4 commit 9c05f55
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,21 @@ gulp.task('push', gulp.series('xpi', 'push-only'))

gulp.task('default', gulp.series('push'))

gulp.task('lint', ->
# coffeelint-forbidden-keywords has `require('coffee-script/register');` in its
# index.js :(
gulp.task('lint-workaround', ->
gulp.src('node_modules/coffeescript/')
.pipe(gulp.symlink('node_modules/coffee-script'))
)

gulp.task('lint-only', ->
gulp.src(['extension/**/*.coffee', 'gulpfile.coffee'])
.pipe(coffeelint())
.pipe(coffeelint.reporter())
)

gulp.task('lint', gulp.series('lint-workaround', 'lint-only'))

gulp.task('sloc', ->
gulp.src([
'extension/bootstrap.coffee'
Expand Down

0 comments on commit 9c05f55

Please sign in to comment.