1.1.1 • Published 9 years ago

gulp-tslint-stylish v1.1.1

Weekly downloads
367
License
MIT
Repository
github
Last release
9 years ago

gulp-tslint-stylish

Build Status

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.
  • bell
    • Default is true
    • When true, emits the system bell with report.
  • fullPath
    • Default is true
    • When true, shows full file path name. When false, shows only the filename.
    • Contribution courtesy of Sagar Vadodaria