Files
noteflow/.claude/hookify.block-biome-ignore.local.md

1.5 KiB

name, enabled, event, action, conditions
name enabled event action conditions
block-biome-ignore true file block
field operator pattern
file_path regex_match .(js|jsx|ts|tsx|mjs|cjs)$
field operator pattern
new_text regex_match //\s*biome-ignore|//\s*@ts-ignore|//\s*@ts-expect-error|//\s*@ts-nocheck|//\s*eslint-disable|/*\s*eslint-disable

🚫 BLOCKED: Type/Lint Suppression Comment Detected

You are attempting to add a lint or type suppression comment to a JavaScript/TypeScript file.

Detected suppression patterns:

  • // biome-ignore - Biome linter suppression
  • // @ts-ignore - TypeScript error suppression
  • // @ts-expect-error - TypeScript expected error suppression
  • // @ts-nocheck - Disables TypeScript checking for entire file
  • // eslint-disable - ESLint rule suppression
  • /* eslint-disable */ - ESLint block suppression

Why this is blocked: Type and lint suppressions hide problems rather than fixing them. They accumulate as technical debt and mask real issues.

What you MUST do instead:

  1. Fix the root cause - Properly type your code or fix the lint violation
  2. Refactor if needed - If the type system can't express your intent, restructure the code
  3. Use proper typing - Add explicit type annotations, type guards, or type assertions
  4. Ask for help - If genuinely stuck, ask the user for guidance on the correct approach

Remember: A clean codebase has zero suppression comments. Every suppression is a bug waiting to happen.