From 716b8d0fe154f4d321cc4a023376cdc7a9f3de40 Mon Sep 17 00:00:00 2001 From: David Philipson Date: Fri, 5 Oct 2018 16:33:09 -0700 Subject: [PATCH] Use non-deprecated Husky config --- README.md | 6 +++--- package.json | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b995d5e..74d15d5 100644 --- a/README.md +++ b/README.md @@ -142,9 +142,9 @@ callee to respond to the specified action type. If this is undesirable, see the ## Installation -For this library to be useful, you will need -[typescript-fsa](https://github.com/aikoven/typescript-fsa) as well to define -your actions. +For this library to be useful, you will also need +[typescript-fsa](https://github.com/aikoven/typescript-fsa) to define your +actions. With Yarn: ``` diff --git a/package.json b/package.json index 2267e4e..3ebcdda 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,14 @@ "jest": "jest", "lint-file": "tslint", "lint": "tslint --project .", - "precommit": "lint-staged", "prepublishOnly": "yarn run test && yarn run build", "test": "yarn run lint && tsc && yarn run jest" }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, "lint-staged": { "**/*.{js,json}": [ "yarn run format-file",