Skip to content

[Story] Turn on the guardrails: strict ESLint, strict tsc and ruff, with a ratchet #33

Done

Description

@aMonteSl

As the maintainer,
I want the linters and the compiler to reject the kind of rot this epic removes,
so that the codebase stays clean after the cleanup instead of decaying again.

Scope (ROADMAP W3, with §E overrides)

  • ESLint: scope the parser block and ignores; the five existing rules become errors with --max-warnings 0; no-explicit-any (warn, N = measured); complexity 15, max-depth 4, max-params 5, max-lines-per-function 80, max-lines 600 (warn); type-aware no-floating-promises / no-misused-promises (warn); lint test/, scripts/, configs and the standalone template runtimes.
  • tsc (in tsconfig.check.json, used by typecheck only): noFallthroughCasesInSwitch, noImplicitReturns, noUnusedParameters with the _ convention; drop DOM from lib only if typecheck is unchanged; checkJs for configs and scripts.
  • Python: ruff config + lint:python.
  • Tests: menu-surface table, "every npm script target exists", every test:* script documented.
  • CI: add lint:python, test:analysis and the VSIX listing check.

Acceptance criteria

  • Each rule lands together with its fallout fixes; the gate is never red between commits.
  • The warning budget (--max-warnings N) is recorded and only goes down afterwards.
  • ruff check backend clean.
  • CI green on Windows, Linux and macOS. Making the jobs required needs a branch-protection change that only the maintainer can do — documented, not done.

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    tfm
    user-story
    on Nov 25, 2026
  3. aMonteSl commented on Nov 25, 2026

    @aMonteSl
    CollaboratorAuthor

    Done in #53, merged into v1.2.1 with CI green on Linux, macOS and Windows. ESLint warning budget recorded at 608 (ratchet only lets it go down), ruff check backend clean, all three OSes now block. Left to the maintainer: marking the seven CI jobs as required in branch protection (list in .claude/docs/v1.2.1/sessions/33-guardrails.md).


    Generated by Claude Code

  4. added
    area: tooling
    stream: cleanup-refactor
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: toolingstream: cleanup-refactortfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions