Skip to content

Commit

Permalink
Update ESLint config file to flat config format
Browse files Browse the repository at this point in the history
  • Loading branch information
qitianshi committed Jun 30, 2024
1 parent 7b9ed2a commit 82b731d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Runs ESLint on JavaScript files.

# Copyright 2024 Qi Tianshi. All rights reserved.


name: Run ESLint

on:
push:
paths:
- "src/_webpack/**/*.js"
pull_request:
workflow_dispatch:

jobs:
lint:

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.2"
cache: "npm"
cache-dependency-path: "package-lock.json"

- name: Install npm packages
run: npm ci

- name: Run ESLint
run: npx eslint src/_webpack

0 comments on commit 82b731d

Please sign in to comment.