Ccodemod-com-bot

react-sort-comp

Reorder React component methods to match eslint-plugin-react sort-comp rule

React
Public
0 executions
Run locally
npx codemod react-sort-comp
Documentation

react-sort-comp

Reorder React component members to match the react/sort-comp rule across createClass components and class components.

Usage

bash

Options

  • methodsOrder: ordered list of method groups and names used for sorting. Defaults to the built-in React sort order used by this package.
  • explicit-require: when false, run even if no React import/require is present. Default: true.

Ready to contribute?

Build your own codemod and share it with the community.