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.

npm install eslint-formatter-relative-junit
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-R
E
eslint-formatter-relative-junit
devopsjavascriptv0.0.3
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
// No import needed; use directly via eslint --format
import formatter from 'eslint-formatter-relative-junit'
This package is designed to be used as a CLI formatter, not imported programmatically.

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 issues
gotchaThe formatter is a synchronous function returning a string; it does not support async or streaming.
fix
If you need async formatting, consider eslint-formatter-multiple or custom formatter.
affects: >=0.0.0
gotchaDoes not work with ESLint's flat config system (eslint.config.js). Only works with legacy .eslintrc config.
fix
Use ESLint <9 or convert to legacy config.
affects: >=0.0.0
deprecatedPackage is not actively maintained; last update 2017. May have compatibility issues with newer ESLint versions.
fix
Consider using eslint-formatter-multiple or custom formatter for up-to-date support.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'eslint-formatter-relative-junit'
The module is not installed or not in node_modules
fix
Run 'npm install --save-dev eslint-formatter-relative-junit'
Error: Could not find a declaration file for module 'eslint-formatter-relative-junit'
Package does not include TypeScript typings.
fix
Add a manual declaration or use '// @ts-ignore'
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
eslintrequiredpeer dependency; requires ESLint to be installed
Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
eslint-formatter-relative-junit — npm install eslint-formatter-relative-junit · libregistry