Skip to content

Commit 0433a04

Browse files
authored
Update README.md
1 parent b859665 commit 0433a04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
130130
module.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

0 commit comments

Comments
 (0)