Follow-up to #258 / PR #310.
PR #310 enabled @typescript-eslint/no-magic-numbers in cdk/ as advisory warn (~162 baseline hits). CLI and agent baselines were cleaned and the rules are blocking there; CDK was intentionally deferred.
Goal
Clean the CDK magic-number baseline and flip cdk/eslint.config.mjs from 'warn' to 'error' (matching cli/eslint.config.mjs).
Acceptance criteria
Notes
Follow-up to #258 / PR #310.
PR #310 enabled
@typescript-eslint/no-magic-numbersincdk/as advisorywarn(~162 baseline hits). CLI and agent baselines were cleaned and the rules are blocking there; CDK was intentionally deferred.Goal
Clean the CDK magic-number baseline and flip
cdk/eslint.config.mjsfrom'warn'to'error'(matchingcli/eslint.config.mjs).Acceptance criteria
@typescript-eslint/no-magic-numbersviolations incdk/src/**are fixed (promote to named module constants, or tocontracts/constants.jsonwhen values must agree across Python/TypeScript).cdk/eslint.config.mjssets@typescript-eslint/no-magic-numbersto'error'.mise //cdk:eslintexits 0 with 0 warnings/errors for magic numbers.mise run buildgreen end-to-end.Notes
contracts/constants.md§ Lint enforcement for where to put cross-language constants.