Skip to content
Back to skills

Eslint Fix

ASecurity

TypeScript/ESLint error fix guide, helps AI quickly locate and fix common lint errors, prioritizing auto-fix commands for formatting issues.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
toolstypescriptgobash

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill eslint-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Eslint Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Eslint Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-eslint-fix/badge)](https://www.skillsdirectory.com/skills/majiayu000-eslint-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: eslint-fix
description: TypeScript/ESLint error fix guide, helps AI quickly locate and fix common lint errors, prioritizing auto-fix commands for formatting issues.
---

## Fix Workflow

### Step 1: Run Lint Command

Before manual fixes, **MUST run project lint command first**:

```bash
pnpm lint
```

These issues are auto-fixed, **no manual action needed**:
- Import order
- Code formatting
- Whitespace/indentation
- Trailing commas

### Step 2: Manually Fix Remaining Errors

## Common Fix Rules

### undefined Replacement

Use `void 0` instead of `undefined`:

```typescript
// bad
const value = undefined

// good
const value = void 0
```

### No End-of-Line Comments

Comments MUST be above statements, **absolutely forbidden** at line end:

```typescript
// bad
const name = 'test' // this is name

// good
// this is name
const name = 'test'
```

### Nullish Coalescing

Prefer `??` over `||`:

```typescript
// bad
const value = input || 'default'

// good
const value = input ?? 'default'
```

## Config Files

**Do NOT modify** `eslint.config.js` or `eslint.config.ts` unless necessary.

If config issues arise, only suggest modifications to user, do not edit config files directly.

## Error Troubleshooting Priority

1. Run `pnpm lint` for auto-fix
2. Check if above rules are violated
3. Read specific error messages to locate issues
4. If config adjustment needed, suggest user to modify manually

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.