stylelint-formatter-xunit

0.1.2 • Public • Published

Stylelint Formatter: XUnit

A stylelint formatter that outputs test results as a xUnit (JUnit) test report, for compatibility with tools such as CircleCI that expect test results to be formatted in this way.

The implementation is small, lightweight, and dependency-free.

Installing

Yarn

$ yarn add --dev stylelint-formatter-xunit

NPM

$ npm install --save-dev stylelint-formatter-xunit

Usage

This formatter can be used via the --custom-formatter option when running Stylelint via its CLI:

$ stylelint --custom-formatter node_modules/stylelint-formatter-xunit ...

Alternatively, you can use the Stylelint Node.js API like this:

const stylelint = require('stylelint');

stylelint.lint({
  config: {
    // ...what you would typically have in .stylelintrc
  },
  formatter: require('stylelint-formatter-xunit')
}).then(({ output }) => console.log(output));

Readme

Keywords

none

Package Sidebar

Install

npm i stylelint-formatter-xunit

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

3.05 kB

Total Files

5

Last publish

Collaborators

  • canterberry