Registry / devops / eslint-formatter-relative-junit

eslint-formatter-relative-junit

JSON →
library0.0.3jsnpmunverified

An ESLint formatter that outputs JUnit XML with relative file paths instead of absolute paths. Version 0.0.3 is the latest stable release, though the package appears unmaintained since 2017. It forks the built-in JUnit formatter to strip absolute paths, which is useful when sharing reports across environments with different root directories. Notably, it does not support ESLint's new flat config system and has no TypeScript definitions.

devopstesting
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.

This package is designed to be used as a CLI formatter, not imported programmatically.

// No import needed; use directly via eslint --format

Shows how to generate a JUnit XML report with relative paths using the formatter from the command line.

npx eslint --format ./node_modules/eslint-formatter-relative-junit src/
Debug
Known footguns
gotchaThe formatter is a synchronous function returning a string; it does not support async or streaming.
gotchaDoes not work with ESLint's flat config system (eslint.config.js). Only works with legacy .eslintrc config.
deprecatedPackage is not actively maintained; last update 2017. May have compatibility issues with newer ESLint versions.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
3
amazonbot
3
ahrefsbot
2
mj12bot
1
Resources