diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..7e29366 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn pre-commit \ No newline at end of file diff --git a/app/(tabs)/category.tsx b/app/(tabs)/category.tsx index f5c384f..1edb82d 100644 --- a/app/(tabs)/category.tsx +++ b/app/(tabs)/category.tsx @@ -5,6 +5,7 @@ import { Text, ScrollView, TouchableOpacity, StyleSheet } from "react-native"; //TODO: add a notification icon //TODO: add 4 rectangle grid buttons which has options of everyday help, appliance repair, home cleaning, and moving //TODO: add a search bar +//test const category = () => { return ( diff --git a/package.json b/package.json index 3a0c35d..f819ad5 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "type-check": "tsc --pretty --noEmit", "lint": "eslint .", "lint:fix": "eslint . --fix", - "pre-commit": "yarn type-check && yarn format && yarn lint:fix && yarn lint && yarn format-check" + "pre-commit": "yarn type-check && yarn format && yarn lint:fix && yarn lint && yarn format-check", + "prepare": "husky && husky install" }, "jest": { "preset": "jest-expo" @@ -34,6 +35,7 @@ "expo-status-bar": "~1.11.1", "expo-updates": "~0.24.13", "expo-web-browser": "~12.8.2", + "husky": "^9.0.11", "lottie-react-native": "6.5.1", "mime": "^4.0.1", "nativewind": "^2.0.11", @@ -78,7 +80,8 @@ "react-test-renderer": "18.2.0", "tailwindcss": "3.3.2", "ts-node": "^10.9.2", - "typescript": "^5.3.0" + "typescript": "^5.3.0", + "husky": "^8.0.0" }, "overrides": { "react-refresh": "~0.14.0" diff --git a/yarn.lock b/yarn.lock index c72738f..d904cb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7253,6 +7253,11 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +husky@^9.0.11: + version "9.0.11" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9" + integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw== + hyphenate-style-name@^1.0.3: version "1.0.5" resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.5.tgz#70b68605ee601b7142362239a0236159a8b2dc33"