Registry / devops / stylelint-formatter-relative-junit

stylelint-formatter-relative-junit

JSON →
library0.0.3jsnpmunverified

A fork of the junit formatter for stylelint that outputs file paths relative to the current working directory instead of absolute paths. Version 0.0.3 is the current stable release. This package is a simple, lightweight utility for CI/CD pipelines (e.g., Jenkins) that require JUnit XML reports with relative paths. It has no active development and no alternatives that provide the same relative-path feature out-of-the-box.

npm install stylelint-formatter-relative-junit
INSTALL
IMPORT
SIG · STYLELINT-FORMATTE
S
stylelint-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.

stylelint-formatter-relative-junit
stylelint --custom-formatter './node_modules/stylelint-formatter-relative-junit'
stylelint --formatter 'junit'
This is a custom formatter, not a built-in. Must use --custom-formatter with the path.

Shows how to install and use the formatter to generate a JUnit XML report with relative paths.

npm install --save-dev stylelint stylelint-formatter-relative-junit # Then run: stylelint 'src/**/*.css' --custom-formatter './node_modules/stylelint-formatter-relative-junit' > report.xml
Debug
Known issues
gotchaRequires stylelint's --custom-formatter flag, not --formatter
fix
Use --custom-formatter instead of --formatter when invoking stylelint.
affects: >=0.0.1
gotchaNot actively maintained - last release was in 2019
fix
Consider forking or using stylelint-junit-formatter and post-processing paths to be relative.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'stylelint-formatter-relative-junit'
Missing or incorrect path in --custom-formatter
fix
Verify the module is installed and provide the correct path, e.g., './node_modules/stylelint-formatter-relative-junit'
The formatter is not compatible with stylelint v14+
stylelint changed formatter API in v14 and this package was not updated
fix
Use stylelint v13.x or upgrade to a maintained formatter
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
stylelintrequiredpeer dependency - the formatter is designed to be used with stylelint
Agent activity
2 hits · last 30 days
node
2
Resources
stylelint-formatter-relative-junit — npm install stylelint-formatter-relative-junit · libregistry