eslint

ESLint JavaScript linter with plugins. Use for code quality.

7 stars

Best use case

eslint is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

ESLint JavaScript linter with plugins. Use for code quality.

Teams using eslint should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/eslint/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/tools/eslint/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/eslint/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How eslint Compares

Feature / AgenteslintStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

ESLint JavaScript linter with plugins. Use for code quality.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# ESLint

ESLint is the standard linter for JS/TS. v9 (2024/2025) moved to **Flat Config** (`eslint.config.js`), a major breaking change that simplifies configuration.

## When to Use

- **Enforcing Rules**: `no-unused-vars`, `react-hooks/rules-of-hooks`.
- **Code Quality**: Catching bugs before they run.

## Core Concepts

### Flat Config (`eslint.config.js`)

An array of objects. No more `extends` string hell.

```js
export default [js.configs.recommended, { rules: { semi: "error" } }];
```

### Plugins

NPM packages that add rules. `eslint-plugin-react`.

### Parsers

`@typescript-eslint/parser` allows ESLint to understand TS.

## Best Practices (2025)

**Do**:

- **Use Flat Config**: Use the new format.
- **Use `typescript-eslint`**: The typed linting rules are powerful (e.g. `no-floating-promises`).

**Don't**:

- **Don't configure formatting rules**: Disable all formatting rules (use Prettier or Biome for that). use `eslint-config-prettier`.

## References

- [ESLint Documentation](https://eslint.org/)