From aaa9b71054115500ec420bde7d8d417fd241d36a Mon Sep 17 00:00:00 2001 From: copilotcoder Date: Wed, 10 Jun 2026 12:26:36 -0400 Subject: [PATCH] Apply frontend prettier formatting --- .gitea/workflows/cicd-checks.yaml | 2 +- .pre-commit-config.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/cicd-checks.yaml b/.gitea/workflows/cicd-checks.yaml index cb33ab7..721ed7b 100644 --- a/.gitea/workflows/cicd-checks.yaml +++ b/.gitea/workflows/cicd-checks.yaml @@ -153,7 +153,7 @@ jobs: HEAD_SHA: ${{ needs.setup.outputs.head_sha }} HOOK: ${{ matrix.hook }} run: | - docker run --rm --entrypoint /bin/sh "${GITEA_REGISTRY}/darkhelm.org/plex-playlist-cicd:${HEAD_SHA}" -c " + docker run --rm -e CI=true --entrypoint /bin/sh "${GITEA_REGISTRY}/darkhelm.org/plex-playlist-cicd:${HEAD_SHA}" -c " export HOME=/tmp/cicd-home && mkdir -p \"$HOME\" && echo 'running_hook=${HOOK}' && echo 'container_shells=' && ls -l /bin/sh /bin/bash 2>/dev/null || true && diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 900a28c..2946646 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: # ESLint with auto-fix for pre-commit (CI uses --no-fix) - id: eslint name: eslint - entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && if command -v yarn >/dev/null 2>&1; then yarn eslint . --fix; else corepack yarn eslint . --fix; fi' + entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && if command -v yarn >/dev/null 2>&1; then if [ "${CI:-}" = "true" ]; then yarn eslint . --max-warnings=0; else yarn eslint . --fix; fi; else if [ "${CI:-}" = "true" ]; then corepack yarn eslint . --max-warnings=0; else corepack yarn eslint . --fix; fi; fi' language: system files: ^frontend/.*\.(js|ts|vue)$ pass_filenames: false @@ -86,7 +86,7 @@ repos: # Prettier with auto-format for pre-commit (CI uses --check) - id: prettier name: prettier - entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && if command -v yarn >/dev/null 2>&1; then yarn prettier --write src/; else corepack yarn prettier --write src/; fi' + entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && if command -v yarn >/dev/null 2>&1; then if [ "${CI:-}" = "true" ]; then yarn prettier --check src/; else yarn prettier --write src/; fi; else if [ "${CI:-}" = "true" ]; then corepack yarn prettier --check src/; else corepack yarn prettier --write src/; fi; fi' language: system files: ^frontend/.*\.(js|ts|vue|json|css|scss|md)$ pass_filenames: false @@ -102,7 +102,7 @@ repos: # TSDoc linting with auto-fix for pre-commit (CI uses --no-fix) - id: tsdoc-lint name: tsdoc-lint - entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && if command -v yarn >/dev/null 2>&1; then yarn eslint . --ext .ts,.vue --fix; else corepack yarn eslint . --ext .ts,.vue --fix; fi' + entry: bash -c 'export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin:$PATH" && cd frontend && if command -v yarn >/dev/null 2>&1; then if [ "${CI:-}" = "true" ]; then yarn eslint . --ext .ts,.vue --max-warnings=0; else yarn eslint . --ext .ts,.vue --fix; fi; else if [ "${CI:-}" = "true" ]; then corepack yarn eslint . --ext .ts,.vue --max-warnings=0; else corepack yarn eslint . --ext .ts,.vue --fix; fi; fi' language: system files: ^frontend/.*\.(ts|vue)$ pass_filenames: false