Skip to main content

Assess, plan, evolve.

Reusable compiler-aware skills that help coding agents understand, plan, and safely evolve your codebase.

16 packages

Sort by
Kkouroshko avatar
class-to-function-component

Transform React class components to modern function components

reacttransformation+4
v0.1.7
kouroshko
465
6 months ago
C
react/replace-react-fc-typescript

This codemod removes `React.FC`, `React.FunctionComponent` and `React.SFC` and replaces the Props as the type of the unique argument in the component definition. This codemod supports: - Inline defined props. - Generics. - Props defined with intersection. - Component modules defined using intersection. - Regular named functions. - Functions that accept a component definition. - Using FC, FunctionComponent and SFC as a named export. ## Before: ```jsx type Props2 = { id: number }; export const MyComponent2: React.FC<Props2> = (props) => { return <span>{props.id}</span> } ``` ## After: ```tsx type Props2 = { id: number }; export const MyComponent2 = (props: Props2) => { return <span>{props.id}</span>; }; ```

reactmigration
v1.0.6
Codemod
393
a year ago
Mmohebifar avatar
react-mui-jss-styles-to-tss-react-hook-migration

Transform React components using Material UI JSS APIs (e.g., makeStyles/withStyles/createStyles) into strongly typed `tss-react` hook-based styling (`makeStyles` from `tss-react/mui`) in TypeScript React codebases, improving maintainability and type safety while modernizing legacy styling patterns.

cross-migrationreact+2
v0.1.0
mohebifar
0
3 months ago
Aalexbit-codemod avatar
react-stable-map-keys

Replace React .map() index-as-key with stable keys (item.id) when verifiable, otherwise add TODO

reactstandardization+2
v0.1.0
alexbit-codemod
1
5 months ago
Aarpit2222 avatar
react-router-v6-to-v7-pro

Professional React Router v6 to v7 migration - 7 transforms, zero false positives

upgradebreaking-change+3
v1.0.0
arpit2222
0
3 months ago
Aarpit2222 avatar
react-router-v6-to-v7-full

Automated codemod to migrate React Router v6 projects to v7. Handles import rewrites, future flags, RouterProvider fix, json/defer removal, fallbackElement migration, and formMethod casing.

upgradebreaking-change+3
v1.0.0
arpit2222
0
3 months ago
Ccodemod avatar
codemod/mine-react-components

Read-only React component inventory for Insights dashboards across JavaScript and TypeScript codebases

reactcomponent-inventory+3
v0.0.1
codemod
2
2 months ago
Mmohebifar avatar
mui-grid-v2-props-migration-react

Automatically rewrite legacy Grid v2 props to the current Material UI Grid API for React projects using `@mui/material/Grid2`, `@mui/system/Grid`, or `@mui/joy/Grid`, including deterministic prop renames/removals and safe JSX cleanup.

transformationmigration+5
v0.1.0
mohebifar
0
3 months ago
Aalexbit-codemod avatar
react-a11y-mining-prime-field-1q5l

Read-only React accessibility mining codemod for Cal.com Insights dashboards.

analysisaccessibility+2
v0.0.1
alexbit-codemod
1
2 months ago
Zzhengxuyu avatar
zhengxuyu/wagmi-v1-to-v2

Migrate wagmi React hooks from v1 to v2

transformationmigration+5
v0.1.0
zhengxuyu
0
3 months ago
C
react-router/4/move-hoc-to-global-scope

Moves HOC calls to the global scope ## Example ### Before ```ts <Router history={browserHistory}> <Switch> <Route path='/' render={(props) => ( <Route exact path='/a' component={HOC(PageComponent)} /> )} /> </Switch> </Router>; ``` ### After ```ts const HOCPageComponent = HOC(PageComponent); <Router history={browserHistory}> <Switch> <Route path='/' render={(props) => ( <Route exact path='/a' component={HOCPageComponent} /> )} /> </Switch> </Router>; ```

reactreact router+1
v1.0.2
Codemod
0
11 months ago
Aalexbit-codemod avatar
render-boundary-read-miner

Detect expensive cross-boundary reads inside React render paths

code-miningreact+1
v0.1.3
alexbit-codemod
0
2 months ago

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.