react-codemod
react-codemod copied to clipboard
React codemod scripts
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.3 to 4.16.6. Changelog Sourced from browserslist's changelog. 4.16.6 Fixed npm-shrinkwrap.json support in --update-db (by Geoff Newman). 4.16.5 Fixed unsafe RegExp (by Yeting Li). 4.16.4 Fixed unsafe...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 Commits 8d4b369 chore(release): 2.8.9 29adfe5 fix: backport...
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....
I tried to run `update-react-imports` on our codebase https://github.com/firefox-devtools/profiler/ (commit hash e8a3afd45a8125de9c37c546f6b50c8004f122e7), and got the following error on several files: ``` Error: did not recognize object of type "PropertyDefinition" at...
This would avoid issues like https://github.com/reactjs/react-codemod/issues/249
This PR implements a following "selectors" from **react/sort-comp** [rule](https://github.com/airbnb/javascript/blob/eslint-config-airbnb-v19.0.4/packages/eslint-config-airbnb/rules/react.js#L243-L256): - static-variables - static-methods - instance-variables - getters - setters - instance-methods Also it fixes an issues of sorting, I covered...
Fixes #283. Previously running update-react-imports against ```tsx import React from 'react'; const App: React.FunctionComponent = ({ message }) => (); ``` produced the following output: ```tsx import * as React...
We're considering creating our own React codemods, and it seems like a lot of the legwork you've done in this repo would be useful to build off of, would it...