redoc/build/tasks/lint.js

16 lines
376 B
JavaScript
Raw Normal View History

2015-10-03 15:11:57 +03:00
var gulp = require('gulp');
2016-06-13 20:54:24 +03:00
var tslint = require('gulp-tslint');
2015-10-03 15:11:57 +03:00
var paths = require('../paths');
gulp.task('lint', function () {
2015-12-12 23:11:35 +03:00
return gulp.src([paths.source, paths.tests])
2016-06-13 20:54:24 +03:00
.pipe(tslint({
rulesDirectory: 'node_modules/codelyzer'
}))
.pipe(tslint.report(require('tslint-stylish'), {
emitError: true,
sort: true,
bell: true
}));
2015-10-03 15:11:57 +03:00
});