code_formatter

Automates Prettier/ESLint formatting and linting via Husky git hooks before commits.

43|11|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/vuralserhat86/antigravity-agentic-skills --skill code-formatter-vuralserhat86
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code_formatter
Source: https://github.com/vuralserhat86/antigravity-agentic-skills/tree/main/skills/code_formatter
Command: npx skills add https://github.com/vuralserhat86/antigravity-agentic-skills --skill code-formatter-vuralserhat86

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates code formatting and enforces consistent coding styles across your projects, reducing manual effort and preventing style-related merge conflicts.

Core Features & Use Cases

  • Automated Formatting: Applies Prettier rules to format code automatically.
  • Linting: Integrates ESLint to catch errors and enforce code quality.
  • Commit Hooks: Uses Husky and lint-staged to ensure code is formatted and linted before committing.
  • Use Case: Integrate this skill into your development workflow to maintain a clean and uniform codebase, especially when working in a team.

Quick Start

Run the command to format all TypeScript and JavaScript files in the src directory.

Frequently Asked Questions about code_formatter

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

FAQPage Schema
How do I automate code formatting and linting before Git commits?

Automating code formatting and linting before Git commits is achieved by integrating Prettier and ESLint with Husky and lint-staged. This setup automatically fixes style violations and linting errors during the commit process.

What's the best way to enforce consistent code style across TypeScript and JavaScript projects?

Enforcing consistent code style across TypeScript and JavaScript projects is best handled by applying predefined Prettier and ESLint rules. This approach automatically formats code and catches errors across various file types including JSON, CSS, and Markdown.

Can I use Husky and lint-staged to run ESLint automatically on staged files?

Yes, you can use Husky and lint-staged to run ESLint automatically on staged files. This integration ensures that predefined code style rules are enforced and automated fixing of linting errors occurs right before committing.

Does Prettier work with ESLint for automated code style fixing?

Prettier works with ESLint to provide automated code style fixing. While Prettier applies consistent formatting rules, ESLint catches code quality errors, ensuring a clean and uniform codebase across your project.

Why do I need Git hooks for code formatting in a team environment?

You need Git hooks for code formatting in a team environment to prevent style-related merge conflicts and reduce manual effort. Hooks enforce predefined rules during the commit process, maintaining codebase uniformity across all contributors.

What file types are supported by automated Prettier and ESLint code formatting?

Automated Prettier and ESLint code formatting supports various file types including TypeScript, JavaScript, JSON, CSS, and Markdown. This ensures comprehensive style consistency across all code and documentation files in your project.