Fix one important lint or static analysis warning
Fixes one high-priority lint or static analysis warning with targeted fixes and verification.
/plugin marketplace add teliha/dev-workflows/plugin install dev-workflows@dev-workflowsFix one important lint or static analysis warning with proper prioritization.
This command uses the Lint Fix Expert skill for targeted fixes.
/fix-lint
The skill automatically:
| Priority | Type | Examples |
|---|---|---|
| 1 | Security | Unsafe operations, injection risks |
| 2 | Correctness | Type errors, logic bugs |
| 3 | Performance | Inefficient loops, allocations |
| 4 | Quality | Unused code, deprecated APIs |
| 5 | Style | Formatting, naming |
| Project | Linter | Command |
|---|---|---|
| TypeScript/JS | ESLint | npm run lint |
| Next.js | ESLint | npm run lint |
| Rust | Clippy | cargo clippy |
| Solidity | Forge/Solhint | forge fmt |
## Lint Fix Summary
### Warning Fixed
**Rule**: @typescript-eslint/no-unused-vars
**File**: `src/utils.ts:42`
### Fix Applied
```diff
- const x = getValue();
+ const _x = getValue();
## Integration with CI/CD
```yaml
name: Fix Lint
on:
workflow_dispatch:
jobs:
fix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: /fix-lint