react-file-formatter

JSON →
library 1.1.12 ·javascript
verified Jun 4, 2026

A CLI tool (v1.1.12, npm, available as a global or npx command) for formatting and standardizing React code files. It reorders hooks, functions, and return statements based on a user-defined JSON config, integrates Prettier for consistent formatting, and supports JSX, TSX, JS, TS files. Differentiates itself by focusing on React-specific code organization (e.g., hook ordering) rather than generic formatting alone. Low maintenance frequency; no recent updates.