ESLint

The pluggable JavaScript and TypeScript linter that finds and fixes code problems through a fully customizable, plugin-based rule engine.

Tool
npm
v10.11.0
27,518 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
95 /100 Excellent
Development Activity 100
Maintenance 96
Community 84
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
95 /100 Excellent
Architecture 92
Code Quality 95
Innovation 93
Learning Curve 100

ESLint is the de facto standard for identifying and enforcing code quality patterns in JavaScript and TypeScript projects. It parses source code into an abstract syntax tree using Espree and walks that tree to apply rules, every one of which is itself a plugin, so teams can enable, disable, or write their own without touching ESLint’s core. With flat config (eslint.config.js), rule sets, parsers, and language options are expressed as plain JavaScript arrays and objects rather than the legacy cascading .eslintrc format, making configuration composition explicit and easy to reason about.

With 294 built-in rules covering ESM/CommonJS quirks, unused variables, unreachable code, and stylistic conventions, plus first-class support for custom parsers (TypeScript, Babel) and processors (Markdown, Vue), ESLint underpins the linting layer of nearly every major JavaScript toolchain. Downloaded over 159 million times a week from npm, it’s typically wired into CI, editor integrations, and pre-commit hooks to catch bugs and enforce consistency before code ships.

What You Get

  • 294 built-in core rules spanning correctness, best practices, and stylistic conventions, each independently toggleable and configurable.
  • A flat config system (eslint.config.js) that composes rule sets, parsers, and language options as plain JS, replacing the legacy cascading .eslintrc resolution.
  • A pluggable parser/processor pipeline, so TypeScript, JSX, Vue SFCs, and Markdown code blocks can all be linted through the same CLI and API.
  • An autofix engine (--fix) that safely rewrites source files for any rule that defines a fixer, plus a suggestions mechanism for editor-driven fixes.
  • A public Node.js API (Linter, ESLint classes) for embedding linting in custom tooling, editors, and CI systems beyond the CLI.

Common Use Cases

  • Enforcing a shared style guide across a team by extending a shared config (e.g. eslint-config-airbnb) and layering project-specific overrides.
  • Catching real bugs before merge — unused variables, unreachable code, unsafe comparisons — as a required CI check on every pull request.
  • Linting TypeScript codebases by pairing ESLint’s rule engine with @typescript-eslint’s parser and type-aware rules.
  • Powering editor-integrated real-time feedback in VS Code and other IDEs via the ESLint language server.

Under The Hood

Architecture Execution starts at the CLI entry point (lib/cli.js), which hands off to the ESLint class (lib/eslint/eslint.js), a high-level orchestrator that resolves configuration via ConfigLoader/FlatConfigArray (lib/config/), optionally fans work out across worker threads (node:worker_threads), and delegates per-file linting to lib/eslint/worker.js. The actual rule-running core lives in the Linter class (lib/linter/linter.js): it builds a SourceCode object from the parsed AST, traverses it via SourceCodeTraverser, applies each active rule’s visitor, resolves inline eslint-disable directives (apply-disable-directives.js), and iterates SourceCodeFixer up to MAX_AUTOFIX_PASSES (10) when autofixing. Cross-cutting concerns are split into dedicated services (lib/services/: parser-service, processor-service, suppressions-service, warning-service), and the JS-specific parsing/traversal logic is isolated behind a Language interface (lib/languages/js) implementing the @eslint/core contract, decoupling the linting engine from JavaScript so it can, in principle, target other languages.

