8000 GitHub - mrdivyansh/eslint-action: ✨ ESLint GitHub Action with inline lint annotations for pull requests
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mrdivyansh/eslint-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

ESLint Action

This is a GitHub Action that runs ESLint for .js, .jsx, .ts and .tsx files using your .eslintrc rules. It's free to run and it'll annotate the diffs of your pull requests with lint errors and warnings.

Neat! Bet your CI doesn't do that.

Usage

.github/workflows/lint.yml:

name: Lint

on: pull_request

jobs:
  eslint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: mrdivyansh/eslint-action@v1.0.7
        # GITHUB_TOKEN in forked repositories is read-only
        # https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
        if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} 
        with:
          repo-token: ${{secrets.GITHUB_TOKEN}}
          eslint-rc: .eslintrc.js
          execute-on-files:
            - ./packages

About

✨ ESLint GitHub Action with inline lint annotations for pull requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.3%
  • Dockerfile 6.5%
  • Shell 6.2%
0