@ember-intl/lint

中文文档
2.4.0发布于 2026/10/29MITES Module构建来源已验证近 30 天下载 7.3万

Official linter for ember-intl

原始使用文档
文档目录5 节
  1. Quickstart
  2. Lint Rules
  3. Compatibility
  4. Contributing
  5. License

@ember-intl/lint

Official linter for ember-intl

Quickstart

1. Install @ember-intl/lint as a development dependency.

pnpm add -D @ember-intl/lint

2. In package.json, add the scripts lint:intl and lint:intl:fix. They will run as a part of lint and lint:fix.

{
  "scripts": {
    "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
    "lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" && pnpm format",
+     "lint:intl": "ember-intl-lint",
+     "lint:intl:fix": "ember-intl-lint --fix"
  },
  "devDependencies": {
    "@ember-intl/lint": "...",
    "concurrently": "...",
  }
}

3. If lint:intl doesn't pass out of the box, create a configuration file to document your app or addon. You may run lint:intl:fix to get started.

Lint Rules

Name✅🔧
no-inconsistent-messages✅🔧
no-missing-keys✅🔧
no-unused-keys✅🔧

Notations:

  • ✅ Recommended (enabled by default)
  • 🔧 Issues reported by this rule can be fixed (possibly ignored) with --fix

Compatibility

  • ember-intl v9.0.0 or above
  • Node.js v22 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

版本与发布记录

@ember-intl/lint 共发布 53 个版本,首次发布于 2025/12/04;过去 12 个月发布了 53 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.4.0latest2026/10/2915 天前
2.3.52026/10/2222 天前
2.3.42026/10/2024 天前
2.3.32026/10/1529 天前
2.3.22026/10/091 个月前
2.3.12026/10/081 个月前

其他发布通道:beta → 2.0.0-beta.5。

关于 @ember-intl/lint 的常见问题

@ember-intl/lint 是什么?

Official linter for ember-intl

如何安装 @ember-intl/lint?

在项目目录运行 npm install @ember-intl/lint,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 ember-intl-lint,可以用 npx ember-intl-lint 直接运行。

@ember-intl/lint 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ember-intl__lint 是否存在。

@ember-intl/lint 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ember-intl/lint 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js 22.* || >= 24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@ember-intl/lint 可以商用吗?

@ember-intl/lint 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ember-intl/lint 的下载量有多少?

根据 npm 官方下载统计,@ember-intl/lint 在 2026/10/14 – 2026/11/12 这 30 天内被下载 72,548 次,日均约 2,418 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ember-intl/lint 还在维护吗?

最新版本 2.4.0 发布于 2026/10/29(15 天前);至今共发布 53 个版本,其中过去 12 个月发布了 53 个;首次发布于 2025/12/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。