Closed
Bug 1426901
Opened 6 years ago
Closed 5 years ago
Use react-codemod to remove deprecations/switch to JSX best practices
Categories
(Tree Management :: Treeherder: Frontend, enhancement, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: emorley, Unassigned)
References
Details
The react-codemod project has a number of jscodeshift transforms for converting deprecated code to newer patterns and performing best-practice cleanup: https://github.com/reactjs/react-codemod Whilst none of the transforms seem needed for our switch to React 16, there are still some of the best practices transforms (eg manual-bind-to-arrow, pure-component, ...) that will be worth running through.
Reporter | ||
Comment 1•6 years ago
|
||
Other non-react codemods that look interesting: https://github.com/cpojer/js-codemod https://github.com/5to6/5to6-codemod
Reporter | ||
Comment 2•6 years ago
|
||
Also: https://github.com/lebab/lebab
Updated•5 years ago
|
Priority: P2 → P3
Reporter | ||
Comment 3•5 years ago
|
||
Many of these have already been applied in other bugs.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•