Skip to content

Github action that lints changed files.

License

Notifications You must be signed in to change notification settings

nutrisense/eslint-action

 
 

Repository files navigation

Eslint Annotate

Unit Tests 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"

About

Github action that lints changed files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.9%
  • TypeScript 1.1%