var gulp = require('gulp');

var tslint = require('gulp-tslint');

function lint(source) {
	gulp.src(['./' + source + '/**/*.ts', '!./source/typings/*.d.ts'])
		.pipe(tslint())
		.pipe(tslint.report('verbose'));
}

module.exports = lint;

module.exports.config = function(gulp, source) {
    gulp.task('lint', function() {
		lint(source);
    });
};
var tslint = require('gulp-tslint');

function lint(source, gulp) {
	if (!gulp) {
		gulp = require('gulp');
	}
	
	gulp.src(['./' + source + '/**/*.ts', '!./source/typings/*.d.ts'])
		.pipe(tslint())
		.pipe(tslint.report('verbose'));
}

module.exports = lint;

module.exports.config = function(gulp, source) {
    gulp.task('lint', function() {
		lint(source, gulp);
    });
};
Allow the gulp instance to be optionally provided
Allow the gulp instance to be optionally provided
