From 4ca2c809c908a82ec0e3ad8c69d235551eb1bf5d Mon Sep 17 00:00:00 2001 From: imterah Date: Sat, 28 Dec 2024 16:00:37 -0500 Subject: [PATCH] chore: Remove old TypeScript git hooks. --- .gitconfig | 2 -- .githooks/pre-commit | 18 ------------------ 2 files changed, 20 deletions(-) delete mode 100644 .gitconfig delete mode 100755 .githooks/pre-commit diff --git a/.gitconfig b/.gitconfig deleted file mode 100644 index 39e61fd..0000000 --- a/.gitconfig +++ /dev/null @@ -1,2 +0,0 @@ -[core] - hooksPath = .githooks/ \ No newline at end of file diff --git a/.githooks/pre-commit b/.githooks/pre-commit deleted file mode 100755 index ec1c700..0000000 --- a/.githooks/pre-commit +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -shopt -s globstar -set -e - -ROOT="$(git rev-parse --show-toplevel)" - -pushd $ROOT/api -npx eslint src -popd - -pushd $ROOT/lom -npx eslint src -popd - -# Formatting step -$ROOT/api/node_modules/.bin/prettier --ignore-unknown --write $ROOT/{api,lom}/{eslint.config.js,src/**/*.ts} -git update-index --again -exit 0 \ No newline at end of file