Use case
Framework
Owner
TypeScript/V5.6/Arrow Function Condition To Binary Expression
Identify cases where an arrow function is mistakenly used instead of a comparison operator (e.g., x => 0 instead of x >= 0) and convert the arrow function expressions to proper comparison operations.
TypeScript/V5.6/Add Test For Regex In Conditional
Add .test() to regex literals in conditionals
E18e Module Replacements Recipe
This recipe has 150+ codemods in this repo: https://github.com/es-tooling/module-replacements-codemods
Msw/2/Upgrade Recipe
NOTE: This codemod is deprecated. Use the new MSW codemod instead: https://go.codemod.com/msw-2-recipe
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Use History Hook
Run this codemod to deprecate
browserHistoryand use history fromuseHistoryhook instead.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Replace Param Prop
Replaces
paramsprop passed by react-router withmatch.params.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Replace Nested Routes
Run this codemod to deprecate nested components through the use of
renderprop of the parent component.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Replace Location Query
This codemod replaces instances of
location.querywithparse(location.search), whereparseis a function imported fromquery-string.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Rename Imports
Replace
react-routerimport source withreact-router-dom.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Index Route
Replace
IndexRoutewithRoutehavingexactprop set totrue.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Hash Router
Run this codemod to replace
RouterusinghashHistorytoHashRouterin v4.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Browser Router
Run this codemod to replace
RouterusingbrowserHistorytoBrowserRouterin v4.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Add Exact Prop
Add
exactprop to all instances ofRoutecomponent.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Native/74/Remove Event Listener Callback
This codemod removes deprecated handler on any calls to
PushNotificationIOS.removeEventListener.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Native/74/Remove Alert Action
This codemod removes references to deprecated
alertAction.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Native/74/Migrate To Fire Interval Seconds
This codemod migrates
PushNotificationIOS.scheduleLocalNotificationdeprecatedrepeatIntervaltofireIntervalSeconds.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community