xt0rted / stylelint-actions-formatters

Stylelint formatters that work with GitHub Actions problem matchers

Home Page:https://www.npmjs.com/package/stylelint-actions-formatters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylelint-actions-formatters

CI CodeQL npm version

These are copies of the built-in Stylelint formatters with modified file paths so that Checks Annotations can be created on GitHub Actions when your package.json is not in the root of the repository. This package should be used with the stylelint-problem-matcher action.

To help with compatibility the version of this package matches the version of StyleLint that the formatters came from. It also has a peer dependency on that version.

Usage

String formatter

 stylelint "scss/**/*.scss" --custom-formatter=stylelint-actions-formatters

Verbose formatter

 stylelint "scss/**/*.scss" --custom-formatter=stylelint-actions-formatters/src/verboseFormatter.mjs

Note: If you're not running on GitHub Actions then these reporters will function the same as the ones that ship with Stylelint.

About

Stylelint formatters that work with GitHub Actions problem matchers

https://www.npmjs.com/package/stylelint-actions-formatters

License:MIT License


Languages

Language:JavaScript 99.8%Language:CSS 0.2%