Skip to content

Commit 09cc5f6

Browse files
committed
fix: šŸ› update lint-staged configuration to exclude templates directory from formatting
1 parent 23878f6 commit 09cc5f6

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

ā€Žsrc/githooks/_lint-staged.package.jsonā€Ž

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
"lint": "npx --yes lint-staged -p false"
44
},
55
"lint-staged": {
6+
"!(templates/**/*)*.{js,jsx,ts,tsx,md,html,css,vue,yaml,yml}": [
7+
"npx --yes prettier --write"
8+
],
69
"*.json": [
710
"normalize-json -c -w -a -i -f local -l true",
811
"npx --yes prettier --write"
912
],
10-
"*.php": [
11-
"composer lint"
12-
],
13-
"*.{js,jsx,ts,tsx,md,html,css,vue,yaml,yml}": [
14-
"npx --yes prettier --write"
15-
]
13+
"*.php": ["composer lint"]
1614
}
1715
}

0 commit comments

Comments
Ā (0)