gulp-tslint-teamcity
v1.1.1
Published
Typescript lint reporter for gulp-tslint that works with tslint-teamcity-reporter
Downloads
116
Readme
gulp-tslint-teamcity
Typescript lint reporter for gulp-tslint that works with tslint-teamcity-reporter.
<!-- DEPRECATED
Since tslint 4.X, gulp-tslint 7.X and tslint-teamcity-reporter 2.X you do not need this package anymore. Simply use the reporter directly using the new tslint syntax seen below. Therefore this package will not be updated anymore.
var gulp = require('gulp');
var tslint = require('gulp-tslint');
// tslint-teamcity-reporter is also installed
gulp.task('lint', function () {
gulp.src('SourceFiles.ts')
.pipe(tslint({
formatter: 'tslint-teamcity-reporter'
}))
.pipe(tslint.report({ emitError: false }));
-->
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-teamcity --save-dev
Usage
var gulp = require('gulp');
var tslint = require('gulp-tslint');
var teamcity = require('gulp-tslint-teamcity');
gulp.task('lint', function () {
gulp.src('SourceFiles.ts')
.pipe(tslint())
.pipe(tslint.report(teamcity, {
emitError: false
}));
Credits
- Sindre Sorhus for the reporter design.
- Panu Horsmalahti for creating gulp-tslint.
- pteropus for gulp-tslint-stylish which is what I used as a reference.
- Arjan van Wijk for tslint-teamcity-reporter which is what is used.
License
MIT