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
Json Response To Orjson Response
This custom codemod replaces
JSONResponse
withORJSONResponse
to bring consistency to the way we handle JSON responses in our codebase. Besides updating the response class, it also updates the imports to usefrom src.json_encoding import ORJSONResponse
.Remove Iswhitespace
Removes isWhitespace calls and
is-whitespace
imports and replaces them withtrim()
calls.Langchainjs Upgrade To 0 2 X
Short description
Color Token To Hex Object Preset
A preset of two codemods, one for JSON transformations and one for JS/TS.
Color Token To Hex Object Js Ts
In JS/TS files, for tokens of the type 'color' (not other tokens), transform $value into an object with a 'hex' key, where the value remains the same as the previous $value
Before
Color Token To Hex Object Json
In JSON files, for tokens of the type 'color' (not other tokens), transform $value into an object with a 'hex' key, where the value remains the same as the previous $value
Barrel Imports Expansion Ts
Examples