gulp-tslint-stylish
Please be aware that this package will be superceded by (tslint-stylish)[https://www.npmjs.com/package/tslint-stylish] in the near future.
Typescript lint reporter for gulp-tslint along the lines of jshint-stylish. A special thanks to Sindre Sorhus for the reporter design, and to Panu Horsmalahti for creating gulp-tslint.
Installation
Note that this is designed to accept output from gulp-tslint, which must be installed separately. To install this package:
npm install gulp-tslint-stylish
Usage
var gulp = require('gulp');
var tslint = require('gulp-tslint');
var stylish = require('gulp-tslint-stylish');
gulp.task('lint', function () {
gulp.src('SourceFiles.ts')
.pipe(tslint())
.pipe(tslint.report(stylish, {
emitError: false,
sort: true,
bell: true,
fullPath: true
}));
Options
sort
- Default is
true
- When true, failures are sorted by line number.
- Default is
bell
- Default is
true
- When true, emits the system bell with report.
- Default is
fullPath
- Default is
true
- When true, shows full file path name. When false, shows only the filename.
- Contribution courtesy of Sagar Vadodaria
- Default is