UNPKG

1.53 kBMarkdownView Raw
1gulp-tslint-stylish
2===================
3
4![Build Status](https://travis-ci.org/adamfitzpatrick/tslint-stylish.svg?branch=gulp-tslint-develop)
5
6*Please be aware that this package will be superceded by (tslint-stylish)[https://www.npmjs.com/package/tslint-stylish]
7in the near future.*
8
9Typescript lint reporter for gulp-tslint along the lines of jshint-stylish. A special thanks to
10[Sindre Sorhus](https://github.com/sindresorhus) for the reporter design, and to
11[Panu Horsmalahti](https://github.com/panuhorsmalahti) for creating
12[gulp-tslint](https://github.com/panuhorsmalahti/gulp-tslint).
13
14Installation
15------------
16Note that this is designed to accept output from gulp-tslint, which must be installed separately.
17To install this package:
18
19```
20npm install gulp-tslint-stylish
21```
22
23Usage
24-----
25
26```
27var gulp = require('gulp');
28var tslint = require('gulp-tslint');
29var stylish = require('gulp-tslint-stylish');
30
31gulp.task('lint', function () {
32 gulp.src('SourceFiles.ts')
33 .pipe(tslint())
34 .pipe(tslint.report(stylish, {
35 emitError: false,
36 sort: true,
37 bell: true,
38 fullPath: true
39 }));
40```
41
42Options
43-------
44- `sort`
45 - Default is `true`
46 - When true, failures are sorted by line number.
47- `bell`
48 - Default is `true`
49 - When true, emits the system bell with report.
50- `fullPath`
51 - Default is `true`
52 - When true, shows full file path name. When false, shows only the filename.
53 - Contribution courtesy of [Sagar Vadodaria](https://github.com/sagarvadodaria)