Skip to content

Enable TypeScript no-explicit-any ESLint rule across the codebase #220

Description

@robertocarlous

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

  1. Re-enable the rule in eslint.config.mjs
  2. Run npx eslint src/ --rule '{"@typescript-eslint/no-explicit-any": "error"}' to enumerate violations
  3. 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
  4. Do NOT use // eslint-disable-next-line as a workaround

Acceptance Criteria

  • Rule enabled at error level in eslint.config.mjs
  • npm run lint passes with zero any violations
  • No eslint-disable comments introduced to suppress the rule

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions