Registry / testing / gulp-tslint-teamcity

gulp-tslint-teamcity

JSON →
library1.1.1jsnpmunverified

A reporter for gulp-tslint that formats lint results for TeamCity using tslint-teamcity-reporter. Deprecated since tslint 4.x and gulp-tslint 7.x, as the reporter can now be used directly. Version 1.1.1 is the latest and final release. No longer maintained.

npm install gulp-tslint-teamcity
INSTALL
IMPORT
SIG · GULP-TSLINT-TEAMCI
G
gulp-tslint-teamcity
testingjavascriptv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
var teamcity = require('gulp-tslint-teamcity');
import teamcity from 'gulp-tslint-teamcity';
Package is CJS only; ESM import may cause issues.
default
gulp.task('lint', function () { gulp.src('*.ts') .pipe(tslint()) .pipe(tslint.report(teamcity, { emitError: false })); });
gulp.task('lint', function () { gulp.src('*.ts') .pipe(tslint({ formatter: teamcity }))); });
Pass as a reporter to tslint.report(), not as a formatter to tslint().
default
var gulp = require('gulp'); var tslint = require('gulp-tslint'); var teamcity = require('gulp-tslint-teamcity');
import gulp from 'gulp'; import tslint from 'gulp-tslint'; import teamcity from 'gulp-tslint-teamcity';
CommonJS require is required; ES modules not supported.

Configures a gulp task to lint TypeScript files and output TeamCity-compatible messages using gulp-tslint-teamcity.

var gulp = require('gulp'); var tslint = require('gulp-tslint'); var teamcity = require('gulp-tslint-teamcity'); gulp.task('lint', function () { return gulp.src('**/*.ts') .pipe(tslint()) .pipe(tslint.report(teamcity, { emitError: false })); });
Debug
Known issues
deprecatedPackage is deprecated. Since tslint 4.x and gulp-tslint 7.x, you can use tslint-teamcity-reporter directly as a formatter.
fix
Use gulp-tslint with formatter: 'tslint-teamcity-reporter' directly; see README for example.
affects: >=1.1.1
gotchaMust be passed to tslint.report() as the reporter argument, not as a formatter to tslint().
fix
Use .pipe(tslint.report(teamcity, { emitError: false })) instead of .pipe(tslint({ formatter: teamcity })).
affects: >=1.0.0
gotchaRequires both gulp-tslint and tslint-teamcity-reporter as peer dependencies; missing either will cause runtime errors.
fix
Install gulp-tslint and tslint-teamcity-reporter as devDependencies.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: Cannot read property 'emitError' of undefined
Passing teamcity as a formatter to tslint() instead of as a reporter to tslint.report().
fix
Use .pipe(tslint.report(teamcity, { emitError: false }))
Error: Cannot find module 'tslint-teamcity-reporter'
Missing peer dependency tslint-teamcity-reporter.
fix
Run npm install --save-dev tslint-teamcity-reporter
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies
gulp-tslintrequiredRequired peer dependency to provide lint results.
tslint-teamcity-reporterrequiredUnderlying reporter for TeamCity formatting.
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-tslint-teamcity — npm install gulp-tslint-teamcity · libregistry