{"id":25712,"library":"gulp-tslint-teamcity","title":"gulp-tslint-teamcity","description":"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.","status":"deprecated","version":"1.1.1","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/iernie/gulp-tslint-teamcity","tags":["javascript"],"install":[{"cmd":"npm install gulp-tslint-teamcity","lang":"bash","label":"npm"},{"cmd":"yarn add gulp-tslint-teamcity","lang":"bash","label":"yarn"},{"cmd":"pnpm add gulp-tslint-teamcity","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required peer dependency to provide lint results.","package":"gulp-tslint","optional":false},{"reason":"Underlying reporter for TeamCity formatting.","package":"tslint-teamcity-reporter","optional":false}],"imports":[{"note":"Package is CJS only; ESM import may cause issues.","wrong":"import teamcity from 'gulp-tslint-teamcity';","symbol":"default","correct":"var teamcity = require('gulp-tslint-teamcity');"},{"note":"Pass as a reporter to tslint.report(), not as a formatter to tslint().","wrong":"gulp.task('lint', function () {\n  gulp.src('*.ts')\n    .pipe(tslint({ formatter: teamcity })));\n});","symbol":"default","correct":"gulp.task('lint', function () {\n  gulp.src('*.ts')\n    .pipe(tslint())\n    .pipe(tslint.report(teamcity, { emitError: false }));\n});"},{"note":"CommonJS require is required; ES modules not supported.","wrong":"import gulp from 'gulp';\nimport tslint from 'gulp-tslint';\nimport teamcity from 'gulp-tslint-teamcity';","symbol":"default","correct":"var gulp = require('gulp');\nvar tslint = require('gulp-tslint');\nvar teamcity = require('gulp-tslint-teamcity');"}],"quickstart":{"code":"var gulp = require('gulp');\nvar tslint = require('gulp-tslint');\nvar teamcity = require('gulp-tslint-teamcity');\n\ngulp.task('lint', function () {\n  return gulp.src('**/*.ts')\n    .pipe(tslint())\n    .pipe(tslint.report(teamcity, { emitError: false }));\n});","lang":"javascript","description":"Configures a gulp task to lint TypeScript files and output TeamCity-compatible messages using gulp-tslint-teamcity."},"warnings":[{"fix":"Use gulp-tslint with formatter: 'tslint-teamcity-reporter' directly; see README for example.","message":"Package is deprecated. Since tslint 4.x and gulp-tslint 7.x, you can use tslint-teamcity-reporter directly as a formatter.","severity":"deprecated","affected_versions":">=1.1.1"},{"fix":"Use .pipe(tslint.report(teamcity, { emitError: false })) instead of .pipe(tslint({ formatter: teamcity })).","message":"Must be passed to tslint.report() as the reporter argument, not as a formatter to tslint().","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Install gulp-tslint and tslint-teamcity-reporter as devDependencies.","message":"Requires both gulp-tslint and tslint-teamcity-reporter as peer dependencies; missing either will cause runtime errors.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use .pipe(tslint.report(teamcity, { emitError: false }))","cause":"Passing teamcity as a formatter to tslint() instead of as a reporter to tslint.report().","error":"TypeError: Cannot read property 'emitError' of undefined"},{"fix":"Run npm install --save-dev tslint-teamcity-reporter","cause":"Missing peer dependency tslint-teamcity-reporter.","error":"Error: Cannot find module 'tslint-teamcity-reporter'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}