# 使用 Homebrew 安装 addons-linter

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

## 安装

```sh
sudo av install brew:addons-linter
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install addons-linter
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:addons-linter
- **软件包管理器:** Homebrew
- **版本:** 10.9.0
- **来源摘要:** Firefox Add-ons linter, written in JavaScript
- **主页:** <https://github.com/mozilla/addons-linter>
- **最后更新:** 2026-07-14T14:59:57Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- addons-linter (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

addons-linter is Mozilla's JavaScript linter for Firefox add-ons and WebExtensions. It is both a standalone CLI and a library, and the README says it is used by web-ext and addons.mozilla.org.

### 项目历史

The official GitHub repository was created in September 2015 under Mozilla. The README frames the linter as infrastructure for validating packaged or unpacked WebExtensions, with output suitable for developers and for automation.

The linter's implementation is organized around scanners, rules, collectors, and reporters. The README says it relies heavily on ESLint for JavaScript, cheerio for HTML parsing, and Fluent tooling for language packs. As of November 2021, Mozilla's dispensary library-detection work was merged into the project and exposed through a CLI script.

### 采用历史

Official adoption is unusually direct: Mozilla documents that addons-linter is used by web-ext and addons.mozilla.org. That makes it part of the normal Firefox extension development and submission path, not just an optional local lint command.

The package is published for Node users and packaged by Homebrew in the supplied metadata. The repository API shows an active Mozilla project with GitHub Pages documentation and regular tags through the 9.x and 10.x series.

### 使用方式

Developers install it globally from npm or use the packaged binary, then run addons-linter against an XPI/ZIP file or an extension source directory. It reports errors, warnings, notices, metadata, and JSON output for automation.

Library users can create a linter instance directly from JavaScript, pass config that mirrors CLI options, and consume structured linter results. The README also documents privileged-extension behavior behind the --privileged flag.

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

addons-linter matters to package people because it is validation tooling at the boundary between a source tree and a distributable browser add-on. It encodes platform policy, extension packaging expectations, and submission-time checks in a reusable CLI that downstream package managers can install like any other development tool.

### 时间线

- 2015-09: GitHub repository created.
- 2021-11: dispensary was merged into addons-linter, according to the README.
- Current README: Node.js v22 or greater is required for development.

### Related projects

- web-ext is documented as a consumer.
- addons.mozilla.org / addons-server is documented as a consumer.
- dispensary was merged into the repository.

### 来源

- <https://api.github.com/repos/mozilla/addons-linter>
- <https://api.github.com/repos/mozilla/addons-linter/tags?per_page=20>
- <https://github.com/mozilla/addons-linter#readme>
- <https://mozilla.github.io/addons-linter/>
- source_facts.package-manager


## 安全说明

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



## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
