# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/addons-linter>
- **版本:** 10.9.0
- **来源摘要:** Firefox Add-ons linter, written in JavaScript
- **主页:** <https://github.com/mozilla/addons-linter>
- **仓库:** <https://github.com/mozilla/addons-linter>
- **许可证:** MPL-2.0
- **源码归档:** <https://registry.npmjs.org/addons-linter/-/addons-linter-10.9.0.tgz>
- **最后更新:** 2026-07-14T14:59:57Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- addons-linter (cli)
- addons-linter (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 10.9.0
- 管理器更新时间: 2026-07-14
- 本地数据: OK
- 上游仓库: https://github.com/mozilla/addons-linter
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** addons-linter
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [oxlint](https://pkg.so/zh-hans/brew/oxlint/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, linter, linting.
- [quick-lint-js](https://pkg.so/zh-hans/brew/quick-lint-js/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, linter, linting.
- [sherif](https://pkg.so/zh-hans/brew/sherif/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, linter, linting.
- [rslint](https://pkg.so/zh-hans/brew/rslint/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, linter, linting.
- [protolint](https://pkg.so/zh-hans/brew/protolint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, linting.
- [falco](https://pkg.so/zh-hans/brew/falco/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, linting.
- [regal](https://pkg.so/zh-hans/brew/regal/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, linting.
- [proselint](https://pkg.so/zh-hans/brew/proselint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, linting.
- [addons-linter](https://pkg.so/zh-hans/npm/addons-linter/) - Same normalized package name appears in another local ecosystem. Shared terms: add, add-ons, addons, addons-linter, cli.
- [web-ext](https://pkg.so/zh-hans/npm/web-ext/) - Local package facts share a topical domain. Shared terms: add, add-ons, addons, addons-linter, browser.
- [web-ext](https://pkg.so/zh-hans/brew/web-ext/) - Both packages touch the same language runtime or ecosystem. Shared terms: browser, browser-extensions, cli, developer, developer-tools.
- [addons-linter](https://pkg.so/zh-hans/npm/addons-linter/) - Same normalized package name in another local ecosystem.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
