File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ If you need multiple verbose commands per git hook, flexible configuration or au
7575 {
7676 " simple-git-hooks" : {
7777 " pre-commit" : " npx lint-staged" ,
78- " pre-push" : " cd ../../ && npm run format" ,
78+ " pre-push" : " npm run format" ,
7979
8080 // All unused hooks will be removed automatically by default
8181 // but you can use the `preserveUnused` option like following to prevent this behavior
@@ -129,7 +129,7 @@ This way `simple-git-hooks` configuration in `package.json` will not take effect
129129``` js
130130module .exports = {
131131 " pre-commit" : " npx lint-staged" ,
132- " pre-push" : " cd ../../ && npm run format" ,
132+ " pre-push" : " npm run format" ,
133133};
134134```
135135
@@ -138,7 +138,7 @@ module.exports = {
138138``` json
139139{
140140 "pre-commit" : " npx lint-staged" ,
141- "pre-push" : " cd ../../ && npm run format"
141+ "pre-push" : " npm run format"
142142}
143143```
144144
You can’t perform that action at this time.
0 commit comments