mit einem Klick
fix-lint-errors
// Fix lint errors by removing unused variables and imports rather than prefixing with underscore. Use when lint errors are reported, when fixing compilation issues, or when the user asks to fix lint errors.
// Fix lint errors by removing unused variables and imports rather than prefixing with underscore. Use when lint errors are reported, when fixing compilation issues, or when the user asks to fix lint errors.
Understand Apex language rules, ANTLR grammar structure, and how to implement parser listeners for language server features. Use when working on Apex parser implementation, creating validators, implementing listeners, or referencing parser grammar rules.
Explains the one-way sync from .claude/ to .cursor/ that keeps Cursor users unblocked while .claude/ is the source of truth. Read when editing any mapped file, when wondering why a .cursor/ file changed, or when adding a new file that needs mirroring.
Delegate to the doc-maintenance subagent when code/config/scripts change to catch code→doc drift. Use after editing TS/TSX, package.json, esbuild config, scripts, .vscodeignore, .vscode, tsconfig, or GitHub workflow files.
Enforces Effect-TS patterns for services, errors, layers, and atoms. Use when writing code with Effect.Service, Schema.TaggedError, Layer composition, or effect-atom React components.
Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body. Use when drafting PRs, PR titles, PR descriptions, opening PRs, or Git2Gus workflows.
TypeScript coding standards and conventions including file naming rules
| name | fix-lint-errors |
| description | Fix lint errors by removing unused variables and imports rather than prefixing with underscore. Use when lint errors are reported, when fixing compilation issues, or when the user asks to fix lint errors. |
When fixing lint errors, remove unused code rather than suppressing it. The first specific hint from the linter should guide the fix.
Rule: Remove unused variables. Do not prefix them with _ to suppress the warning.
Example - Correct:
// Before (lint error: 'unusedVariable' is defined but never used)
function processData(data: string) {
const unusedVariable = 'test';
return data.toUpperCase();
}
// After (removed unused variable)
function processData(data: string) {
return data.toUpperCase();
}
Example - Incorrect:
// ❌ Don't do this - don't prefix with underscore
function processData(data: string) {
const _unusedVariable = 'test'; // Wrong approach
return data.toUpperCase();
}
Remove unused imports completely rather than leaving them in the code.
Example:
// Before (lint error: 'unusedFunction' is imported but never used)
import { usedFunction, unusedFunction } from './utils';
// After (removed unused import)
import { usedFunction } from './utils';
_ or adding ignore commentsnpm run lint to confirm the error is resolvedIf a parameter is truly unused, remove it:
// Before
function handler(event: Event, unusedParam: string) {
return event.type;
}
// After
function handler(event: Event) {
return event.type;
}
Remove unused destructured variables:
// Before
const { used, unused } = getData();
// After
const { used } = getData();
Only use suppression patterns (_ prefix or ignore comments) when:
In all other cases, remove the unused code.