Skip to content

Enforce maximum lint/clippy strictness across TypeScript and Rust #361

Closed

Description

@joelteply

Goal

All TypeScript and Rust code must pass the highest level of strictness in their respective linting/type-checking tools. This prevents indeterminate behavior from loose types, unused variables, implicit any, and other quality gaps.

TypeScript

  • strict: true in tsconfig (already set)
  • noUnusedLocals, noUnusedParameters — enforce
  • noImplicitAny — zero tolerance
  • noImplicitReturns — enforce
  • Audit all as any casts and eliminate where possible
  • Audit all @ts-ignore / @ts-expect-error and eliminate

Rust

  • #![deny(warnings)] at crate root
  • clippy::pedantic level lint pass
  • #![deny(unused)] — no dead code
  • Zero #[allow(dead_code)] or #[allow(unused)] without justification comment
  • clippy::all + clippy::nursery where feasible

Approach

  • Run as we go, not as a one-shot cleanup
  • Fix strictness violations when touching files
  • CI should enforce (fail on warnings)
  • Incrementally tighten — don't break everything at once

🤖 Generated with Claude Code

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Investigation: ESLint config exists (.eslintrc.json) with no-explicit-any: error, but ESLint 9.39 needs config migration to flat config format (eslint.config.js). The .eslintrc.json may be silently ignored. Also not wired into pre-commit hook.

    Remaining work:

    1. Migrate .eslintrc.json → eslint.config.js (flat config)
    2. Verify ESLint runs clean on all src/ files
    3. Add ESLint step to pre-commit hook (before adversarial tests)
    4. as-any count is at zero (P1A: Type safety — eliminate 831 any casts #333 done) — so rule enforcement won't break anything

    This is dedicated infrastructure work — needs a focused session.

  2. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    ESLint migrated to flat config (PR #437). Rules now enforced by ESLint 9. no-explicit-any: error verified working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions