fix
Automated code formatting and linting to resolve style issues before CI checks.
- Runs Prettier for code formatting and linc for lint validation in sequence
- Identifies remaining manual fixes needed after automated corrections
- Prevents CI failures by catching formatting and lint errors before commit
Fix Lint and Formatting
Instructions
- Run
yarn prettierto fix formatting - Run
yarn lincto check for remaining lint issues - Report any remaining manual fixes needed
Common Mistakes
- Running prettier on wrong files -
yarn prettieronly formats changed files - Ignoring linc errors - These will fail CI, fix them before committing
More from facebook/react
extract-errors
Use when adding new error messages to React, or seeing "unknown error code" warnings.
958verify
Use when you want to validate changes before committing, or when you need to check all React contribution requirements.
886test
Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.
883feature-flags
Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
846flow
Use when you need to run Flow type checking, or when seeing Flow type errors in React code.
826flags
Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.
783