Skip to content

Commit

Permalink
chore: add pre-commit git hook
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Apr 10, 2024
1 parent 10ef540 commit 292dcae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 47 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/yarn.lock
/package-lock.json

pnpm-lock.yaml

# production
/dist

Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install lint-staged --quiet
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"eslint": "^9.0.0",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"release-it": "^16.1.3",
"tsup": "^7.2.0",
"typescript": "^5.4.4",
Expand Down Expand Up @@ -81,5 +82,10 @@
},
"publishConfig": {
"access": "public"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --cache --fix"
]
}
}
47 changes: 0 additions & 47 deletions src/request.test.ts

This file was deleted.

0 comments on commit 292dcae

Please sign in to comment.