mirror of
https://github.com/hanzoai/mcp-server-cloudflare.git
synced 2026-10-30 18:28:06 +00:00
27 lines
383 B
Bash
Executable File
27 lines
383 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
args=(
|
|
--cache
|
|
--cache-strategy content
|
|
--cache-location ./node_modules/.cache/eslint
|
|
--max-warnings 1000
|
|
.
|
|
)
|
|
|
|
if [[ ! -z "${FIX_ESLINT:-}" ]]; then
|
|
args+=("--fix")
|
|
fi
|
|
|
|
if [[ ! -z "${GITHUB_ACTIONS:-}" ]]; then
|
|
args+=("--max-warnings=0")
|
|
fi
|
|
|
|
# get additional args
|
|
while [[ $# -gt 0 ]]; do
|
|
args+=("$1")
|
|
shift
|
|
done
|
|
|
|
eslint "${args[@]}"
|