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)

enhancement

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.
Other non-react codemods that look interesting:
https://github.com/cpojer/js-codemod
https://github.com/5to6/5to6-codemod
Priority: P2 → P3

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.