HTML reporter for stylelint
npm install stylelint-html-reporterGenerates HTML report for stylelint
```
npm i -D stylelint stylelint-html-reporter
Stylelint HTML reporter can be used as a standalone formatter. You can write a
custom formatter as follows:
myCustomFormatter.js
`js
const stylelintReporter = require("stylelint-html-reporter");
module.exports = stylelintReporter(/ Pass options object here /);
`
You can use it as a custom formatter:
`sh`
stylelint "*.css" --custom-formatter ./myCustomFormatter.js
filename - (Optional) - Name of file to be generated
`js
const stylelintReporter = require("stylelint-html-reporter");
module.exports = stylelintReporter({
filename: "/dist/reports/stylelint-report.html",
});
``