Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-tslint-stylish

adamfitzpatrick402MITdeprecated1.1.1

Replaced by core tslint formatter

Reporter for tslint along the lines of jshint-stylish

gulp, gulpplugin, typescript, tslint, stylish, reporter

readme

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