Skip to content

Commit

Permalink
chore: add lint-staged pre commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkli committed Feb 6, 2024
1 parent 1c761a8 commit 00c7218
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npx lint-staged --concurrent false --relative
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,ts,css,scss,html,json,md}": "prettier --write"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.3.1",
"lint-staged": "^15.2.2",
"prettier": "2.8.8",
"prettier-plugin-organize-imports": "^3.2.4",
"rimraf": "5.0.1",
Expand Down
Loading

0 comments on commit 00c7218

Please sign in to comment.