Skip to content

Commit

Permalink
chore: add lint-staged for prettier as pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerhahnekamp authored Jan 4, 2025
1 parent 28b7651 commit 84419ab
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,ts,json,html,scss}": ["prettier --write"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"jest-environment-jsdom": "^29.7.0",
"jest-preset-angular": "^14.4.2",
"jsonc-eslint-parser": "^2.4.0",
"lint-staged": "^15.3.0",
"ng-packagr": "19.0.1",
"nx": "20.3.0",
"postcss": "^8.4.39",
Expand Down
55 changes: 55 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84419ab

Please sign in to comment.