teqo/scripts
Francisco Ignácio Fontoura Solla 0e4e6855dc Add the tooling gate: knip, CI, zero-warning lint, as-never ban
- knip (files/deps at error level; unused exports ledgered as warn) with
  config for Payload/Next entries; deleted the dead modules it confirmed:
  RecentlyVisited + UpcomingActionPlansCard + actionPlanUpcomingPreview,
  lazy-dialog helpers, tseZone, federalCandidateTotalsAggregate (test-only),
  unused ui kit files, one-shot rename script; pruned unused radix deps and
  typescript-eslint; added pg/@types/pg (pinned to drizzle's 8.10.2)
- GitHub Actions CI on the mirror: lint, typecheck, knip, unit, migrate, int
  against a Postgres 17 service
- eslint: unused-vars with ^_ ignore patterns (migrations args exempt),
  repo-wide ban on `as never` (no-restricted-syntax), lint gate at
  --max-warnings=0; fixed all 54 pre-existing warnings (dead imports,
  hooks deps, tracking-pixel img disable with impeccable config exception)
- tsconfig: include consolidated from 219 lines to 5 (wildcard covers all
  .next dist variants), noUnusedLocals on
- typed replacements for every as-never: hookFilledCreateData (actions
  create data completed by collection hooks), drizzle scopeColumn narrowing,
  tests' stub<T> helper (property-level checking kept, completeness waived)
- test infra: leased-consent generalization used by onda0 spec (shared
  leases over the stable consent keys; window race ledgered), purge fix
- docs: IMPROVE-CODE-QUALITY-PLAN.md tracker, TECH-DEBT.md ledger,
  TESTING.md safety-net map (package.json also gains the Phase 2
  build:election-aggregates script entry; the script lands next commit)
2026-07-23 23:06:12 -03:00
..
consent-texts Restore full roadmap detail and align project documentation. 2026-07-19 16:19:36 -03:00
assert-local-database.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
build-bahia-demographics.mjs Add the tooling gate: knip, CI, zero-warning lint, as-never ban 2026-07-23 23:06:12 -03:00
build-bahia-geometries.mjs Add static Bahia municipality and territory geometries for the campaign map. 2026-07-18 22:07:41 -03:00
build-bahia-tse-city-codes.mjs Deliver A7 Fase 2 cityCode TSE geography filters and absorb simplify debts. 2026-07-19 22:48:08 -03:00
db-pull.mjs Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
generate-remodel-municipalities-migration.mjs Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
guard-dev-db.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
regenerate-municipality-catalog-snapshot.mjs Remodel the campaign vertical from Praça to Município 2026-07-23 21:36:20 -03:00
seed-consent.mjs Add allowlisted global cache revalidation for Onda 0 F1. 2026-07-19 22:21:16 -03:00
seed-loader.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
seed-posts.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
seed-tse-results.mjs Add E2 TSE 2014/2018 vote series and historical trend insights. 2026-07-19 05:09:43 -03:00