add husky and update todo

This commit is contained in:
Reid 2023-08-21 00:04:28 -07:00
parent 2414ae1189
commit 212642c3ab
4 changed files with 12 additions and 0 deletions

4
.husky/pre-commit Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn run lint

View file

@ -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": {

View file

@ -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

View file

@ -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"