Update docs to be compatible with latest husky version (#4803)
This commit is contained in:
1 parent
432c9d7d04
commit
8ef10b2177
1 file changed
+12
-6
+12
-6
@@ -19,8 +19,10 @@ and add this config to your `package.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"precommit": "lint-staged"
|
||||
"husky": {
|
||||
"hooks: {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,json,css,md}": ["prettier --write", "git add"]
|
||||
@@ -46,8 +48,10 @@ and add this config to your `package.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"precommit": "pretty-quick --staged"
|
||||
"husky": {
|
||||
"hooks: {
|
||||
"pre-commit": "pretty-quick --staged"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -83,8 +87,10 @@ and add this config to your `package.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"precommit": "precise-commits"
|
||||
"husky": {
|
||||
"hooks: {
|
||||
"pre-commit": "precise-commits"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user