Skip to content

Add no-any-type rule#39

Open
arnavsurve wants to merge 1 commit intomainfrom
rule/no-any-type
Open

Add no-any-type rule#39
arnavsurve wants to merge 1 commit intomainfrom
rule/no-any-type

Conversation

@arnavsurve
Copy link
Contributor

Summary

  • Adds no-any-type rule that flags usage of TypeScript any type
  • Catches any in variable annotations, function parameters, return types, generics, interfaces, and type aliases
  • Severity: warning

Test plan

  • Detects any in variable annotations, parameters, return types, generics
  • Detects multiple any usages in single function
  • Detects any in interfaces and type aliases
  • Allows unknown, specific types, and generics
  • Config modes test updated with new rule count

🤖 Generated with Claude Code

Flags usage of TypeScript "any" type. Encourages using specific types,
"unknown", or generics instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant