Skip to content

VBC-057: use-any

warning

Category: core
Analysis: Regex (line by line)
File types: .ts, .tsx, .astro
Scope: source code only, ignoring anything inside strings and comments
Tags: typescript

What it reports

Avoid using 'any' type at line {line}. Use a more specific type or 'unknown'.

Flagged

ts
function parse(input: any) { return input; }

Not flagged

ts
function parse(input: unknown) { return input; }

Pattern

regex
:\s*any\b

Released under the MIT License.