A stylelint formatter that outputs lint results as GitHub Annotations, enabling error and warning messages to appear directly in GitHub pull request diffs and checks. Version 1.0.1 requires stylelint >= 10 and Node.js >= 10.x. It integrates seamlessly with GitHub Actions CI, providing immediate inline feedback without manual log parsing. Unlike JSON or verbose formatters, this creates machine-readable annotation objects that GitHub surfaces in the UI. Release cadence is low; the package is stable and feature-complete. It is the standard formatter for stylelint usage in GitHub Actions workflows.
npm install stylelint-formatter-githubNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures stylelint to use GitHub annotations formatter and runs linting on CSS files.
Use a different formatter (e.g., 'verbose') for local runs, or check CI environment variable.
Update Node.js to >=10, or stick with older package versions.
Run 'npm install --save-dev stylelint-formatter-github' and ensure node_modules path is correct.
Use dynamic import: 'import('stylelint-formatter-github')' or install stylelint as a dependency.