fix-lint

Diagnose and resolve ESLint errors persisting after automated fixing.

2|Updated Aug 18, 2025
One-click install
npx skills add https://github.com/ESO-Toolkit/eso-toolkit --skill fix-lint-eso-toolkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-lint
Source: https://github.com/ESO-Toolkit/eso-toolkit/tree/main/.github/skills/fix-lint
Command: npx skills add https://github.com/ESO-Toolkit/eso-toolkit --skill fix-lint-eso-toolkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses and resolves common linting errors in code that are not automatically fixed by standard tooling, ensuring code quality and consistency.

Core Features & Use Cases

  • Diagnose and Fix ESLint Errors: Targets specific, recurring linting issues like floating promises, unsafe any types, console statements, unused variables, and import order problems.
  • Manual Intervention Guidance: Provides clear examples and solutions for linting errors that require manual code adjustments.
  • Use Case: When npm run lint reports errors even after running npm run lint:fix, this skill guides you through the manual steps needed to resolve them, preventing CI failures and maintaining code standards.

Quick Start

Run npm run lint:fix to automatically resolve most linting issues.

Frequently Asked Questions about fix-lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix ESLint errors that remain after running eslint --fix?

To fix ESLint errors remaining after automated fixing, you need manual code adjustments targeting specific patterns like floating promises, unsafe any types, and unused variables. This process provides targeted solutions and code examples for each persistent linting issue.

How do I resolve floating promise errors in TypeScript ESLint?

To resolve floating promise errors in TypeScript ESLint, you must manually add await keywords or .catch() handlers to asynchronous calls. This ensures promise rejections are properly handled and satisfies the linting rule requirements.

What is the best way to handle unsafe any type violations in React code?

Handling unsafe any type violations in React code requires replacing any with proper type definitions or using type guards. When types cannot be resolved, adding justified ESLint disable comments with clear explanations is the recommended approach.

Why does npm run lint still report errors after auto-fix?

Npm run lint still reports errors after auto-fix because standard tooling cannot automatically correct patterns like floating promises, console statements, and import order violations. These issues require manual intervention to modify the code structure and resolve the underlying problems.

When should I use ESLint disable comments in TypeScript codebases?

You should use ESLint disable comments in TypeScript codebases when manual code adjustments cannot resolve specific linting errors. Each disable comment requires a clear justification explaining why the rule is bypassed to maintain code quality standards.

Can I automate fixing import order violations in React projects?

Automating import order violations in React projects is partially possible with standard fixing tools, but persistent errors require manual reordering of import statements. This ensures imports follow the configured ESLint rules and maintain consistent code organization.