this repo has no description

add husky precommit hook

adryd 1687a059 c075b590

+7 -3
.eslintrc.json
··· 20 20 }, 21 21 "rules": { 22 22 "indent": "off", 23 - "eqeqeq": ["error", "always", { 24 - "null": "ignore" 25 - }], 23 + "eqeqeq": [ 24 + "error", 25 + "always", 26 + { 27 + "null": "ignore" 28 + } 29 + ], 26 30 "quotes": [ 27 31 "error", 28 32 "double",
+4
.husky/pre-commit
··· 1 + #!/usr/bin/env sh 2 + . "$(dirname -- "$0")/_/husky.sh" 3 + 4 + pnpm run check
+1
.prettierignore
··· 1 + pnpm-lock.yml
+4 -1
package.json
··· 16 16 "lint": "eslint packages", 17 17 "lint:fix": "eslint packages", 18 18 "lint:report": "eslint --output-file eslint_report.json --format json packages", 19 - "typecheck": "tsc --noEmit" 19 + "typecheck": "tsc --noEmit", 20 + "check": "pnpm run lint && pnpm run typecheck", 21 + "prepare": "husky install" 20 22 }, 21 23 "devDependencies": { 22 24 "@typescript-eslint/eslint-plugin": "^6.13.2", ··· 27 29 "eslint-config-prettier": "^9.1.0", 28 30 "eslint-plugin-prettier": "^5.0.1", 29 31 "eslint-plugin-react": "^7.33.2", 32 + "husky": "^8.0.3", 30 33 "prettier": "^3.1.0", 31 34 "typescript": "^5.3.2" 32 35 }
+9
pnpm-lock.yaml
··· 32 32 eslint-plugin-react: 33 33 specifier: ^7.33.2 34 34 version: 7.33.2(eslint@8.55.0) 35 + husky: 36 + specifier: ^8.0.3 37 + version: 8.0.3 35 38 prettier: 36 39 specifier: ^3.1.0 37 40 version: 3.1.0 ··· 1390 1393 /human-signals@4.3.1: 1391 1394 resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==} 1392 1395 engines: {node: '>=14.18.0'} 1396 + dev: true 1397 + 1398 + /husky@8.0.3: 1399 + resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} 1400 + engines: {node: '>=14'} 1401 + hasBin: true 1393 1402 dev: true 1394 1403 1395 1404 /ignore@5.3.0: