From 144b6867761a064bfe766c0c1994ebd1be676e74 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Wed, 21 Apr 2021 16:55:26 +0200 Subject: [PATCH] Testing Husky integration --- .husky/pre-commit | 5 ++--- .npmrc | 1 + package.json | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .npmrc diff --git a/.husky/pre-commit b/.husky/pre-commit index a29a4166..660b8209 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -# @TODO: Implement the pre-commit checks. -# npm run lint -# npm run test +npm run lint +npm run test diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..c0c80ba4 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=false diff --git a/package.json b/package.json index c4ae69b6..f77d87ff 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,8 @@ "husky": "6.0.0", "jest": "26.6.3" }, - "dependencies": {} + "engines": { + "node": ">=12.0.0", + "npm": ">=6.9.0" + } }