Skip to content

Commit

Permalink
MAINT: Add lint check to PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
meiamsome committed Dec 30, 2024
1 parent fc9788e commit ebe1af8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check PRs

on:
pull_request

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- run: npm ci
- run: npm run lint:check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "vite build --mode prod",
"preview": "vite preview",
"lint": "eslint --fix src/",
"lint:check": "eslint src/",
"prepare": "husky install",
"test": "jest tests"
},
Expand Down

0 comments on commit ebe1af8

Please sign in to comment.