From b0a8a14efe002ecee1db02ce4342472f01fde4f9 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 5 Aug 2025 09:53:03 +0200 Subject: [PATCH] cleanup: remove infrastructure files from feature branch - Remove check-lint.sh script (belongs in claude branch) - Remove CLAUDE.md and other infrastructure files - Keep feature branch focused on localStorage fixes only --- scripts/check-lint.sh | 50 ------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100755 scripts/check-lint.sh diff --git a/scripts/check-lint.sh b/scripts/check-lint.sh deleted file mode 100755 index 3007da93..00000000 --- a/scripts/check-lint.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -# Claude Code Hook: Pre-PR Lint Check -# This script runs linting checks on both app and lib before PR operations - -set -e # Exit on any error - -echo "🔍 Running lint checks before PR operation..." - -# Colors for output -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -NC='\033[0m' # No Color - -LINT_FAILED=0 - -# Check if we're in the utopia-map directory -if [[ ! -f "tsconfig.base.json" ]]; then - echo -e "${RED}❌ Error: Must be run from utopia-map root directory${NC}" - exit 1 -fi - -echo -e "${YELLOW}📋 Checking app linting...${NC}" -cd app -if npm run test:lint:eslint; then - echo -e "${GREEN}✅ App linting passed${NC}" -else - echo -e "${RED}❌ App linting failed${NC}" - LINT_FAILED=1 -fi -cd .. - -echo -e "${YELLOW}📋 Checking lib linting...${NC}" -cd lib -if npm run test:lint:eslint; then - echo -e "${GREEN}✅ Lib linting passed${NC}" -else - echo -e "${RED}❌ Lib linting failed${NC}" - LINT_FAILED=1 -fi -cd .. - -if [[ $LINT_FAILED -eq 1 ]]; then - echo -e "${RED}❌ Lint checks failed. Please fix linting errors before creating/updating PR.${NC}" - echo -e "${YELLOW}💡 Tip: Run 'npm run lintfix' in the failing directory to auto-fix some issues.${NC}" - exit 1 -else - echo -e "${GREEN}🎉 All lint checks passed! Ready for PR operation.${NC}" -fi \ No newline at end of file