Add ESLint PR check action
| @@ -0,0 +1,22 @@ | |||
| 1 | name: ✅ Check ESLint on PR | ||
| 2 | |||
| 3 | on: pull_request | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | eslint: | ||
| 7 | runs-on: ubuntu-latest | ||
| 8 | steps: | ||
| 9 | - uses: actions/checkout@v4 | ||
| 10 | - uses: actions/setup-node@v4 | ||
| 11 | with: | ||
| 12 | node-version: 20 | ||
| 13 | - run: npm ci | ||
| 14 | - uses: sibiraj-s/action-eslint@v3 | ||
| 15 | with: | ||
| 16 | token: ${{ secrets.GITHUB_TOKEN }} | ||
| 17 | eslint-args: '--ignore-path=.gitignore --quiet' | ||
| 18 | extensions: 'js,ts' | ||
| 19 | annotations: true | ||
| 20 | ignore-patterns: | | ||
| 21 | dist/ | ||
| 22 | lib/ | ||