Registry /
devops / eslint-formatter-teamcity
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
eslintTeamcity (default export)
✓ import eslintTeamcity from 'eslint-formatter-teamcity'
✗ const eslintTeamcity = require('eslint-formatter-teamcity')
Default export is a function. Both ESM and CJS supported; CJS require works but ESM recommended for TypeScript resolution.
TypeScript type: FormatterOptions
✓ import type { FormatterOptions } from 'eslint-formatter-teamcity'
✗ import { FormatterOptions } from 'eslint-formatter-teamcity' (value import, causes runtime error)
TypeScript types available since v2.0.1. Use `import type` to avoid bundling.
CLI usage
✓ eslint --format teamcity myfile.js
✗ eslint --format eslint-formatter-teamcity myfile.js
ESLint resolves the formatter by the short name 'teamcity' (without namespace) when installed as `eslint-formatter-*`.
Direct Node.js script
✓ node ./node_modules/eslint-formatter-teamcity/index.js result.json
✗ node ./node_modules/eslint-formatter-teamcity/index.js
When running directly, you must provide a path to an ESLint JSON report file as an argument.
Install the package, create a minimal ESLint config and a file with a lint violation, then run ESLint with the TeamCity formatter to see service messages.
# Install as dev dependency
npm install eslint-formatter-teamcity --save-dev
# Create an ESLint config file (.eslintrc.json or similar)
echo '{}' > .eslintrc.json
# Create a test file with a lint violation (e.g., unused variable)
echo 'let x = 1;' > test.js
# Run ESLint with the TeamCity formatter (short name, no namespace)
eslint --format teamcity test.js
# Expected output:
# ##teamcity[testSuiteStarted name='ESLint Violations']
# ##teamcity[testStarted name='test.js: let is not defined']
# ##teamcity[testFailed name='test.js: let is not defined' message='Error: ESLint - let is not defined' details='...']
# ##teamcity[testSuiteFinished name='ESLint Violations']
Errors
Common errors & fixes
Error: Cannot find module 'eslint-formatter-teamcity'
The package is not installed or not in the current working directory's node_modules.
fixRun `npm install eslint-formatter-teamcity --save-dev` and ensure you are running the command from the project root.
TypeError: eslintTeamcity is not a function
Incorrect import style; likely used named import when package has a default export only.
fixUse default import: `import eslintTeamcity from 'eslint-formatter-teamcity'` (no curly braces).
ESLint: Unknown formatter 'teamcity'
The formatter is not installed or ESLint cannot find it (e.g., running from wrong directory).
fixInstall as devDependency: `npm install eslint-formatter-teamcity --save-dev` and run ESLint from the project root.
Type error: Could not find a declaration file for module 'eslint-formatter-teamcity'
Package version <2.0.1 did not ship TypeScript types.
fixUpgrade to v2.0.1 or later, or create a custom declaration file (`declare module 'eslint-formatter-teamcity'`).
Audit
Dependencies
No dependency data recorded yet.