vtcode 0.136.5

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
id: no-any
language: TypeScript
severity: warning
message: Avoid the `any` type; use `unknown` or specific types instead.
note: |
  The `any` type disables TypeScript's type checking and defeats the
  purpose of using TypeScript. Use `unknown` for values with unknown
  type, or define proper types/interfaces. `any` is acceptable during
  migration or when interfacing with untyped third-party libraries.
rule:
  any:
    - pattern: "function $NAME($A: any): $B { $$$ }"
    - pattern: "const $NAME = ($A: any): $B => { $$$ }"
    - pattern: "const $NAME: any = $$$"
files:
  - "**/*.ts"
  - "**/*.tsx"
  - "!**/*.d.ts"
  - "!**/examples/**"