A custom formatter for Stylelint that outputs JUnit XML reports, enabling integration with CI tools like CircleCI and Bamboo that natively parse JUnit XML. Current stable version is 0.2.2. The package converts Stylelint lint results into a JUnit XML structure with test suites per file and test cases per rule violation. It is a lightweight wrapper around Stylelint's formatter API, with no additional dependencies beyond Stylelint itself. It is a simple, focused utility with a single function.
npm install stylelint-junit-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using the stylelint-junit-formatter with Stylelint's Node API to lint CSS files and output JUnit XML.
Use 'formatter: junitFormatter' (function) instead of 'formatter: 'stylelint-junit-formatter'' (string).
Use 'fs.writeFileSync('report.xml', result.output)' after linting.Use 'const junitFormatter = require('stylelint-junit-formatter');' or 'import junitFormatter from 'stylelint-junit-formatter';'Run 'npm install stylelint-junit-formatter --save-dev'
No dependency data recorded yet.