Mark a Material UI API that needs a manual migration

Proprietary

Marks every import of the named export of a Material UI package with a message saying how to migrate it, where no mechanical rewrite is safe.

org.openrewrite.react.mui.mark-manual-migration

Required

The export that is imported, such as makeStyles, or * for any import of the package.

What to do, shown in the marker.

Optional

A package that re-exports Material UI.

mod run . --recipe=org.openrewrite.react.mui.mark-manual-migration \ -P importedName=makeStyles \ -P message='Migrate to the `styled` API'

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.