Skip to content

Commit 70f4a6f

Browse files
committed
add lint as an npm script
1 parent fdf8ed6 commit 70f4a6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
run: npm ci
2929

3030
- name: Lint project
31-
run: npx lefthook run pre-commit --all-files
31+
run: npm run lint

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"scripts": {
77
"dev": "vite",
8+
"lint": "lefthook run pre-commit --all-files",
89
"build": "vite build"
910
},
1011
"dependencies": {

0 commit comments

Comments
 (0)