Skip to content

Commit 7c6e386

Browse files
authored
🛠️make pre commit hook run in each matching app folder
1 parent 5053dd8 commit 7c6e386

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
npx lint-staged --cwd 1d
5+
npx lint-staged --cwd admin
6+
npx lint-staged --cwd certif
7+
npx lint-staged --cwd mon-pix
8+
npx lint-staged --cwd orga
49
npx lint-staged
510

611
.husky/detect-secret

.lintstagedrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2-
"*.{js,yml, yaml}": "eslint --fix",
2+
"!(admin|1d|certif|monpix|orga)/**/*.{js,yml, yaml}": "eslint --fix",
3+
"./*.{js,yml, yaml}": "eslint --fix",
34
"*.scss": "stylelint --fix"
45
}

0 commit comments

Comments
 (0)