Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

Eslint Annotate

v2

Eslint Annotate

check-circle

Eslint Annotate

Lints changed files and annotates pull request diffs with errors

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Eslint Annotate

uses: a-b-r-o-w-n/eslint-action@v2

Learn more about this action in a-b-r-o-w-n/eslint-action

Choose a version

Eslint Annotate

Coverage Status

Runs eslint on changed files and creates inline annotations with errors.

Usage

In .github/workflows/main.yml:

name: Example Workflow

on: [pull_request, push]

jobs:
  lint:
    steps:
      - uses: actions/checkout@v1
      - uses: a-b-r-o-w-n/eslint-action@v2
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          files: "src/**/*"
          ignore: "src/some-file-to-ignore.js"
          extensions: ".js,.ts"
          working-directory: "./my-package"
          quiet: "false"