# @form8ion/eslint-config 中文文档

规范地址：https://npmcn.com/package/%40form8ion/eslint-config/

版本：7\.0\.18
npm 元数据更新时间：2026-05-20T17:17:48.346Z
中文译文更新时间：2026-11-15T08:18:15.911Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40form8ion/eslint-config
原文对照：https://npmcn.com/package/%40form8ion/eslint-config/?lang=original
项目主页：https://npm.im/@form8ion/eslint-config
源码仓库：https://github.com/form8ion/eslint-config

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：9.8 kB，4 个文件
- TypeScript 类型：未声明
- Node.js 要求：^18\.17 \|\| \>=20\.6\.1
- 运行依赖：6 个
- 首次发布：2019-05-25T03:34:39.857Z
- 最新版本发布：2026-05-20T17:17:47.962Z
- 近 30 天下载量：45774（2026-10-16 至 2026-11-14，npm 官方下载统计）
- 已发布版本数：176（近 12 个月 7 个）

## 中文简介

eSLint 可共享配置

## 安装

```sh
npm install @form8ion/eslint-config
```

也可以使用：`pnpm add @form8ion/eslint-config`、`yarn add @form8ion/eslint-config`、`bun add @form8ion/eslint-config`

## README

# 埃斯林特配置

[可共享配置](https://eslint.org/docs/developer-guide/shareable-configs#shareable-configs) 页:1 [ESLint 语录](https://eslint.org/)

[![Node CI Workflow Status](https://img.shields.io/github/actions/workflow/status/form8ion/eslint-config/node-ci.yml.svg?branch=master&logo=github)](https://github.com/form8ion/eslint-config/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster) ![SLSA Level 2](https://slsa.dev/images/gh-badge-level2.svg)

## 目录

-   [哲学](https://npmcn.com/package/%40form8ion/eslint-config/#readme-philosophy)
-   [使用量](https://npmcn.com/package/%40form8ion/eslint-config/#readme-usage)
    -   [扩大范围](https://npmcn.com/package/%40form8ion/eslint-config/#readme-extending-under-your-own-scope)
        -   [安装](https://npmcn.com/package/%40form8ion/eslint-config/#readme-installation)
        -   [从文件延伸导出为 `main` 在您的配置包中](https://npmcn.com/package/%40form8ion/eslint-config/#readme-extend-from-the-file-exported-as-main-in-your-config-package)
        -   [扩展此选项的示例配置](https://npmcn.com/package/%40form8ion/eslint-config/#readme-example-configs-that-extend-this-one)
    -   [用于 `form8ion` 组织](https://npmcn.com/package/%40form8ion/eslint-config/#readme-for-projects-in-the-form8ion-organization)
        -   [安装](https://npmcn.com/package/%40form8ion/eslint-config/#readme-installation-1)
        -   [添加到工程配置](https://npmcn.com/package/%40form8ion/eslint-config/#readme-add-to-the-project-config)
-   [捐款](https://npmcn.com/package/%40form8ion/eslint-config/#readme-contributing)
    -   [依赖关系](https://npmcn.com/package/%40form8ion/eslint-config/#readme-dependencies)
    -   [核查](https://npmcn.com/package/%40form8ion/eslint-config/#readme-verification)
-   [相关项目](https://npmcn.com/package/%40form8ion/eslint-config/#readme-related-projects)

## 哲学

林特规则可能会有争议,但我认为它们应该很广泛,而且 严格。 我认为一致性在代码库中比个人的更有价值 特别是当这些偏好在团队成员之间有所不同时 甚至个人成员在不同的时间.

因为这个 [空心基础配置](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base) 被扩展为此配置的基本规则。 未延长 因为它同意所有的规则 但因为它定义了广泛的 严格规定 规则被推翻 从那里, 都是为了制造一些 更严格,让一些人执行不同的公约.

## 使用量

[![npm](https://img.shields.io/npm/v/@form8ion/eslint-config?logo=npm)](https://www.npmjs.com/package/@form8ion/eslint-config) [![MIT license](https://img.shields.io/github/license/form8ion/eslint-config.svg?logo=opensourceinitiative)](https://npmcn.com/package/%40form8ion/eslint-config/LICENSE) ![node](https://img.shields.io/node/v/@form8ion/eslint-config?logo=node.js)

### 扩大范围

扩展此配置允许您使用此配置作为自己的基础 配置, 使您能够定义更多规则或覆盖在此定义的一些规则 相会.

建议你早点建立自己的配置 而不是用这个 即使您一开始没有定义任何覆盖。 那边,你的 当您决定定义时, 工程已经取决于您的自定义配置 以后的习惯规则.

#### 安装

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

#### 从文件延伸导出为 `main` 在您的配置包中

请注意,你可以使用 [单手版本](https://eslint.org/docs/developer-guide/shareable-configs#npm-scoped-modules) 配置名称

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

#### 扩展此选项的示例配置

-   [@travi/slint-config](https://npm.im/@travi/eslint-config)
-   [@dsmjs/slint-配置](https://npm.im/@dsmjs/eslint-config)

### 用于 `form8ion` 组织

#### 安装

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

#### 添加到工程配置

比如说 `.eslintrc.yml`

```yml
extends: '@form8ion'
```

## 捐款

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org/) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![semantic-release](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com/) [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=renovatebot)](https://renovatebot.com/)

### 依赖关系

```sh
$ nvm install
$ npm install
```

### 核查

```sh
$ npm test
```

## 相关项目

-   [eslint - 配置 - 反应](https://github.com/form8ion/eslint-config-react)
-   [埃斯林特- 配置- 哈尔](https://github.com/form8ion/eslint-config-hal)
-   [埃斯林特- 配置- 摩卡](https://github.com/form8ion/eslint-config-mocha)
-   [埃斯林特- 配置- 库坎伯](https://github.com/form8ion/eslint-config-cucumber)
-   [埃斯林特- 配置- cypress](https://github.com/form8ion/eslint-config-cypress)

## 常见问题

### @form8ion/eslint-config 是什么？

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 和提交记录判断。

