1.3 KiB
1.3 KiB
name, enabled, event, action, pattern
| name | enabled | event | action | pattern |
|---|---|---|---|---|
| block-biome-ignore-bash | true | bash | block | (biome-ignore|@ts-ignore|@ts-expect-error|@ts-nocheck|eslint-disable).*.(js|jsx|ts|tsx|mjs|cjs) |
🚫 BLOCKED: Bash Command Inserting Type/Lint Suppression
You are attempting to use a bash command to insert a lint or type suppression comment into 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 fileeslint-disable- ESLint rule suppression
Why this is blocked: Type and lint suppressions hide problems rather than fixing them. Using bash to circumvent file editing rules is not acceptable.
What you MUST do instead:
- Fix the root cause - Properly type your code or fix the lint violation
- Refactor if needed - If the type system can't express your intent, restructure the code
- Use proper typing - Add explicit type annotations, type guards, or type assertions
- 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.