eslint-config

eslint-config is a skill for Claude Code, Codex from dallay/agents-skills. It costs 68 tokens per session (1,685 once invoked), scanned A, original, MIT.

A configuration guide for ESLint, a tool that checks JavaScript and TypeScript code for problems and style rules. It covers the modern flat configuration format and TypeScript support.

In plain words
What is it for?
Use it to create or migrate an ESLint setup, configure TypeScript rules and plugins, write custom rules, manage rule severity, and tune linting for large monorepos, which are repositories containing multiple projects.
Why use it?
It helps teams create consistent checks, move away from outdated configuration files, and resolve conflicts between linting tools and plugins.

Skill for Claude CodeCodex

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

Good fit Use it to create or migrate an ESLint setup, configure TypeScript rules and plugins, write custom rules, manage rule severity, and tune linting for large monorepos, which are repositories containing multiple projects.

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

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/dallay/agents-skills/eslint-config/github.svg)](https://agentmods.dev/skills/dallay/agents-skills/eslint-config)
Your own site
<a href="https://agentmods.dev/skills/dallay/agents-skills/eslint-config"><img src="https://agentmods.dev/badge/skills/dallay/agents-skills/eslint-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for eslint-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/dallay/agents-skills/eslint-config"><img src="https://agentmods.dev/badge/skills/dallay/agents-skills/eslint-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,685 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.00068 $0.01685
Opus 5 $0.00034 $0.00843
Sonnet 5 $0.00014 $0.00337
Haiku 4.5 $0.00007 $0.00169

Measured 10d ago against content hash e9e971bfc93a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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.

skills/eslint-config/SKILL.md · 231 lines

How it starts

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

When to Use

  • Setting up ESLint from scratch using the modern flat config format (eslint.config.js).
  • Migrating a project from legacy .eslintrc.* to flat config.
  • Configuring TypeScript-ESLint for strict type-checked linting.
  • Writing custom ESLint rules or shareable config packages.
  • Resolving rule conflicts between ESLint, Prettier, and framework-specific plugins.
  • Optimizing linting performance for large monorepos.

Critical Patterns

  • Flat Config Only: Always use eslint.config.js (or .mjs/.mts). The legacy .eslintrc.* format is deprecated since ESLint v9. Do NOT create new projects with .eslintrc.
  • Explicit Over Implicit: Flat config has no implicit inheritance. Every config object in the array is applied in order — later entries override earlier ones.
  • TypeScript Requires Parser: Always pair @typescript-eslint/parser with @typescript-eslint/eslint-plugin. Use type-checked rules (strictTypeChecked) for maximum safety.
  • Severity Consistency: Use "error" for rules that must block CI, "warn" for progressive adoption, and "off" to explicitly disable inherited rules. Never leave rules ambiguous.
  • Ignore via Config: Use the ignores property in flat config instead of .eslintignore files. Global ignores go in a config object with only the ignores key.
  • Plugin Namespacing: In flat config, plugins are objects, not strings. Import the plugin and assign it to a namespace key to avoid collisions.
  • Performance: Use --cache in CI and locally. For monorepos, scope linting to changed files with --no-error-on-unmatched-pattern.

Code Examples

Modern Flat Config (eslint.config.js)

import js from "@eslint/js";
import tseslint from "typescript-eslint";
import prettier from "eslint-config-prettier";

export default tseslint.config(
  // Global ignores — standalone object with ONLY ignores key
  {
    ignores: ["dist/", "node_modules/", "coverage/", "**/*.generated.*"],
  },

  // Base JS recommended rules
  js.configs.recommended,

  // TypeScript strict + type-checked rules
  ...tseslint.configs.strictTypeChecked,
  ...tseslint.configs.stylisticTypeChecked,

  // TypeScript parser options — applies to all TS files
  {
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },

  // Disable type-checked rules for JS files (config files, scripts)
  {
    files: ["**/*.js", "**/*.mjs"],
    ...tseslint.configs.disableTypeChecked,
  },

  // Project-specific overrides
  {
    files: ["src/**/*.ts"],
    rules: {
      "@typescript-eslint/no-unused-vars": [
        "error",
        { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
      ],
      "@typescript-eslint/explicit-function-return-type": "error",
      "@typescript-eslint/no-floating-promises": "error",
      "@typescript-eslint/strict-boolean-expressions": "warn",
    },
  },

  // Test file relaxations
  {
    files: ["**/*.test.ts", "**/*.spec.ts"],
    rules: {
      "@typescript-eslint/no-explicit-any": "off",
      "@typescript-eslint/no-non-null-assertion": "off",
      "@typescript-eslint/no-unsafe-assignment": "off",
    },
  },

  // Prettier must be LAST to override formatting rules
  prettier,
);

Read the full file on GitHub · 231 lines

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. 10d ago First seen · 231 lines · 68 tokens per session scan A e9e971bfc93a

Subscribe to this mod's changes

eslint-config is a skill published in the GitHub repository dallay/agents-skills (2 stars, last pushed 18d ago), licensed MIT. It adds 68 tokens to every session and 1,685 once invoked, about $0.0003 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

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens