- Add queue-based matchmaking with Elo-proximity and 10s timeout - Procedural sound engine (SFX, voice announcer, 4-track music) - Sprite system refactored into 6 archetypes (standard, lobster, sheep, cyborg, blob, tank) - 42+ fight choreographies with themed/generic/wild card selection - 4 KO finish styles, super-speed mode, hyperdetail close-ups - Auth routes, JoinBout page, bot profile with stats - 7-tier ranking system (Baby through Legend) - Arena and challenge system expansions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.4 KiB
Markdown
53 lines
1.4 KiB
Markdown
---
|
|
name: lint
|
|
description: Run all linters and type checks for the Archipelago project
|
|
allowed-tools: Bash, Read, Grep
|
|
argument-hint: "[backend|frontend|all]"
|
|
---
|
|
|
|
Run linters and type-checks for $ARGUMENTS (default: all).
|
|
|
|
## Frontend Linting
|
|
|
|
```bash
|
|
cd neode-ui
|
|
|
|
# Type check
|
|
npm run type-check 2>&1
|
|
|
|
# Check for any `any` types (should be zero)
|
|
grep -rn ': any' src/ --include='*.ts' --include='*.vue' | grep -v node_modules | grep -v '.d.ts'
|
|
|
|
# Check for inline Tailwind violations (long class strings)
|
|
grep -rn 'class="[^"]\{100,\}"' src/ --include='*.vue'
|
|
|
|
# Check for TODO/FIXME
|
|
grep -rn 'TODO\|FIXME' src/ --include='*.ts' --include='*.vue'
|
|
|
|
# Check for console.log (should be cleaned before production)
|
|
grep -rn 'console\.\(log\|warn\|error\)' src/ --include='*.ts' --include='*.vue' | wc -l
|
|
```
|
|
|
|
## Backend Linting (on dev server)
|
|
|
|
```bash
|
|
sshpass -p 'EwPDR8q45l0Upx@' ssh -o StrictHostKeyChecking=no archipelago@192.168.1.228 \
|
|
'source ~/.cargo/env && cd ~/archy/core && cargo clippy --all-targets --all-features 2>&1 && cargo fmt --all -- --check 2>&1'
|
|
```
|
|
|
|
## Script Linting
|
|
|
|
```bash
|
|
# Check for scripts missing set -e
|
|
for f in scripts/*.sh; do
|
|
if ! head -5 "$f" | grep -q 'set -e'; then
|
|
echo "MISSING set -e: $f"
|
|
fi
|
|
done
|
|
|
|
# Check for hardcoded IPs (should use variables)
|
|
grep -rn '192\.168\.1\.' scripts/ --include='*.sh' | grep -v deploy-config
|
|
```
|
|
|
|
Report all issues found with severity (critical/warning/info).
|