A custom formatter for stylelint that outputs lint results in Checkstyle XML format. Version 0.1.2 is the latest stable release; the package has not been updated since 2017. It is designed for CI/CD pipelines, particularly with Jenkins' Checkstyle Plugin. Key differentiator: converts stylelint output to Checkstyle XML for compatibility with tools expecting that format. No dependencies beyond stylelint.
npm install stylelint-checkstyle-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows using the checkstyle formatter with stylelint's programmatic API.
Use stylelint's built-in 'checkstyle' formatter: --custom-formatter=stylelint-checkstyle-formatter or in config: formatter: 'checkstyle'.
Use require() instead of import. If using ESM, use createRequire or dynamic import.
Define custom types or use @ts-ignore.
npm install stylelint-checkstyle-formatter --save-dev
const formatter = require('stylelint-checkstyle-formatter');