Back to 💻 Local Dev Environment

Fix Lint Errors

LintingESLintPrettierQuality
---
description: Automatically fix linting and formatting issues across the project
---

1. **Run ESLint Fix**:
- Attempt to automatically fix all fixable ESLint errors.
// turbo
- Run npm run lint -- --fix

2. **Run Prettier**:
- Format all files in the project to ensure consistent style.
// turbo
- Run npx prettier --write .

3. **Pro Tips**:
- Run this before every commit to keep your codebase clean.
- Configure your editor to 'Format on Save' for real-time feedback.
By Antigravity Team

How to Use This Workflow

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/workflows/
  3. Save the file as fix-eslint-prettier-linting-errors-automatically.md
  4. In Antigravity, type /fix_eslint_prettier_linting_errors_automatically or just describe what you want to do

Learn more about workflows →

Related Workflows

Recommended Rules

View more rules →

Recommended MCP Servers

View more MCP servers →

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide