A Claude Code slash command for auto-fixing linting issues across the codebase.
# 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/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
- Detects linting tools (ESLint, Prettier, Ruff, etc.)
- Runs linters with auto-fix enabled
- Reports fixed and remaining issues
- Optionally commits the fixes
| Language | Linters |
|---|---|
| JavaScript/TypeScript | ESLint, Prettier, Biome |
| Python | Ruff, Black, isort |
| Go | golangci-lint, gofmt |
| Rust | rustfmt, clippy |
| CSS/SCSS | Stylelint |
| Markdown | markdownlint |
Lint Fix Complete
Fixed Issues:
| Linter | Fixed | Remaining |
| --------- | ----- | --------- |
| ESLint | 52 | 12 |
| Prettier | 18 | 0 |
Files Modified: 23
| Option | Description |
|---|---|
--staged |
Only lint staged files |
--check |
Report without fixing |
--type |
File type filter |
--fix-unsafe |
Include unsafe fixes |
--commit |
Commit fixes automatically |
- Linting tools installed (ESLint, Prettier, etc.)
- Claude Code with Opus 4.5 model access
cd <clone-path>/command-lint-fix && git pull