Skip to content
youdede

Lint Suppression Guard

DevelopmentHookv1.0.0

Compares bounded source revisions and rejects new ESLint, Python, Go, and IDE suppressions that name no rule and new TypeScript @ts-ignore or @ts-nocheck directives, while allowing directives that name a rule.

Runs on

Scope
$npx @youdede/toolkit add lint-suppression-guard --target claude-code

What it does

Block net-new broad diagnostic suppressions while allowing scoped rule exceptions.

When it fires

  • implementation
  • pre-commit

How it behaves

Block net-new broad diagnostic suppressions while allowing scoped rule exceptions.

It does not decide whether a named diagnostic is correct.

It does not block removal or narrowing of an existing suppression.

It does not govern test skips or focused tests.

Configuration

targets/claude-code/lint-suppression-guard.mjsnode · read-only

Version
1.0.0
Requires
node
Licence
RiskThis automatic gate blocks net-new broad diagnostic suppressions while allowing scoped rule exceptions; a false denial can interrupt legitimate work, but it does not execute the blocked action.
Medium
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Enforces, blocks on violation
On failure
Denies and blocks
LatencyThe entrypoint handles one intercepted event to block net-new broad diagnostic suppressions while allowing scoped rule exceptions without deferred work.
Immediate
Data retentionWhether data remains after use and who manages its storage.
Not retained

Often used with

All in Development