stylelint-html-reporter

0.0.8 • Public • Published

Stylelint HTML Reporter

Generates HTML report for stylelint

Installation

npm i -D stylelint stylelint-html-reporter

How to use?

Stylelint HTML reporter can be used as a standalone formatter. You can write a custom formatter as follows:

myCustomFormatter.js

const stylelintReporter = require("stylelint-html-reporter");

module.exports = stylelintReporter(/* Pass options object here */);

You can use it as a custom formatter:

stylelint "*.css" --custom-formatter ./myCustomFormatter.js

Options

filename - (Optional) - Name of file to be generated

const stylelintReporter = require("stylelint-html-reporter");

module.exports = stylelintReporter({
  filename: "/dist/reports/stylelint-report.html",
});

/stylelint-html-reporter/

    Package Sidebar

    Install

    npm i stylelint-html-reporter

    Weekly Downloads

    2,740

    Version

    0.0.8

    License

    MIT

    Unpacked Size

    10.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • scssyworks