Skip to content

anti-slop rungs 4+5 — no-unknown-returns and no-chained-type-assertions at error #1330

Description

@radandevist

Rungs 4 and 5 of the anti-slop ladder (#1160): enable anti-slop/no-unknown-returns and anti-slop/no-chained-type-assertions at error repo-wide and fix every baseline violation (73 + 126 sites measured 2026-08-24 with the rule-only config-copy method) without suppressions — named return types instead of leaking unknown; assertion chains replaced by real narrowing (type guards, Object.assign(new Error…), ts-morph Node.isX guards, faithful route mocks).

Acceptance: both rules at error in .oxlintrc.json; pnpm lint 0 errors repo-wide at the PR tip (including sites added to develop after the baseline); no oxlint-disable; full front test + typecheck green; PR body records before/after counts and a probe proving the plugin fires.

Part of #1160.

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