fix

Run yarn prettier and yarn linc to fix linting and formatting issues.

247k|51.2k|Updated May 24, 2013
One-click install
npx skills add https://github.com/facebook/react --skill fix-facebook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/facebook/react/tree/main/.claude/skills/fix
Command: npx skills add https://github.com/facebook/react --skill fix-facebook

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid failed CI builds by automatically addressing lint errors and formatting issues before you commit code.

Core Features & Use Cases

  • Automatic linting and formatting: Run yarn prettier and yarn linc to fix issues and prepare code for commit.
  • CI-ready code: Reduces manual review time by ensuring code adheres to project style and standards.
  • Pre-commit workflow: Integrates into local workflows to catch problems early.

Quick Start

Use the fix skill to clean up your current project by running yarn prettier and yarn linc before committing.

Frequently Asked Questions about fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix linting and formatting errors before a commit?

To automatically fix linting and formatting errors before a commit, run yarn prettier and yarn linc to format files, report issues, and guide manual fixes for CI-ready code.

Why does my JavaScript code fail CI pipelines due to style issues?

JavaScript code fails CI pipelines due to style issues when formatting does not adhere to project standards; running automatic linting via yarn prettier resolves these inconsistencies before submission.

Can I use yarn prettier and yarn linc for TypeScript projects?

Yes, you can use yarn prettier and yarn linc for TypeScript projects to apply automatic linting and formatting fixes across your codebase during local development and CI workflows.

What is the best way to run pre-commit checks for formatting and linting?

The best way to run pre-commit checks for formatting and linting is integrating an automated skill that executes yarn prettier and yarn linc to catch problems early and ensure CI-ready code.

Does automatic linting fully fix all CI build failures?

Automatic linting does not fully fix all CI build failures; while yarn prettier formats files and yarn linc reports issues, certain complex errors still require manual fixes to pass CI.