WS-3 PR-C: doc-state reckoning + apps/portal sweep #7

Merged
bert.hausmans merged 7 commits from chore/ws-3-pr-c-doc-cleanup into main 2026-05-06 02:35:46 +02:00
Showing only changes of commit 2c4d2257ae - Show all commits

View File

@@ -12,18 +12,14 @@ if [[ "$path" = /* ]]; then
rel="${path#$CLAUDE_PROJECT_DIR/}"
fi
# Match apps/app/** or apps/portal/** for .vue/.ts/.tsx/.js files.
if ! echo "$rel" | grep -Eq '^apps/(app|portal)/.+\.(vue|ts|tsx|js)$'; then
# Match apps/app/** for .vue/.ts/.tsx/.js files.
if ! echo "$rel" | grep -Eq '^apps/app/.+\.(vue|ts|tsx|js)$'; then
exit 0
fi
# Extract SPA dir and the path relative to it.
spa="$(echo "$rel" | grep -oE '^apps/(app|portal)')"
inside="${rel#$spa/}"
# Path inside apps/app/.
inside="${rel#apps/app/}"
# SPA may not exist yet (apps/portal/ is planned but not present in tree).
[ -d "$CLAUDE_PROJECT_DIR/$spa" ] || exit 0
cd "$CLAUDE_PROJECT_DIR/$spa" 2>/dev/null || exit 0
cd "$CLAUDE_PROJECT_DIR/apps/app" 2>/dev/null || exit 0
pnpm eslint --fix "$inside" >/dev/null 2>&1 || true
exit 0
exit 0