---
name: block-linter-config-frontend
enabled: true
event: file
action: block
conditions:
  - field: file_path
    operator: regex_match
    pattern: ^client/(?!node_modules/).*(?:\.?eslint(?:rc|\.config).*|\.?prettier(?:rc|\.config).*|biome\.json|tsconfig\.json|\.?rustfmt\.toml|\.?clippy\.toml)$
---

🚫 **BLOCKED: Frontend Linter Configuration Edit Attempt**

You are attempting to edit a frontend linter/formatter configuration file in `client/`.

**Protected TypeScript/JavaScript files:**
- `eslint.config.js` / `.eslintrc*`
- `.prettierrc*` / `prettier.config.*`
- `biome.json`
- `tsconfig.json`

**Protected Rust files:**
- `.rustfmt.toml` / `rustfmt.toml`
- `.clippy.toml` / `clippy.toml`

**Why this is blocked:**
Frontend linter and formatter configurations are carefully tuned for this project. Changes require explicit user approval.

**If you need to modify linter settings:**
1. Ask the user for explicit permission
2. Explain what change is needed and why
3. Wait for approval before proceeding
