@form8ion/eslint-config

中文文档
7.0.18发布于 2026/05/21MIT构建来源已验证近 30 天下载 4.6万

shareable configuration for ESLint

原始使用文档
文档目录9 节
  1. Table of Contents
  2. Philosophy
  3. Usage
  4. Extending under your own scope
  5. For projects in the form8ion organization
  6. Contributing
  7. Dependencies
  8. Verification
  9. Related Projects

eslint-config

shareable configuration for ESLint

Node CI Workflow Status SLSA Level 2

Table of Contents

Philosophy

Lint rules can be controversial, but I believe they should be extensive and strict. I think that consistency is more valuable in a codebase than personal preference, especially when those preferences differ between team members and even individual members at different times.

Because of this, the Airbnb base config is extended as the as the base ruleset of this config. It is not extended because of agreeing with all of the rules, but because it defines an extensive ruleset in a strict way. Rules are overridden from there, both to make some more strict and to make some enforce a different convention.

Usage

npm MIT license node

Extending under your own scope

Extending this config allows you to use this config as a base for your own config, enabling you to define further rules or override some defined in this config.

It is recommended to create your own config early rather than using this one directly even if you do not define any overrides at first. That way, your projects will already depend on your custom config when you decide to define custom rules later.

Installation

$ npm install @form8ion/eslint-config --save-prod

Extend from the file exported as main in your config package

Note that you can use the shorthand version of the config name

module.exports = {extends: '@form8ion'};

Example configs that extend this one

For projects in the form8ion organization

Installation

$ npm install @form8ion/eslint-config --save-dev

Add to the project config

Such as in an .eslintrc.yml

extends: '@form8ion'

Contributing

Conventional Commits Commitizen friendly semantic-release PRs Welcome Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

版本与发布记录

@form8ion/eslint-config 共发布 176 个版本,首次发布于 2019/05/25;过去 12 个月发布了 7 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
7.0.18latest2026/05/215 个月前
7.0.172026/05/205 个月前
8.0.0-beta.1beta2026/05/096 个月前
7.0.162026/05/026 个月前
7.0.152026/04/306 个月前
7.1.0-beta.12026/03/138 个月前

其他发布通道:alpha → 1.0.0-alpha.4,beta → 8.0.0-beta.1。

关于 @form8ion/eslint-config 的常见问题

@form8ion/eslint-config 是什么?

shareable configuration for ESLint

如何安装 @form8ion/eslint-config?

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

@form8ion/eslint-config 支持 TypeScript 吗?

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

@form8ion/eslint-config 需要什么版本的 Node.js?

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

@form8ion/eslint-config 可以商用吗?

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

@form8ion/eslint-config 的下载量有多少?

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

@form8ion/eslint-config 还在维护吗?

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