Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylelint-html-reporter-stzhang

stuartZhang1.1kMIT1.0.2

HTML reporter for stylelint

stylelint, reporter, html, html-reporter, stylelint-html-reporter, webpack, stylelint-webpack-plugin

readme

stylelint-html-reporter-stzhang

HTML reporter for stylelint

Installation

npm install --save-dev stylelint-html-reporter-stzhang

Usage

const StylelintPlugin = require('stylelint-webpack-plugin');
const stylelintReporter = require('stylelint-html-reporter-stzhang');
module.exports = {
  plugins: [
    new StylelintPlugin({
      files: ['**/*.{vue,htm,html,css,sss,less,scss,sass}'],
      formatter: stylelintReporter()
    })
  ]
};

Options

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

const StylelintPlugin = require('stylelint-webpack-plugin');
const stylelintReporter = require('stylelint-html-reporter-stzhang');
module.exports = {
  plugins: [
    new StylelintPlugin({
      files: ['**/*.{vue,htm,html,css,sss,less,scss,sass}'],
      formatter: stylelintReporter({
        filename: path.join(config.build.assetsRoot, 'stylelint-report.html')
      })
    })
  ]
};