{
 "kind": "tool",
 "slug": "eslint",
 "path": "tools/eslint/",
 "name": "ESLint",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Linting and formatting",
   "tools/lint-format/"
  ]
 ],
 "lead": "Find and fix problems in JavaScript code.",
 "chips": [
  {
   "label": "Linting and formatting",
   "path": "tools/lint-format/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install eslint"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/eslint/eslint"
  },
  {
   "label": "Website",
   "href": "https://eslint.org"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy",
   "note": "MIT allows use in paid and closed-source projects.",
   "src": "https://github.com/eslint/eslint/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 13, 2026. ",
   "src": "https://github.com/eslint/eslint"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2,282 projects",
   "status": "info",
   "sub": "#1 of 83 in its category",
   "note": "Dependency in 2,282 public GitHub projects set up for AI coding agents that we scanned (36.5%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What ESLint does",
   "parts": [
    {
     "t": "prose",
     "text": "ESLint is a free tool that reads JavaScript code and points out likely bugs, such as a misspelled variable or code that never runs. It can fix many simple problems by itself. You or your AI assistant run it before saving or shipping code, so mistakes are caught early."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Catch typos before users do",
       "text": "A misspelled variable or a value that is never used gets flagged with its line number before the code reaches your site.",
       "idea": false
      },
      {
       "title": "Fix simple problems automatically",
       "text": "Before a commit, ESLint rewrites what it safely can, like var into let, and lists only what still needs a person.",
       "idea": false
      },
      {
       "title": "Set the house rules once",
       "text": "One settings file in the project turns on the recommended checks and tells ESLint the code runs in a browser, so everyone gets the same warnings.",
       "idea": false
      },
      {
       "title": "Check code typed in a browser",
       "text": "A code playground or lesson page checks what the visitor types right in the page, with no server involved.",
       "idea": false
      },
      {
       "title": "Let an AI assistant run it",
       "text": "ESLint ships a helper server that coding assistants in editors such as VS Code or Cursor can call to check and fix files.",
       "idea": false
      },
      {
       "title": "Gate AI-written code in review",
       "text": "Run ESLint on every change an AI assistant proposes and send the messages back to it until the list is empty.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "ESLint popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "87",
       "of": "/ 100",
       "l": "Gid Score, #22 overall"
      },
      {
       "n": "216M",
       "l": "downloads a week, npm"
      },
      {
       "n": "27.6K",
       "l": "GitHub stars"
      },
      {
       "n": "2,282",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How ESLint is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "ESLint is a dependency in 2,282 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (46.9% of the 4,867 JavaScript/TypeScript ones), #1 of 83 in linting and formatting.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 8,629; those are left out of every share on this page.",
      "The most used alternative in our scan is Biome (354 projects).",
      "Projects that use it most often also use TypeScript (89.9%), Tailwind CSS (64.5%), React (64.3%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "1,217 projects, 37.1%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "1,149 projects, 37.9%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "1,030 projects, 42.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "208 projects, 43.9%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "199 projects, 42.4%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "136 projects, 39.7%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "131 projects, 47.0%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "49 projects, 35.0%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 89.9% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 64.5% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 64.3% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 45.8% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 40.9% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 42.0% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 41.3% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 40.1% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "ESLint in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Every rule is a plugin",
       "v": "The README calls ESLint \"completely pluggable\". It says every single rule is a plugin and that you can add more at runtime."
      },
      {
       "l": "Fixes edit syntax, not text",
       "v": "The site says ESLint's automatic fixes are \"syntax-aware\". It contrasts them with \"traditional find-and-replace algorithms\" and says they avoid the errors those introduce."
      },
      {
       "l": "Warnings leave the exit code alone",
       "v": "Each rule can be off, a warning or an error. The README says warnings don't affect the exit code and errors set it to 1, and calls the three levels \"fine-grained control\" over how rules apply."
      },
      {
       "l": "Semver spelled out for lint results",
       "v": "The README lists which changes go in a patch, minor or major release. Patch releases are \"intended to not break your lint build\". An update to <code>eslint:recommended</code> that may add new errors is reserved for a major release."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Empty config, empty report",
       "v": "Installing ESLint alone checks nothing. You must extend a shared config such as <code>js/recommended</code> or turn rules on yourself."
      },
      {
       "l": "Minor versions can add errors",
       "v": "Under ESLint's semver policy, a minor release can report more problems than the last one, for example after a bug fix. The README recommends pinning the version with a tilde (<code>~</code>) in <code>package.json</code>."
      },
      {
       "l": "JSX parsing is not React support",
       "v": "ESLint parses JSX once you enable it in configuration, but it does not understand React's semantics. The README points React users to <code>eslint-plugin-react</code>."
      }
     ]
    },
    {
     "t": "h3",
     "text": "A flat config with two rules"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Js",
       "code": "import { defineConfig } from \"eslint/config\";\n\nexport default defineConfig([\n\t{\n\t\tfiles: [\"**/*.js\", \"**/*.cjs\", \"**/*.mjs\"],\n\t\trules: {\n\t\t\t\"prefer-const\": \"warn\",\n\t\t\t\"no-constant-binary-expression\": \"error\",\n\t\t},\n\t},\n]);"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about ESLint",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/eslint",
        "Open Collective: https://opencollective.com/eslint",
        "Own page: https://eslint.org/donate",
        "67 GitHub sponsors"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "ESLint vs Biome",
         "note": "used together in 44 projects",
         "path": "tools/compare/eslint-vs-biome/"
        },
        {
         "text": "ESLint vs oxlint",
         "note": "used together in 41 projects",
         "path": "tools/compare/eslint-vs-oxlint/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "eslint-config-next: Next.js lint config",
        "@eslint/js: Core JS rule configs",
        "eslint-plugin-react-hooks: React Hooks rules",
        "globals: Global variable sets",
        "typescript-eslint: TypeScript parser and rules",
        "eslint-plugin-react-refresh: React Refresh export rules"
       ]
      },
      {
       "title": "More in Linting and formatting",
       "path": "tools/lint-format/",
       "items": [
        {
         "text": "Prettier",
         "path": "tools/prettier/"
        },
        {
         "text": "oxfmt",
         "path": "tools/oxfmt/"
        },
        {
         "text": "Knip",
         "path": "tools/knip/"
        },
        {
         "text": "stylelint",
         "path": "tools/stylelint/"
        },
        {
         "text": "ESLint Import Resolver TypeScript",
         "path": "tools/eslint-import-resolver-typescript/"
        },
        {
         "text": "oxlint-tsgolint",
         "path": "tools/oxlint-tsgolint/"
        },
        {
         "text": "Black",
         "path": "tools/black/"
        },
        {
         "text": "svelte-check",
         "path": "tools/svelte-check/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "ESLint",
       "me": true,
       "facts": [
        "MIT",
        "Gid 87",
        "216M/wk"
       ]
      },
      {
       "name": "oxlint",
       "why": "Pick oxlint when lint speed on a large codebase matters more than ESLint's plugin ecosystem; it works with zero config.",
       "path": "tools/oxlint/",
       "facts": [
        "MIT",
        "Gid 83",
        "54.2M/wk"
       ]
      },
      {
       "name": "Biome",
       "why": "Pick Biome when you want one fast tool for both linting and formatting instead of ESLint plus Prettier.",
       "path": "tools/biomejs/",
       "facts": [
        "MIT OR Apache-2.0",
        "Gid 82",
        "30.3M/wk"
       ]
      },
      {
       "name": "Ruff",
       "why": "Pick Ruff when the code to check is Python, not JavaScript.",
       "path": "tools/ruff/",
       "facts": []
      }
     ],
     "more": "Compare ESLint with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Add ESLint 10 (pin eslint@10.14.0 and @eslint/js@10.0.1, Node.js 20.19+) with an eslint.config.js that extends js/recommended and sets languageOptions.globals for our runtime; run npx eslint --fix . and fix what remains."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Check Node.js first: ESLint 10 needs ^20.19.0, ^22.13.0 or 24 and newer. Then let the setup command write a config file.",
       "code": "npm init @eslint/config@latest",
       "src": "https://github.com/eslint/eslint/blob/main/README.md"
      },
      {
       "text": "Run it on a file or a folder.",
       "code": "npx eslint yourfile.js",
       "src": "https://eslint.org/docs/latest/use/getting-started"
      },
      {
       "text": "Let it fix what it safely can; the rest stays in the report.",
       "code": "npx eslint --fix .",
       "src": "https://eslint.org/docs/latest/use/command-line-interface"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## ESLint\n- Put configuration in `eslint.config.js` (or `eslint.config.mjs`) and wrap the exported array in `defineConfig` from `eslint/config`.\n- Extend `js/recommended` from `@eslint/js` or turn rules on explicitly. With neither, ESLint lints nothing.\n- Use `\"warn\"` for rules that must not fail the run and `\"error\"` for rules that should set exit code 1.\n- Follow the README's recommendation: pin `eslint` in `package.json` with a tilde (`~`) at the installed version, because minor releases may report more errors.\n- Install ESLint, plugins and shareable configs locally as dev dependencies. Do not rely on a global install.\n- Under pnpm, add `auto-install-peers=true` and `node-linker=hoisted` to `.npmrc`.\n- For React semantics, add `eslint-plugin-react`. JSX parsing alone does not cover React.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Writing .eslintrc.json or .eslintrc.js with env, extends and plugins as strings",
       "fix": "eslint.config.js with defineConfig([...]) from \"eslint/config\"",
       "why": "ESLint 10 no longer reads the old format; in our run a config object with an env key failed with 'This appears to be in eslintrc format rather than flat config format.'"
      },
      {
       "dont": "/* eslint-env browser, node */ comments at the top of files",
       "fix": "languageOptions: { globals: { ...globals.browser, ...globals.node } } in eslint.config.js",
       "why": "Since 10.0 these comments are errors, not settings."
      },
      {
       "dont": "Running core ESLint on .ts files and expecting it to work",
       "fix": "Add typescript-eslint (its parser and configs) to eslint.config.js",
       "why": "The default parser handles plain JavaScript; our run on 'let a: number = 1' gave 'Parsing error: Unexpected token :'."
      },
      {
       "dont": "Silencing 'window is not defined' or 'process is not defined' by turning off no-undef",
       "fix": "Declare the runtime's globals (globals.browser or globals.node) in languageOptions",
       "why": "no-undef is what caught the real typo (totl) in our demo; turning it off hides such bugs."
      },
      {
       "dont": "Using ESLint style rules to format code next to Prettier",
       "fix": "Let Prettier format and ESLint find problems; keep formatting rules out of the ESLint config",
       "why": "They have different jobs, and overlapping rules fight each other."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Does ESLint replace Prettier?",
       "a": "No. ESLint looks for problem patterns; Prettier formats code. Many projects use both.",
       "evidence": {
        "url": "https://github.com/eslint/eslint/blob/main/README.md",
        "quote": "No, ESLint and Prettier have different jobs: ESLint is a linter (looking for problematic patterns) and Prettier is a code formatter."
       }
      },
      {
       "q": "Can it fix everything it reports?",
       "a": "No. --fix applies only the fixes rules provide; the rest stays in the report for a person.",
       "evidence": {
        "url": "https://eslint.org/docs/latest/use/command-line-interface",
        "quote": "Not all problems are fixable using this option"
       }
      },
      {
       "q": "Does it understand JSX?",
       "a": "It parses JSX once you enable it in the config; React-specific checks need a React plugin.",
       "evidence": {
        "url": "https://github.com/eslint/eslint/blob/main/README.md",
        "quote": "Yes, ESLint natively supports parsing JSX syntax (this must be enabled in configuration)."
       }
      },
      {
       "q": "Why are node_modules not checked?",
       "a": "node_modules and .git are ignored by default; you can un-ignore folders in the config.",
       "evidence": {
        "url": "https://eslint.org/docs/latest/use/configure/ignore",
        "quote": "This pattern is added after the default patterns, which are [\"**/node_modules/\", \".git/\"]"
       }
      },
      {
       "q": "Can I use it in the browser?",
       "a": "The ESLint class needs the file system, so it runs in Node.js only; the Linter class works in a browser bundle.",
       "evidence": {
        "url": "https://eslint.org/docs/latest/integrate/nodejs-api",
        "quote": "This class depends on the Node.js fs module and the file system, so you cannot use it in browsers."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm eslint"
  ],
  [
   "Category",
   "Linting and formatting"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v10.12.0, October 2, 2026"
  ],
  [
   "On GitHub since",
   "June 2013"
  ],
  [
   "Gid Score",
   "86.6"
  ],
  [
   "Rank in category",
   "#1 of 83"
  ],
  [
   "GitHub",
   "eslint/eslint"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "ESLint 10 runs on Node.js 20.19 or newer (also 22.13+ and 24+). On an older Node, stay on ESLint 9.",
  "Version 10 dropped the old .eslintrc settings files; only eslint.config.js and its variants work now.",
  "Out of the box it checks plain JavaScript only. TypeScript and React need extra parsers or plugins."
 ],
 "checked_line": "Read by AgentGid from 15 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/eslint.png"
}