1 | gulp-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]
|
7 | in the near future.*
|
8 |
|
9 | Typescript 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 |
|
14 | Installation
|
15 | ------------
|
16 | Note that this is designed to accept output from gulp-tslint, which must be installed separately.
|
17 | To install this package:
|
18 |
|
19 | ```
|
20 | npm install gulp-tslint-stylish
|
21 | ```
|
22 |
|
23 | Usage
|
24 | -----
|
25 |
|
26 | ```
|
27 | var gulp = require('gulp');
|
28 | var tslint = require('gulp-tslint');
|
29 | var stylish = require('gulp-tslint-stylish');
|
30 |
|
31 | gulp.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 |
|
42 | Options
|
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)
|