chakra-codemod
chakra-codemod copied to clipboard
Codemod transformations to help upgrade to the latest Chakra UI
Todo: - `return mode(...)` in `./alert.ts,input.ts` - variable is used in templatestring (badge.ts,popover.ts,tooltip.ts) - remove unused `props` (closeButton,form,formError,kbd,menu,number-input,progress,skip-link,slider,) - colormode variable is used as a function argument (progress.ts,skeleton.ts) Current result...
`icon={MdFilterList}` -> `icon={}`
Dependencies are currently updated on the first run, but this should happen either as part of the first run of one of the transforms or as a separate "transform".
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....
When updating the dependencies in `package.json` they're added at the end of the `dependencies` key rather than inserted in alphabetical order like `npm install` or `yarn add` would. We should...
`updateDependencies` in `cli.ts` currently writes to `package.json` whether old dependencies need to be removed/new dependencies need to be added or not. Unnecessarily results in `package.json` having an unclean `git` state.
 `[chakra-codemod]: Thank you for using @chakra-ui/codemod!`