# 使用 Homebrew, apt, Nix, pacman 安装 eslint

查看 eslint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:eslint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install eslint
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install eslint
```

  证据: Debian stable package indexes: eslint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#eslint
```

  证据: nixpkgs package indexes: pkgs/by-name/es/eslint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S eslint
```

  证据: Arch Linux sync databases: eslint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:eslint
- **软件包管理器:** Homebrew
- **版本:** 10.8.0
- **来源摘要:** AST-based pattern checker for JavaScript
- **主页:** <https://eslint.org>
- **仓库:** <https://github.com/eslint/eslint>
- **最后更新:** 2026-07-25T20:47:29Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- eslint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 10.8.0
## 项目历史与用法

ESLint is the dominant pluggable linter for ECMAScript and JavaScript projects. Its own README defines it as a tool for identifying and reporting patterns in JavaScript code, built around AST analysis and a runtime-pluggable rule model.

### 项目历史

ESLint appeared on npm in 2013 and reached 1.0.0 in July 2015. The official 1.0.0 announcement described that milestone as the first major release after more than two years of work and as the stable base for future growth.

The project differentiated itself from JSLint and JSHint by using Espree for parsing, evaluating code through an AST, and making every rule pluggable. That architecture made ESLint attractive both as an end-user CLI and as a library for editor integrations, shareable configs, and custom rule packages.

Configuration has been one of ESLint's major historical arcs. The original eslintrc system accumulated multiple file formats and lookup rules; in 2022 the project introduced flat config, centered on `eslint.config.js`, as a simpler model. ESLint v9.0.0 made flat config the default and officially deprecated eslintrc.

### 采用历史

ESLint became a default dependency in JavaScript projects because it solved both style and correctness checks through one package ecosystem. The README links npm version and download badges, Open Collective funding, official docs, rules, contribution paths, and scheduled releases, reflecting a mature tool maintained as public infrastructure.

The plugin and shareable-config model drove adoption beyond core JavaScript. React, TypeScript, framework, import-order, accessibility, security, and formatting-adjacent workflows all built on ESLint's rule API, which made `eslint` a central package in Node.js development even when a project used higher-level presets.

The official release process also shaped adoption: the project publishes scheduled releases every two weeks and documents semver policies for rule, CLI, formatter, and API changes, which matters because lint rule updates can change build outcomes.

### 使用方式

Typical package-manager usage starts with `npm init @eslint/config@latest` and then `npx eslint yourfile.js`, while Homebrew and OS packages provide an `eslint` executable for users who install developer tools outside a project-local npm workflow.

Current ESLint configuration lives in a project-root flat config file named `eslint.config.js`, `eslint.config.mjs`, `eslint.config.cjs`, or a TypeScript variant with additional setup. Those files export configuration objects that set rules, plugins, language options, ignores, processors, and related linting behavior.

ESLint is used directly in terminals and CI, indirectly through editor integrations, and as an API consumed by other tools. Its significance in package-manager culture comes from how often it appears in `devDependencies`, lockfiles, shareable configs, monorepo lint scripts, and pre-commit or CI quality gates.

### 为什么软件包爱好者会关心

For package nerds, ESLint is a canonical example of a package ecosystem forming around a stable extension API: parser packages, plugins, config packages, formatter packages, and editor tooling all orbit the core package.

It is also one of the clearest examples of why developer-tool packages need careful semver. A minor rule behavior change can create new warnings, a major config migration can affect nearly every JavaScript project, and the project's own semver policy documents those tradeoffs explicitly.

### 时间线

- 2013: ESLint first appears on npm.
- 2015: ESLint 1.0.0 released as the first major release.
- 2022: Flat config introduced publicly as a new configuration system.
- 2024: ESLint 9.0.0 makes flat config the default and deprecates eslintrc.
- 2026: ESLint 10.x releases continue the scheduled release cadence.

### Related projects

- ESLint is historically compared with JSLint and JSHint, and its ecosystem intersects with Espree, typescript-eslint, Babel parser integrations, eslint-plugin-react, Prettier, editor integrations, and shareable config packages.

### 来源

- <https://github.com/eslint/eslint>
- <https://eslint.org/docs/latest>
- <https://eslint.org/docs/latest/use/configure/configuration-files>
- <https://eslint.org/blog/2015/07/eslint-1.0.0-released/>
- <https://eslint.org/blog/2022/08/new-config-system-part-2/>
- <https://eslint.org/blog/2024/04/eslint-v9.0.0-released/>
- <https://www.npmjs.com/package/eslint>
- <https://formulae.brew.sh/formula/eslint>


## 安全说明

没有找到 eslint 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: PROJECT_ROOT/eslint.config.js, PROJECT_ROOT/eslint.config.mjs, PROJECT_ROOT/eslint.config.cjs, PROJECT_ROOT/eslint.config.ts, PROJECT_ROOT/eslint.config.mts, PROJECT_ROOT/eslint.config.cts
## 其他软件包管理器记录

- Debian apt - eslint - 6.4.0~dfsg+~6.1.9-12: normalized package name match | Debian stable package indexes: eslint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AST-based pattern checker for JavaScript | https://eslint.org/
- Nix - eslint: normalized package name match | nixpkgs package indexes: pkgs/by-name/es/eslint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - eslint - 6.4.0~dfsg+~6.1.9-11build3: normalized package name match | Ubuntu 24.04 LTS package indexes: eslint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AST-based pattern checker for JavaScript | https://eslint.org/
- pacman - eslint - 10.8.0-1: normalized package name match | Arch Linux sync databases: eslint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An AST-based pattern checker for JavaScript | https://eslint.org


## Combined YAML source

View the package source record on GitHub. [combined/eslint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/eslint.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
