Skip to content

Commit

Permalink
Run prettier when commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO committed Nov 19, 2023
1 parent 3c45248 commit fc9f209
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "./.husky/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npx --no-install lint-staged
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.css": "stylelint --fix"
"*.css": "stylelint --fix",
"*": "prettier --ignore-unknown --write"
}
}

0 comments on commit fc9f209

Please sign in to comment.