@fjall/eslint-plugin

中文文档
39.2.2发布于 2026/11/15SEE LICENSE IN LICENSEES Module零依赖近 30 天下载 5197

ESLint plugin with Fjall-specific coding standard rules

原始使用文档

@fjall/eslint-plugin

Flat-config ESLint plugin holding Fjall's internal coding-standard rules (credential masking, Zod strictness, tenant-isolation, AWS-SDK abort hygiene, CDK construct invariants, and more).

It is the single source of truth shared between the Fjall monorepo and the Fjall web app — the web app consumes it from npm because it builds without a monorepo checkout. The rules encode Fjall-specific conventions and are not intended for use outside Fjall projects.

Usage

// eslint.config.mjs (flat config)
import fjall from "@fjall/eslint-plugin";

export default [
  {
    plugins: { fjall },
    rules: {
      "fjall/zod-strict-required": "error",
      "fjall/mask-error-message-at-boundary": "error"
      // … enable the rules you need
    }
  }
];

Every rule lives in its own file (<rule-name>.js); index.js is the barrel exposing them all under the rules map. AST helpers that more than two rules would otherwise re-derive (the scope-chain variable lookup, the TS type-wrapper unwrap) live in astHelpers.js and are imported, never copied — a rule still carrying a private copy migrates to the shared helper as it is next touched.

版本与发布记录

@fjall/eslint-plugin 共发布 123 个版本,首次发布于 2026/06/19;过去 12 个月发布了 123 个版本。

版本发布日期距今
39.2.2latest2026/11/15今天
39.2.12026/11/15今天
39.2.02026/11/124 天前
39.1.02026/11/114 天前
39.0.142026/11/114 天前
39.0.132026/11/087 天前

关于 @fjall/eslint-plugin 的常见问题

@fjall/eslint-plugin 是什么?

ESLint plugin with Fjall-specific coding standard rules

如何安装 @fjall/eslint-plugin?

在项目目录运行 npm install @fjall/eslint-plugin,或使用 pnpm add / yarn add / bun add。

@fjall/eslint-plugin 支持 TypeScript 吗?

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

@fjall/eslint-plugin 支持 ESM 还是 CommonJS?

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

@fjall/eslint-plugin 可以商用吗?

@fjall/eslint-plugin 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@fjall/eslint-plugin 的下载量有多少?

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

@fjall/eslint-plugin 还在维护吗?

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