aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorAhmed Tarek <ahmed.tokyo1@gmail.com>2021-07-29 20:06:12 +0200
committerGitHub <noreply@github.com>2021-07-29 11:06:12 -0700
commit0bac86b0a7cca056da83065e7fb2982b35b1cb02 (patch)
tree62c3f0a7782abb45f1204a02e0033696a29cbf31 /package.json
parent28b39bd026d1c13150856d84170fe6127288e104 (diff)
🔨 add husky precommit to auto run prettier (#128)
* :sparkles: add husky precommit to auto run prettier * yarn
Diffstat (limited to 'package.json')
-rw-r--r--package.json12
1 files changed, 7 insertions, 5 deletions
diff --git a/package.json b/package.json
index d043ec8..17a1a93 100644
--- a/package.json
+++ b/package.json
@@ -14,11 +14,16 @@
14 "react-i18next": "^11.11.2", 14 "react-i18next": "^11.11.2",
15 "react-scripts": "^4.0.1" 15 "react-scripts": "^4.0.1"
16 }, 16 },
17 "devDependencies": {
18 "prettier": "2.3.2",
19 "husky": "^7.0.0"
20 },
17 "scripts": { 21 "scripts": {
18 "start": "react-scripts start", 22 "start": "react-scripts start",
19 "build": "react-scripts build", 23 "build": "react-scripts build",
20 "test": "react-scripts test", 24 "test": "react-scripts test",
21 "eject": "react-scripts eject" 25 "eject": "react-scripts eject",
26 "prepare": "husky install"
22 }, 27 },
23 "eslintConfig": { 28 "eslintConfig": {
24 "extends": "react-app" 29 "extends": "react-app"
@@ -38,8 +43,5 @@
38 "main": "index.js", 43 "main": "index.js",
39 "repository": "git@github.com:bndw/wifi-card.git", 44 "repository": "git@github.com:bndw/wifi-card.git",
40 "author": "bndw <ben@bdw.to>", 45 "author": "bndw <ben@bdw.to>",
41 "license": "MIT", 46 "license": "MIT"
42 "devDependencies": {
43 "prettier": "2.3.2"
44 }
45} 47}