Find and fix problems in your JavaScript code.
open sourceMITself-hostablefree
ESLint is the pluggable linter for JavaScript and TypeScript: it parses code into an AST and runs rules over it to report and often automatically fix problems, from likely bugs to style. Every rule is a plugin, so frameworks, TypeScript (through typescript-eslint) and companies add their own, and configuration lives in a flat config file. It runs in editors, pre-commit hooks and CI. ESLint is an OpenJS Foundation project funded by sponsors through Open Collective, MIT licensed.
Ways to install
Package managers
Problems it solves
- catch bugs like unused variables and missing awaits in JavaScript before code review
- enforce our team's JavaScript conventions automatically
- our React code keeps breaking the rules of hooks
- lint TypeScript code in CI
- write a custom rule that bans a deprecated internal API
- auto-fix lint problems across the whole codebase
Features
- pluggable rules
- auto-fix
- flat config
- custom parsers
- editor integrations
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what ESLint does.
