Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 7b2b034

Browse files
committed
chore: configure pre-commit hook and lint-staged
1 parent 22f86da commit 7b2b034

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

cms/.lintstagedrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"*.js": ["eslint --fix"],
3+
"*.ts": ["eslint --fix"],
4+
"*.json": ["prettier --write"],
5+
"*.md": ["prettier --write"]
6+
}

web/.lintstagedrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"*.js": ["eslint --fix"],
3+
"*.ts": ["eslint --fix"],
4+
"*.json": ["prettier --write"],
5+
"*.md": ["prettier --write"]
6+
}

0 commit comments

Comments
 (0)