diff --git a/docs/package.json b/docs/package.json index ee9dc5b01..6ebbf652d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -71,5 +71,10 @@ "slides", "slideshow", "talk" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } } diff --git a/remote/package.json b/remote/package.json index 8dd4f4925..4ba5f8106 100644 --- a/remote/package.json +++ b/remote/package.json @@ -75,5 +75,10 @@ "slides", "slideshow", "talk" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } } diff --git a/studio/package.json b/studio/package.json index 655775c4b..9b3ed8581 100644 --- a/studio/package.json +++ b/studio/package.json @@ -73,5 +73,10 @@ "slides", "slideshow", "talk" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } } diff --git a/utils/deck/package.json b/utils/deck/package.json index 61d46bd08..390fc8835 100644 --- a/utils/deck/package.json +++ b/utils/deck/package.json @@ -50,5 +50,10 @@ "slides", "slideshow", "talk" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } } diff --git a/utils/slide/package.json b/utils/slide/package.json index e5bf25779..170cece58 100644 --- a/utils/slide/package.json +++ b/utils/slide/package.json @@ -49,5 +49,10 @@ "slides", "slideshow", "talk" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } } diff --git a/utils/types/package.json b/utils/types/package.json index 7910aa972..bd9bfe325 100644 --- a/utils/types/package.json +++ b/utils/types/package.json @@ -24,5 +24,10 @@ "files": [ "lib", "README.md" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } } diff --git a/utils/utils/package.json b/utils/utils/package.json index 53f159864..4f656ee66 100644 --- a/utils/utils/package.json +++ b/utils/utils/package.json @@ -30,5 +30,10 @@ "files": [ "lib", "README.md" - ] + ], + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } }