Skip to content

Commit 84419ab

Browse files
chore: add lint-staged for prettier as pre-commit hook
1 parent 28b7651 commit 84419ab

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

.lintstagedrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js,ts,json,html,scss}": ["prettier --write"]
3+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"jest-environment-jsdom": "^29.7.0",
7373
"jest-preset-angular": "^14.4.2",
7474
"jsonc-eslint-parser": "^2.4.0",
75+
"lint-staged": "^15.3.0",
7576
"ng-packagr": "19.0.1",
7677
"nx": "20.3.0",
7778
"postcss": "^8.4.39",

pnpm-lock.yaml

+55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)