litellm/ui/litellm-dashboard/scripts
ryan-crabbe-berri 270406b8ad
build(pre-commit): regenerate eslint-metrics.json instead of failing on drift (#32717)
The dashboard lint-budgets step ran check-lint-budgets.mjs in --check mode,
which fails and tells you to run `npm run lint:metrics` and re-stage by hand.
Add a --write mode that rewrites eslint-metrics.json from the same eslint
report, and have pre-commit use it, then flag drift via git diff so you
re-stage; this mirrors how the block below regenerates schema.d.ts. CI keeps
using --check, so it still fails on a stale committed metrics file.
2026-07-10 11:51:58 -07:00
..
eslint-rules feat(ui): add eslint rules for nested ternaries, large inline object args, and long condition chains (#32415) 2026-07-08 21:32:16 +00:00
check-lint-budgets.mjs build(pre-commit): regenerate eslint-metrics.json instead of failing on drift (#32717) 2026-07-10 11:51:58 -07:00
gen-api-types.mjs feat(proxy): type Customer Management response_model for OpenAPI coverage (#31043) 2026-06-30 09:58:01 -07:00
generate_compliance_prompts.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
lint-budget-lib.mjs feat(ui): track frontend lint counts in a committed snapshot (#31157) 2026-06-24 11:35:32 -07:00
update-lint-metrics.mjs feat(ui): track frontend lint counts in a committed snapshot (#31157) 2026-06-24 11:35:32 -07:00