From 0c34f5757e7b1521eec33649733513c21dbc60bd Mon Sep 17 00:00:00 2001 From: peterpeterparker Date: Sat, 25 Jan 2020 17:17:30 +0100 Subject: [PATCH] feat(#470): add prettier hook Signed-off-by: peterpeterparker --- docs/package.json | 7 ++++++- remote/package.json | 7 ++++++- studio/package.json | 7 ++++++- utils/deck/package.json | 7 ++++++- utils/slide/package.json | 7 ++++++- utils/types/package.json | 7 ++++++- utils/utils/package.json | 7 ++++++- 7 files changed, 42 insertions(+), 7 deletions(-) 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" + } + } }