about summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-07-13 15:35:05 -0700
committerEric Bailey <git@esb.lol>2023-07-13 15:35:56 -0700
commitc83573bf972a60b6606645ec9cca3a7c41212189 (patch)
treea150011381bcd21c4de5aeb43d95ad17f9e53525 /package.json
parent3bd891b01aecdd8f2c7d5d833d735cb5ba6f5cba (diff)
downloadvoidsky-c83573bf972a60b6606645ec9cca3a7c41212189.tar.zst
set up lint-staged via husky
(cherry picked from commit 98151fafbd9b248fce62f013cecd3d20d4d17006)
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/package.json b/package.json
index 7337912d6..86bb8283b 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
   "version": "1.41.0",
   "private": true,
   "scripts": {
+    "prepare": "husky install",
     "postinstall": "patch-package",
     "prebuild": "expo prebuild",
     "android": "expo run:android",
@@ -176,9 +177,11 @@
     "eslint-plugin-detox": "^1.0.0",
     "eslint-plugin-ft-flow": "^2.0.3",
     "html-webpack-plugin": "^5.5.0",
+    "husky": "^8.0.3",
     "jest": "^29.4.3",
     "jest-expo": "^48.0.2",
     "jest-junit": "^15.0.0",
+    "lint-staged": "^13.2.3",
     "metro-react-native-babel-preset": "^0.73.7",
     "prettier": "^2.8.3",
     "react-native-dotenv": "^3.3.1",
@@ -239,5 +242,8 @@
       "last 1 firefox version",
       "last 1 safari version"
     ]
+  },
+  "lint-staged": {
+    "*": "yarn eslint --ext .js,.jsx,.ts,.tsx --fix"
   }
 }