Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

stylelint-formatter-xunit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-formatter-xunit

A [stylelint][1] 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.

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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));

FAQs

Package last updated on 06 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts