From 0bac86b0a7cca056da83065e7fb2982b35b1cb02 Mon Sep 17 00:00:00 2001 From: Ahmed Tarek Date: Thu, 29 Jul 2021 20:06:12 +0200 Subject: 🔨 add husky precommit to auto run prettier (#128) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :sparkles: add husky precommit to auto run prettier * yarn --- package.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index d043ec8..17a1a93 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,16 @@ "react-i18next": "^11.11.2", "react-scripts": "^4.0.1" }, + "devDependencies": { + "prettier": "2.3.2", + "husky": "^7.0.0" + }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "prepare": "husky install" }, "eslintConfig": { "extends": "react-app" @@ -38,8 +43,5 @@ "main": "index.js", "repository": "git@github.com:bndw/wifi-card.git", "author": "bndw ", - "license": "MIT", - "devDependencies": { - "prettier": "2.3.2" - } + "license": "MIT" } -- cgit v1.2.3