Any-Hunter: Open-Source CLI Tool Audits TypeScript Type Health with a 0–100 Score
Developer Jacob Palomo has released Any-Hunter, a zero-dependency CLI tool, programmatic API, and GitHub Action designed to combat 'type erosion' in TypeScript projects. The tool scans a repository's Abstract Syntax Tree to detect unsafe patterns such as 'as any' casts, '@ts-ignore' suppressions, and unvalidated JSON.parse calls. It calculates a Type-Health Score from 0 to 100, applying weighted penalties based on how broadly a type violation contaminates surrounding code. Teams can enforce a minimum score threshold directly in CI/CD pipelines, and the tool supports SARIF output for GitHub's Security Code Scanning tab. Any-Hunter is available on GitHub under the MIT license and can be initialized in any project via npx any-hunter --init.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in