Donmclean/riko

View on GitHub
gulpfile.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";
const
    gulp    = require('gulp'),
    $       = require('gulp-load-plugins')(),
    path    = require('path'),
    baseDir = path.resolve(__dirname);

const srcFiles = [
    baseDir+'/**/*.js',
    '!'+baseDir+'/bin/**',
    '!'+baseDir+'/coverage/**',
    '!'+baseDir+'/node_modules/**'
];

gulp.task('lint', () => {
    return gulp.src(srcFiles)
        .pipe($.eslint({configFile: '.eslintrc' }))
        .pipe($.eslint.format())
        .pipe($.eslint.failAfterError())
        .pipe($.debug({title: 'linting js files:'}));
});