eslint-config

eslint-config is a skill for Claude Code, Codex from stephansama/packages. It costs 105 tokens per session (1,320 once invoked), scanned A, original, MIT.

A modular ESLint flat configuration for TypeScript projects. ESLint checks code for errors and style problems, while flat configuration is its newer configuration format.

In plain words
What is it for?
Use it to configure baseline, JavaScript, TypeScript, import, documentation, formatting, package, framework, test, and other supported lint rules.
Why use it?
It provides reusable rule groups and can detect some installed frameworks and tools, reducing the work of assembling a project lint setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure baseline, JavaScript, TypeScript, import, documentation, formatting, package, framework, test, and other supported lint rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stephansama/packages/eslint-config
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 stephansama/packages --skill eslint-config
Clone the repo
git clone --depth 1 https://github.com/stephansama/packages

Made for: Claude Code, Codex.

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-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/stephansama/packages/eslint-config.svg)](https://agentmods.dev/skills/stephansama/packages/eslint-config)
Your own site
<a href="https://agentmods.dev/skills/stephansama/packages/eslint-config"><img src="https://agentmods.dev/badge/skills/stephansama/packages/eslint-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,320 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.00105 $0.01320
Opus 5 $0.00053 $0.00660
Sonnet 5 $0.00021 $0.00264
Haiku 4.5 $0.00011 $0.00132

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

Security

Grade A, and why

eslint-config 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 8d ago.

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.

core/eslint-config/skills/eslint-config/SKILL.md · 192 lines

How it starts

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

eslint-config

Modular ESLint flat config with 25+ composable configs and auto-detection of installed packages. All configs are additive — pass true to enable or pass an options object to configure.

Setup

// eslint.config.js
import { config, presets } from "@stephansama/eslint-config";

export default config({
  ...presets.base,
});

presets.base includes: baseline, command, e18e, ignore, imports, javascript, jsdoc, node, packagejson, perfectionist, pnpm, prettier, regexp, typescript, unicorn.

config() returns Promise<Config[]> — valid as an ESLint v9 async default export.

Core Patterns

Library package configuration

import { config, presets } from "@stephansama/eslint-config";

export default config({
  ...presets.base,
  ...presets.library, // packagejson with isLibrary: true
  vitest: true,
});

Framework-specific config

import { config, presets } from "@stephansama/eslint-config";

export default config({
  ...presets.base,
  astro: true, // auto-enabled if astro is installed
  svelte: true, // auto-enabled if svelte is installed
  vitest: true,
});

Project-specific rule overrides

import { config, presets } from "@stephansama/eslint-config";

export default config({
  ...presets.base,
  overrides: [
    {
      rules: {
        "unicorn/filename-case": "off",
      },
    },
  ],
  overrides_prepend: [
    {
      ignores: ["generated/**"],
    },
  ],
});

overrides is appended at the end. overrides_prepend is inserted at the start.

Disable auto-detection

export default config({
  ...presets.base,
  autoEnable: false, // only activate what you explicitly set
  typescript: true,
  prettier: true,
});

Common Mistakes

HIGH Config function not awaited in downstream tooling

Wrong:

// Some build tools pass the export directly without awaiting
const result = config({ ...presets.base });
// result is a Promise, not Config[] — ESLint v9 handles this but other tools may not

Read the full file on GitHub · 192 lines

Files

What ships with it

1 file 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. 8d ago First seen · 192 lines · 105 tokens per session scan A 19acb7ab4832

Subscribe to this mod's changes

eslint-config is a skill published in the GitHub repository stephansama/packages (5 stars, last pushed 1mo ago), licensed MIT. It adds 105 tokens to every session and 1,320 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

code-review-typescript

Deep TypeScript-specific code review covering type safety, ESM/CJS, async correctness, money precision, and domain modeling. Applied in addition to the generic code-review skill when TypeScript/JavaScript code is detected. Invoked when reviewing TS/JS PRs, TypeScript changes, or performing TypeScript-specific quality…

soulcodex/agentic · 71 tokens

pixi-vn-getting-started

Use when setting up a new or existing project on @drincs/pixi-vn, wiring the main.ts entry point, or calling the top-level Game API (Game.init, Game.start, Game.onEnd, Game.addOnError, Game.onNavigate, Game.clear) — this is the entry point every Pixi'VN project needs before touching canvas, narration, sound, storage…

DRincs-Productions/pixi-vn · 90 tokens

tglider-typescript

Use TGlider for TypeScript and JavaScript semantic navigation, references, diagnostics, dependency topology, impact analysis, and refactoring.

glidermcp/glidermcp.com · 32 tokens

effective-typescript

Review existing TypeScript code and write new TypeScript following the 62 items from "Effective TypeScript" by Dan Vanderkam. Use when writing TypeScript, reviewing TypeScript code, working with type design, avoiding any, managing type declarations, or migrating JavaScript to TypeScript. Trigger on: "TypeScript best…

booklib-ai/booklib · 101 tokens

biome

Biome - Fast all-in-one toolchain for web projects (linter + formatter in Rust, 100x faster than ESLint).

bobmatnyc/claude-mpm-skills · 30 tokens