Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

ESLint

Find and fix problems in JavaScript code.

Linting and formattingNPM

GitHubWebsite

1. License

“Permission is hereby granted, free of charge, to any person obtaining a copy”

MIT allows use in paid and closed-source projects.

github.com/eslint/eslint/blob/main/LICENSE

From the package registry and GitHub, checked daily; card checked Nov 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What ESLint does

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.

What people build with it

Catch typos before users do

A misspelled variable or a value that is never used gets flagged with its line number before the code reaches your site.

Fix simple problems automatically

Before a commit, ESLint rewrites what it safely can, like var into let, and lists only what still needs a person.

Set the house rules once

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.

Check code typed in a browser

A code playground or lesson page checks what the visitor types right in the page, with no server involved.

Let an AI assistant run it

ESLint ships a helper server that coding assistants in editors such as VS Code or Cursor can call to check and fix files.

Gate AI-written code in review Idea

Run ESLint on every change an AI assistant proposes and send the messages back to it until the list is empty.

ESLint popularity

87 / 100
Gid Score, #22 overall
216M
downloads a week, npm
27.6K
GitHub stars
2,282
agent projects use it
ESLint: downloads per weeknpm, eslint 216,187,244
ESLint: GitHub starseslint/eslint 27,647

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How ESLint is used

  • 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%).

By coding agent

1,217 projects, 37.1%
1,149 projects, 37.9%
1,030 projects, 42.2%
208 projects, 43.9%
199 projects, 42.4%
136 projects, 39.7%
131 projects, 47.0%
49 projects, 35.0%

Often used with

In 89.9% of its projects
In 64.5% of its projects
In 64.3% of its projects
In 45.8% of its projects
In 40.9% of its projects
In 42.0% of its projects
In 41.3% of its projects
In 40.1% of its projects

ESLint in practice

Strengths

Every rule is a plugin

The README calls ESLint "completely pluggable". It says every single rule is a plugin and that you can add more at runtime.

Fixes edit syntax, not text

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.

Warnings leave the exit code alone

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.

Semver spelled out for lint results

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.

Watch out for

Empty config, empty report

Installing ESLint alone checks nothing. You must extend a shared config such as <code>js/recommended</code> or turn rules on yourself.

Minor versions can add errors

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

JSX parsing is not React support

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

A flat config with two rules

import { defineConfig } from "eslint/config";

export default defineConfig([
	{
		files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
		rules: {
			"prefer-const": "warn",
			"no-constant-binary-expression": "error",
		},
	},
]);

More about ESLint

Funding
  • GitHub Sponsors: https://github.com/eslint
  • Open Collective: https://opencollective.com/eslint
  • Own page: https://eslint.org/donate
  • 67 GitHub sponsors

See all

Head to head
Packages around it
  • 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
More in Linting and formatting

Alternatives

ESLint This page

MITGid 87216M/wk

oxlint

Pick oxlint when lint speed on a large codebase matters more than ESLint's plugin ecosystem; it works with zero config.

MITGid 8354.2M/wk

Biome

Pick Biome when you want one fast tool for both linting and formatting instead of ESLint plus Prettier.

MIT OR Apache-2.0Gid 8230.3M/wk

Ruff

Pick Ruff when the code to check is Python, not JavaScript.

Compare ESLint with another tool

Get started

Tell your AI assistant

“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.”

  1. 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.

    npm init @eslint/config@latest

    From github.com/eslint/eslint/blob/main/README.md

  2. Run it on a file or a folder.

    npx eslint yourfile.js

    From eslint.org/docs/latest/use/getting-started

  3. Let it fix what it safely can; the rest stays in the report.

    npx eslint --fix .

    From eslint.org/docs/latest/use/command-line-interface

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## ESLint
- Put configuration in `eslint.config.js` (or `eslint.config.mjs`) and wrap the exported array in `defineConfig` from `eslint/config`.
- Extend `js/recommended` from `@eslint/js` or turn rules on explicitly. With neither, ESLint lints nothing.
- Use `"warn"` for rules that must not fail the run and `"error"` for rules that should set exit code 1.
- Follow the README's recommendation: pin `eslint` in `package.json` with a tilde (`~`) at the installed version, because minor releases may report more errors.
- Install ESLint, plugins and shareable configs locally as dev dependencies. Do not rely on a global install.
- Under pnpm, add `auto-install-peers=true` and `node-linker=hoisted` to `.npmrc`.
- For React semantics, add `eslint-plugin-react`. JSX parsing alone does not cover React.

Mistakes to avoid

Writing .eslintrc.json or .eslintrc.js with env, extends and plugins as strings
eslint.config.js with defineConfig([...]) from "eslint/config"

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.'

/* eslint-env browser, node */ comments at the top of files
languageOptions: { globals: { ...globals.browser, ...globals.node } } in eslint.config.js

Since 10.0 these comments are errors, not settings.

Running core ESLint on .ts files and expecting it to work
Add typescript-eslint (its parser and configs) to eslint.config.js

The default parser handles plain JavaScript; our run on 'let a: number = 1' gave 'Parsing error: Unexpected token :'.

Silencing 'window is not defined' or 'process is not defined' by turning off no-undef
Declare the runtime's globals (globals.browser or globals.node) in languageOptions

no-undef is what caught the real typo (totl) in our demo; turning it off hides such bugs.

Using ESLint style rules to format code next to Prettier
Let Prettier format and ESLint find problems; keep formatting rules out of the ESLint config

They have different jobs, and overlapping rules fight each other.

Questions

Does ESLint replace Prettier?

No. ESLint looks for problem patterns; Prettier formats code. Many projects use both.

Can it fix everything it reports?

No. --fix applies only the fixes rules provide; the rest stays in the report for a person.

Does it understand JSX?

It parses JSX once you enable it in the config; React-specific checks need a React plugin.

Why are node_modules not checked?

node_modules and .git are ignored by default; you can un-ignore folders in the config.

Can I use it in the browser?

The ESLint class needs the file system, so it runs in Node.js only; the Linter class works in a browser bundle.