eslint

eslint is a skill for Claude Code from el-feo/ai-context. It costs 76 tokens per session (2,421 once invoked), scanned A, original, MIT.

A guide and agent for ESLint, a tool that checks JavaScript and TypeScript code for rule violations and possible mistakes.

In plain words
What is it for?
Use it to configure ESLint, check files or directories, automatically fix supported issues, and integrate linting into development workflows.
Why use it?
It helps set up consistent code checks, find problems, and fix violations instead of relying only on manual review.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the js-ts plugin — 3 skills, 1 command shipped together

Good fit Use it to configure ESLint, check files or directories, automatically fix supported…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/el-feo/ai-context/eslint
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add el-feo/ai-context --skill eslint
Clone the repo
git clone --depth 1 https://github.com/el-feo/ai-context

Made for: Claude Code.

Or install js-ts, the plugin that ships this one along with the rest of its 3 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eslint

README.md
[![agentmods](https://agentmods.dev/badge/skills/el-feo/ai-context/eslint.svg)](https://agentmods.dev/skills/el-feo/ai-context/eslint)
Your own site
<a href="https://agentmods.dev/skills/el-feo/ai-context/eslint"><img src="https://agentmods.dev/badge/skills/el-feo/ai-context/eslint.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,421 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.02421
Opus 5 $0.00038 $0.01210
Sonnet 5 $0.00015 $0.00484
Haiku 4.5 $0.00008 $0.00242

Measured 7d ago against content hash bee335b47fdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

eslint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/eslint.config.examples.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/js-ts/skills/eslint/SKILL.md · 444 lines

How it starts

The opening of the file, as written. The whole thing — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ESLint

Quick Start

Prerequisites

  • Node.js (^18.18.0, ^20.9.0, or >=21.1.0) with SSL support
  • Existing package.json file (run npm init if needed)

Installation & Setup

Automated Setup (Recommended):

npm init @eslint/config@latest

This interactive setup will ask about your project and create an eslint.config.js file.

Manual Setup:

# Install ESLint packages
npm install --save-dev eslint@latest @eslint/js@latest

# Create configuration file
touch eslint.config.js

Basic Configuration

The new flat config format (ESLint 9.0+) uses eslint.config.js:

import { defineConfig } from "eslint/config";
import js from "@eslint/js";

export default defineConfig([
  {
    files: ["**/*.js"],
    plugins: { js },
    extends: ["js/recommended"],
    rules: {
      "no-unused-vars": "warn",
      "no-undef": "warn"
    }
  }
]);

Running ESLint

# Lint a single file
npx eslint yourfile.js

# Lint a directory
npx eslint src/

# Lint with auto-fix
npx eslint src/ --fix

Core ESLint Tasks

1. Setting Up ESLint

For JavaScript Projects
npm init @eslint/config@latest

Select options:

  • How would you like to use ESLint? → To check syntax, find problems, and enforce code style
  • What type of modules? → JavaScript modules (import/export)
  • Which framework? → None/React/Vue (as applicable)
  • Does your project use TypeScript? → No
  • Where does your code run? → Browser and/or Node
  • Config file format → JavaScript/JSON/YAML (JavaScript recommended)
For TypeScript Projects
npm install --save-dev eslint@latest @typescript-eslint/parser @typescript-eslint/eslint-plugin typescript-eslint

Configuration for TypeScript:

import { defineConfig } from 'eslint/config';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default defineConfig(
  eslint.configs.recommended,
  ...tseslint.configs.recommended
);

Read the full file on GitHub · 444 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 444 lines · 76 tokens per session scan A bee335b47fdd

Subscribe to this mod's changes

eslint is a skill published in the GitHub repository el-feo/ai-context (12 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 2,421 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.