GitHub - eslint/eslint: Find and fix problems in your JavaScript code.
5 days ago
- #JavaScript
- #Code Quality
- #Linting
- ESLint is a tool for identifying and reporting patterns in ECMAScript/JavaScript code.
- ESLint uses Espree for JavaScript parsing and an AST to evaluate code patterns.
- ESLint is pluggable, with every rule being a plugin that can be added at runtime.
- Prerequisites include Node.js (^20.19.0, ^22.13.0, or >=24) with SSL support.
- Installation can be done via `npm init @eslint/config@latest` and running ESLint with `npx eslint yourfile.js`.
- Configuration is done in `eslint.config.js` files, with rules having error levels: 'off', 'warn', or 'error'.
- ESLint provides ongoing support for the current version and six months of limited support for the previous version.
- Commercial support is available through Tidelift and HeroDevs.
- ESLint adheres to the OpenJS Foundation Code of Conduct.
- Supports JSX syntax natively, but React semantics require `eslint-plugin-react`.
- Different from Prettier, which is a code formatter; both can be used together.
- Supports ECMAScript standards from ES3 up to the latest stage 4 specification.
- Scheduled releases occur every two weeks, with a defined semantic versioning policy.
- Security is a priority, with a dedicated security policy.
- Licensed under MIT, with contributions from the OpenJS Foundation and others.
- Team includes maintainers, reviewers, and contributors focused on different aspects of ESLint.
- Sponsors and technology sponsors support ESLint's maintenance and development.