Tech Stack ESLint is plain CommonJS Node.js (engines ^20.19.0 || ^22.13.0 || >=24), authored without a TypeScript build step but shipping hand-maintained .d.ts type definitions validated against multiple TypeScript versions (5.3, 5.x, and the native-preview 7.x compiler) in CI. Core dependencies include Espree for AST parsing, eslint-scope for variable scope analysis, esquery for AST querying, Ajv for JSON-schema validation of rule options, and the newer @eslint/config-array, @eslint/plugin-kit, and @eslint/core packages that back the flat-config and language-plugin system. The repo is an npm workspace (packages/*) hosting companion packages, tested with Mocha for the core suite and Cypress for browser bundle tests, bundled for the browser via Webpack, and formatted with Prettier.

Code Quality The test suite is extensive — individual rule test files run into the thousands of lines (tests/lib/rules/no-unused-vars.js alone is over 5,000 lines) — and every rule is exercised through a dedicated RuleTester harness (lib/rule-tester/rule-tester.js) that standardizes valid/invalid test cases and autofix assertions. Coverage is collected with c8 (lcov, cobertura, and text-summary reporters) and ESLint dogfoods itself: eslint.config.js lints ESLint’s own source with directory-specific overrides for internal packages, layered with eslint-plugin-eslint-plugin for meta-linting rule modules and Prettier for formatting. CI (ci.yml, types-integration.yml, codeql-analysis.yml, ecosystem-tests.yml) runs the full test/type-check/lint matrix across supported Node and TypeScript versions and additionally re-lints real downstream projects on every change to catch regressions before release.

API Design ESLint offers both a zero-config CLI (npx eslint) and a granular public API (Linter, ESLint, SourceCode, RuleTester) for embedding linting into other tools, editors, and build systems. Flat config replaced the older cascading .eslintrc resolution algorithm — long a source of confusion — with plain JS arrays/objects composed via defineConfig and globalIgnores helpers. Rule authors work against a consistent meta/create contract with JSON-schema-validated options and a context.report API for messages, fixers, and suggestions, and the public API surface ships with full TypeScript types and an extensive per-rule documentation site, lowering the barrier for both end users and third-party plugin authors.

Used by 509 apps in this directory

Python
45%
GPL 3.0

MaxKB

AI Development · Knowledge Management

22,882

Build enterprise-grade AI agents with RAG, workflows & multi-modal support

View details
92
Repo Health
68
Technical
66
Dependency
Built with
Python 45%
Vue 37%
TypeScript 17%
Updated 1 weeks ago
TypeScript
88%
Apache 2.0

Medplum

Authentication · Databases · Developer Tools

2,709

An open-source, FHIR-native healthcare platform that gives developers a compliant backend, authentication, a React component library, and serverless bots to build clinical applications in weeks instead of years.

View details
93
Repo Health
90
Technical
72
Dependency
Built with
TypeScript 88%
Updated 1 weeks ago
TypeScript
88%
MIT

medusa

Ecommerce

36,494

The most flexible open-source commerce platform — build B2C, B2B, and marketplace applications with modular, composable commerce primitives.

View details
93
Repo Health
87
Technical
63
Dependency
Built with
TypeScript 88%
JavaScript 12%
Updated 2 weeks ago
TypeScript
88%
MIT

medusa

Ecommerce

36,494

The most flexible open-source commerce platform — build B2C, B2B, and marketplace applications with modular, composable commerce primitives.

View details
93
Repo Health
87
Technical
63
Dependency
Built with
TypeScript 88%
JavaScript 12%
Updated 2 weeks ago
TypeScript
95%
MIT

melty

AI Code Assistants · Code Editors · Developer Tools

5,444

The AI code editor where every chat message is a git commit you can revert, branch, or squash

View details
35
Repo Health
75
Technical
67
Dependency
Built with
TypeScript 95%
Updated 1 years ago
TypeScript
42%
MIT

MentraOS

AI Development · Developer Tools

2,370

The open source operating system and SDK that lets developers build one app and run it across smart glasses from Even Realities, Vuzix, Mentra Live, and more.

View details
92
Repo Health
77
Technical
66
Dependency
Built with
TypeScript 42%
Java 20%
Kotlin 13%
Updated 1 weeks ago
TypeScript
42%
MIT

MentraOS

AI Development · Developer Tools

2,370

The open source operating system and SDK that lets developers build one app and run it across smart glasses from Even Realities, Vuzix, Mentra Live, and more.

View details
92
Repo Health
77
Technical
66
Dependency
Built with
TypeScript 42%
Java 20%
Kotlin 13%
Updated 1 weeks ago
Rust
71%
Apache 2.0

mesh-llm

AI Agents · AI Development

3,463

Mesh LLM pools GPUs and memory across every machine you own into one OpenAI-compatible API, so agents tap distributed compute instead of a single GPU box or a metered cloud bill.

View details
84
Repo Health
91
Technical
69
Dependency
Built with
Rust 71%
TypeScript 13%
Python 10%
Updated 1 weeks ago
Rust
71%
Apache 2.0

mesh-llm

AI Agents · AI Development

3,463

Mesh LLM pools GPUs and memory across every machine you own into one OpenAI-compatible API, so agents tap distributed compute instead of a single GPU box or a metered cloud bill.

View details
84
Repo Health
91
Technical
69
Dependency
Built with
Rust 71%
TypeScript 13%
Python 10%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers