mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
16 lines
376 B
JavaScript
16 lines
376 B
JavaScript
var gulp = require('gulp');
|
|
var tslint = require('gulp-tslint');
|
|
var paths = require('../paths');
|
|
|
|
gulp.task('lint', function () {
|
|
return gulp.src([paths.source, paths.tests])
|
|
.pipe(tslint({
|
|
rulesDirectory: 'node_modules/codelyzer'
|
|
}))
|
|
.pipe(tslint.report(require('tslint-stylish'), {
|
|
emitError: true,
|
|
sort: true,
|
|
bell: true
|
|
}));
|
|
});
|