From 212642c3ab9d1b025ef2c77dcd27db10209b1090 Mon Sep 17 00:00:00 2001 From: reidlab Date: Mon, 21 Aug 2023 00:04:28 -0700 Subject: [PATCH] add husky and update todo --- .husky/pre-commit | 4 ++++ package.json | 2 ++ readme.md | 1 + yarn.lock | 5 +++++ 4 files changed, 12 insertions(+) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..99dec5d --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn run lint diff --git a/package.json b/package.json index 707cbd5..ccb6a9f 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "name": "reidlab" }, "scripts": { + "prepare": "husky install", "build": "rbxtsc --rojo default.project.json --verbose && rojo build --output build.rbxl default.project.json", "watch": "rbxtsc -w --rojo default.project.json --verbose", "lint": "eslint src tests --max-warnings 0", @@ -29,6 +30,7 @@ "@typescript-eslint/parser": "^6.2.0", "eslint": "^8.42.0", "eslint-plugin-roblox-ts": "^0.0.35", + "husky": "^8.0.3", "typescript": "^5.1.3" }, "dependencies": { diff --git a/readme.md b/readme.md index 28b9431..bf16200 100644 --- a/readme.md +++ b/readme.md @@ -16,6 +16,7 @@ I should put this in the game sometime, but the option to open the configuration * I decided to omit the "TS" folder from [`./default.project.json:40`](./default.project.json) due to the script override not working in Health.server.ts in StarterCharacterScripts. # Todo +* Commitlint! Shit be ugly af * Investigate why our hotbar only loads _sometimes_ * Maybe swap to our input system in the UI. * Custom player list diff --git a/yarn.lock b/yarn.lock index 5010b83..b963eed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -834,6 +834,11 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" +husky@^8.0.3: + version "8.0.3" + resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" + integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== + ignore@^5.2.0, ignore@^5.2.4: version "5.2.4" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"