fix-lint-errors

Official

Remove unused code to fix lint errors.

Authorforcedotcom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps developers eliminate lint errors caused by unused variables, parameters, and imports by removing the unused code rather than suppressing warnings, improving code clarity and preventing compilation or runtime surprises.

Core Features & Use Cases

  • Remove unused variables: Identify and delete variables that are declared but never referenced to satisfy linter rules.
  • Remove unused imports: Clean up module imports that are not used anywhere in the file to avoid import-related lint warnings.
  • Handle parameters and destructured values: Remove unused function parameters and destructured properties when they are genuinely unnecessary, while preserving required signatures for interfaces and callbacks.
  • Use Case: Apply during development, pre-commit checks, code review, or when addressing compilation issues flagged by a linter in TypeScript or JavaScript projects.

Quick Start

Remove unused variables and imports from the target file as suggested by the linter and run npm run lint to confirm the errors are resolved.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fix-lint-errors
Download link: https://github.com/forcedotcom/apex-language-support/archive/main.zip#fix-lint-errors

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.