Tslint-junit-formatter is a custom formatter for TSLint that outputs lint results in JUnit XML format, commonly used for CI/CD integration (e.g., Jenkins). Current stable version is 5.1.0. The package requires a peer dependency on tslint ^5.0.0. It provides a simple way to generate JUnit-compatible test reports from TSLint results. Unlike built-in formatters, this one outputs XML that can be consumed by JUnit report parsers. The project is in maintenance mode, as TSLint is deprecated in favor of ESLint.
npm install tslint-junit-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs TSLint on TypeScript files in src/ and outputs JUnit XML report to tslint-results.xml.
Migrate to ESLint and use a JUnit formatter for ESLint (e.g., eslint-plugin-junit).
Use the full path: --formatters-dir node_modules/tslint-junit-formatter/formatters
Ensure the path ends with '/formatters' (or the correct subdirectory).
Set --formatters-dir to the directory that contains the formatter file (e.g., node_modules/tslint-junit-formatter/formatters).
Install tslint: npm install tslint --save-dev