Skip to content

lint: re-apply safe any→unknown codemod against current main (−101)#52

Closed
adm01-debug wants to merge 1 commit into
mainfrom
claude/lint-any-in-generics
Closed

lint: re-apply safe any→unknown codemod against current main (−101)#52
adm01-debug wants to merge 1 commit into
mainfrom
claude/lint-any-in-generics

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

Summary

R6.1 — re-applies PR #38's safe any → unknown codemod against current main. 109 transforms across 69 files. Idempotent with PR #38 (if both merge, the second is a no-op).

Pattern Count
[key: string]: any 9
useState<any> 5
as any 24
Record<string, any> 32
Map<K, any> 2
: any[] 37
Total 109

Validation

Metric Before After
no-explicit-any 273 172 (−101)
tsc --noEmit
npm run test 90 baseline 90 (same)

Why a duplicate of #38

Each PR in this session is independent against main. PR #38 is still in flight; landing this means the cleanup happens regardless of which lands first. Git auto-resolves the overlap (identical content).

https://claude.ai/code/session_01KWeDG


Generated by Claude Code

…101)

This is the same set of mechanical patterns as PR #38, re-applied
against current main since #38 hasn't merged yet. If both PRs land
the merge is a no-op (identical resolved state).

## Patterns applied

  index-signature        9    [key: string]: any → unknown
  useState-generic       5    useState<any> → useState<unknown>
  as-any                 24   as any → as unknown
  record-string-any      32   Record<string, any> → Record<string, unknown>
  map-value-any          2    Map<K, any> → Map<K, unknown>
  any-array-annotation   37   : any[] → : unknown[]

  TOTAL                  109 transforms across 69 files

## Validation

  no-explicit-any  273 → 172 violations (−101)
  tsc --noEmit     exit 0
  tests            no regressions (90 baseline failures)
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c65a9a7d-05a0-4f3c-aa33-643084f4a294

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/lint-any-in-generics

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants