ESLint statically analyzes JavaScript code to report problematic patterns and style issues. Rules are configurable plugins run from the command line or editor integrations.
Overview
ESLint parses ECMAScript and JavaScript with an AST and applies pluggable rules you enable in config files. Each rule can be set to off, warn, or error levels so teams tune how findings affect CI exit codes versus editor feedback.
The core ships with many built-in rules, and you can add community plugins at runtime. Configuration supports flat config modules, custom parsers for TypeScript or JSX, preprocessors, and project-specific rule authoring. Many reported issues include autofixes that respect syntax boundaries instead of blunt text replacement.
It runs on supported Node.js releases and integrates with npm or pnpm workflows. Editors commonly embed ESLint, and pipelines invoke the same CLI used locally. Documentation covers version support, semantic versioning expectations for rule changes, and extension APIs for plugins, formatters, and shareable configs.
Compared with format-only tools, ESLint focuses on detecting likely bugs and inconsistent patterns; teams often pair it with a formatter. Native JSX parsing is supported when configured, while React-specific semantics typically require additional plugins.
Key features
- AST-based pattern checking
- Fully pluggable rule system
- Autofix for many rules
- Flat eslint.config.js setup
- Custom parsers and plugins
- CI and editor integration
- Configurable error levels
- Broad ECMAScript version support
Use cases
- Enforcing team JavaScript style
- Catching bugs before merge
- Standardizing monorepo packages
- Linting JSX and TypeScript via plugins
- Gating releases in CI pipelines