Skip to content

claude-commands/command-lint-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

command-lint-fix

A Claude Code slash command for auto-fixing linting issues across the codebase.

Installation

# Clone to your preferred location
git clone git@github.com:claude-commands/command-lint-fix.git <clone-path>/command-lint-fix

# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-lint-fix/lint-fix.md ~/.claude/commands/lint-fix.md

Usage

/lint-fix                  # Fix all linting issues in project
/lint-fix src/             # Fix issues in specific directory
/lint-fix --staged         # Fix only staged files
/lint-fix --check          # Check without fixing
/lint-fix --type=ts        # Fix only TypeScript files

What it does

  1. Detects linting tools (ESLint, Prettier, Ruff, etc.)
  2. Runs linters with auto-fix enabled
  3. Reports fixed and remaining issues
  4. Optionally commits the fixes

Supported Linters

Language Linters
JavaScript/TypeScript ESLint, Prettier, Biome
Python Ruff, Black, isort
Go golangci-lint, gofmt
Rust rustfmt, clippy
CSS/SCSS Stylelint
Markdown markdownlint

Output Format

Lint Fix Complete

Fixed Issues:
| Linter    | Fixed | Remaining |
| --------- | ----- | --------- |
| ESLint    | 52    | 12        |
| Prettier  | 18    | 0         |

Files Modified: 23

Options

Option Description
--staged Only lint staged files
--check Report without fixing
--type File type filter
--fix-unsafe Include unsafe fixes
--commit Commit fixes automatically

Requirements

  • Linting tools installed (ESLint, Prettier, etc.)
  • Claude Code with Opus 4.5 model access

Updates

cd <clone-path>/command-lint-fix && git pull

About

Auto-fix linting issues across the codebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published