JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Feature: Add an ': any' type annotation cleanup before type error suppression

Open
#1,234 1 comment 0 reactions 1 assignee Claimed by @JoshuaKGoldberg View on GitHub
area: fixers status: accepting prs type: enhancement
Dominant language
TypeScript
Stars
2.3k
Forks
47
Avg merge
15h 55m
Merged PRs (30d)
21

Description

### 🚀 Feature Request

#1233 added post-fix cleaner support, with a single `suppressTypeErrors` cleaner for `// @ts-expect-error` comment directives. But those should really be a last-ditch cleaner applied after less severe cleanups, such as adding `: any` annotations. Let's add that in!

A note: https://github.com/airbnb/ts-migrate adds `: any`s. I'd like to see how they do things there (their general strategy).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.