From dceaf5938cc9d148d1737fff3ddb1c6ab762234c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 19 May 2021 11:11:08 +0530 Subject: Added husky pre-commit hook to run linter --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 85a2082..6fc32a1 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "node-gyp": "^8.0" }, "scripts": { + "prepare": "husky install", "start": "node server.js", "test": "node ace test", "lint": "eslint --quiet --fix ./" @@ -53,7 +54,8 @@ "eslint-plugin-import": "^2.20.2", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.19.0", - "eslint-plugin-react-hooks": "^1.7.0" + "eslint-plugin-react-hooks": "^1.7.0", + "husky": "^6.0.0" }, "autoload": { "App": "./app" -- cgit v1.2.3-54-g00ecf