ADR-054: Lint and format
Estado
Accepted — 2026-08-23
Contexto
ADR-016 ya fija Makefile. Falta el toolchain JS compartido (IVPrior ADR-041). No hay apps/ aún: este ADR define el contrato del scaffold.
Decisión
packages/eslint-config— ESLint 9 flat:base(TS + Prettier) ynestjs.- Prettier compartido (mismo package).
- TypeScript:
stricten api y web. make check= lint + format:check + typecheck + test (ADR-013, ADR-027).- Husky pre-push (2026-08-28):
scripts/pre-push-gate.sh—typecheck+testsolo si el push tocaapps/opackages/; docs/ops-only se salta. CI +make checksiguen siendo la fuente de verdad. - Editor format-on-save recomendado.
- No mezclar configs por feature. No disable masivo de lint.
lint-staged / pre-commit: amendment si el equipo lo pide.