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/LICENSE3. Used by agents' projects
Dependency in 2,282 public GitHub projects set up for AI coding agents that we scanned (36.5%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
Often used with
ESLint in practice
Strengths
The README calls ESLint "completely pluggable". It says every single rule is a plugin and that you can add more at runtime.
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.
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.
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
Installing ESLint alone checks nothing. You must extend a shared config such as <code>js/recommended</code> or turn rules on yourself.
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>.
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
Head to head
- ESLint vs Biome used together in 44 projects
- ESLint vs oxlint used together in 41 projects
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
Pick oxlint when lint speed on a large codebase matters more than ESLint's plugin ecosystem; it works with zero config.
Pick Biome when you want one fast tool for both linting and formatting instead of ESLint plus Prettier.
Pick Ruff when the code to check is Python, not JavaScript.
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.”
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@latestLet it fix what it safely can; the rest stays in the report.
npx eslint --fix .
Rules for your agent
## 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
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.'
Since 10.0 these comments are errors, not settings.
The default parser handles plain JavaScript; our run on 'let a: number = 1' gave 'Parsing error: Unexpected token :'.
no-undef is what caught the real typo (totl) in our demo; turning it off hides such bugs.
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.