From 0d4cb320478d3265c04825016fffdeb45c5a5c9d Mon Sep 17 00:00:00 2001 From: uzlopak <aras.abbasi@googlemail.com> Date: Fri, 13 Jan 2023 18:56:22 +0100 Subject: [PATCH] add pre-commit --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7bb2d8b..bdad3b4 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "statuses": "2.0.1" }, "devDependencies": { + "@fastify/pre-commit": "^2.0.2", "@types/node": "^18.11.18", "after": "0.8.2", "snazzy": "^9.0.0", @@ -47,5 +48,9 @@ "test:coverage": "tap --coverage-report=html", "test:typescript": "tsd", "test:unit": "tap" - } + }, + "pre-commit": [ + "lint", + "test" + ] }