Loading...
Loading...
Cross-language linter autofix commands and common fix patterns for biome, ruff, clippy, shellcheck, and more.
npx skill4agent add laurigates/claude-plugins linter-autofix| Language | Linter | Autofix Command |
|---|---|---|
| TypeScript/JS | biome | |
| TypeScript/JS | biome format | |
| Python | ruff | |
| Python | ruff format | |
| Rust | clippy | |
| Rust | rustfmt | |
| Go | gofmt | |
| Go | go mod | |
| Shell | shellcheck | No autofix (manual only) |
// Before
import { useState, useEffect, useMemo } from 'react';
// Only useState used
// After
import { useState } from 'react';// Before
let x = 5; // Never reassigned
// After
const x = 5;# Before
import os
from typing import List
import sys
# After
import os
import sys
from typing import List# Before
import os
import sys # unused
# After
import os# Before
result = some_function(very_long_argument_one, very_long_argument_two, very_long_argument_three)
# After
result = some_function(
very_long_argument_one,
very_long_argument_two,
very_long_argument_three,
)// Before
let s = String::from("hello").clone();
// After
let s = String::from("hello");// Before
match option {
Some(x) => do_something(x),
None => {},
}
// After
if let Some(x) = option {
do_something(x);
}# Before
echo $variable
# After
echo "$variable"# Before
result=`command`
# After
result=$(command)# Fix mode: detect linters and apply all autofixes
bash "${CLAUDE_PLUGIN_ROOT}/skills/linter-autofix/scripts/detect-and-fix.sh"
# Check-only mode: report issues without fixing
bash "${CLAUDE_PLUGIN_ROOT}/skills/linter-autofix/scripts/detect-and-fix.sh" --check-onlyruff check --fix . && ruff format .ruff check .