pepjo/react-tabs-navigation

View on GitHub
gulpfile.js/tasks/lint.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

var gulp = require('gulp')
var eslint = require('gulp-eslint')
var paths = require('../config/lint.js').paths

gulp.task('lint', function () {
  return gulp.src(paths)
    // eslint() attaches the lint output to the eslint property
    // of the file object so it can be used by other modules.
    .pipe(eslint())
    // eslint.format() outputs the lint results to the console.
    // Alternatively use eslint.formatEach() (see Docs).
    .pipe(eslint.format())
    // To have the process exit with an error code (1) on
    // lint error, return the stream and pipe to failOnError last.
    .pipe(eslint.failAfterError())
})