From a7a3badb8e395c1e499cdc99ec23a2e43df93506 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:46:32 +0200 Subject: [PATCH] Add ESLint PR check action --- .github/workflows/pr-run-eslint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-run-eslint.yml diff --git a/.github/workflows/pr-run-eslint.yml b/.github/workflows/pr-run-eslint.yml new file mode 100644 index 000000000..3387b5fd1 --- /dev/null +++ b/.github/workflows/pr-run-eslint.yml @@ -0,0 +1,22 @@ +name: ✅ Check ESLint on PR + +on: pull_request + +jobs: + eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - uses: sibiraj-s/action-eslint@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + eslint-args: '--ignore-path=.gitignore --quiet' + extensions: 'js,ts' + annotations: true + ignore-patterns: | + dist/ + lib/