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

Package detail

@jamesacarr/eslint-formatter-github-actions

jamesacarr8.4kMIT0.2.0TypeScript support: included

Reporter for Jest that outputs GitHub Actions annotations

eslint, eslint-formatter, eslintformatter

readme

ESLint Reporter for GitHub Actions

Test status NPM badge

A custom formatter for ESLint that creates annotations when run via GitHub Actions

Installation

npm install -D @jamesacarr/eslint-formatter-github-actions

Or, even better:

yarn add -D @jamesacarr/eslint-formatter-github-actions

Usage

To get annotations working in your GitHub Actions runs, you need to run ESLint with the --format or -f flag. For example:

eslint -f @jamesacarr/github-actions

You can also use this formatter if you're using XO:

xo --reporter @jamesacarr/github-actions