stylelint-html-reporter-stzhang

1.0.2 • Public • Published

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')
      })
    })
  ]
};

Package Sidebar

Install

npm i stylelint-html-reporter-stzhang

Weekly Downloads

207

Version

1.0.2

License

MIT

Unpacked Size

12.8 kB

Total Files

9

Last publish

Collaborators

  • stuart_zhang