Summary
@typescript-eslint/no-explicit-any is currently disabled in eslint.config.mjs. This allows silent type escapes that can mask bugs at the Stellar and agent boundaries.
Plan
- Re-enable the rule in
eslint.config.mjs
- Run
npx eslint src/ --rule '{"@typescript-eslint/no-explicit-any": "error"}' to enumerate violations
- Fix each violation by:
- Introducing a proper type/interface
- Using
unknown + a type guard where the value is truly unknown
- Using
Parameters<typeof fn>[0] to derive types from existing signatures
- Do NOT use
// eslint-disable-next-line as a workaround
Acceptance Criteria
Summary
@typescript-eslint/no-explicit-anyis currently disabled ineslint.config.mjs. This allows silent type escapes that can mask bugs at the Stellar and agent boundaries.Plan
eslint.config.mjsnpx eslint src/ --rule '{"@typescript-eslint/no-explicit-any": "error"}'to enumerate violationsunknown+ a type guard where the value is truly unknownParameters<typeof fn>[0]to derive types from existing signatures// eslint-disable-next-lineas a workaroundAcceptance Criteria
errorlevel ineslint.config.mjsnpm run lintpasses with zeroanyviolationseslint-disablecomments introduced to suppress the rule