# @eslinter/eslint-config-standard 中文文档

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

版本：0\.1\.2
npm 元数据更新时间：2025-04-13T02:39:02.347Z
中文译文更新时间：2026-11-13T22:25:09.417Z
软件包许可：MIT

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

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

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

- 包体积（解压后）：54.3 kB，16 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：^18\.18\.0 \|\| ^20\.9\.0 \|\| \>=21\.1\.0
- 运行依赖：4 个
- peer 依赖：eslint ^8\.57\.0 \|\| ^9\.0\.0
- 首次发布：2025-04-12T16:49:29.117Z
- 最新版本发布：2025-04-13T02:39:01.984Z
- 近 30 天下载量：62768（2026-10-14 至 2026-11-12，npm 官方下载统计）
- 已发布版本数：3（近 12 个月 0 个）

## 中文简介

积极维护分叉 `eslint-config-standard`: JavaScript 标准样式的 ESLint 配置

## 安装

```sh
npm install @eslinter/eslint-config-standard
```

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

## README

# @eslinter/eslint-config-标准

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/eslinter/eslint-config-standard/ci.yml?branch=master)](https://github.com/eslinter/eslint-config-standard/actions/workflows/ci.yml?query=branch%3Amaster) [![Codecov](https://img.shields.io/codecov/c/github/eslinter/eslint-config-standard.svg)](https://codecov.io/gh/eslinter/eslint-config-standard) [![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Feslinter%2Feslint-config-standard%2Fmaster%2Fpackage.json)](https://github.com/plantain-00/type-coverage) [![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/eslinter/eslint-config-standard)](https://coderabbit.ai/) [![npm](https://img.shields.io/npm/v/@eslinter/eslint-config-standard.svg)](https://www.npmjs.com/package/@eslinter/eslint-config-standard) [![GitHub Release](https://img.shields.io/github/release/eslinter/eslint-config-standard)](https://github.com/eslinter/eslint-config-standard/releases)

[![Conventional Commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org/) [![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com/) [![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![changesets](https://img.shields.io/badge/maintained%20with-changesets-176de3.svg)](https://github.com/changesets/changesets)

积极维护分叉 `eslint-config-standard`: JavaScript 标准样式的 ESLint 配置

## 技选

-   [JavaScript 标准样式的 ESLint 配置](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-the-eslint-config-of-javascript-standard-style)
-   [使用量](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-usage)
    -   [平面配置](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-flat-config)
    -   [遗产 EsLintrc 配置](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-legacy-eslintrc-config)
-   [学多点](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-learn-more)
-   [赞助者和支持者](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-sponsors-and-backers)
    -   [发起人](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-sponsors)
    -   [备份](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-backers)
-   [更改日志](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-changelog)
-   [许可证](https://npmcn.com/package/%40eslinter/eslint-config-standard/#readme-license)

## ESLint 配置 [JavaScript 标准样式](http://standardjs.com/)

[![JavaScript Style Guide - Standard Style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](http://standardjs.com/)

本单元供高级用户使用. 你也许想用 [`standard`](http://standardjs.com/) 改为:)

## 使用量

此套件导出 [平面 ESLint 配置](https://eslint.org/docs/latest/use/configure/configuration-files-new) 主体 `@eslinter/eslint-config-standard` 以及出口 [遗留的 ESLintrc 配置](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated) 编辑 `@eslinter/eslint-config-standard/legacy` 输入.

```bash
# npm
npm install -D eslint @eslinter/eslint-config-standard

# yarn
yarn add -D eslint @eslinter/eslint-config-standard

# pnpm
pnpm add -D eslint @eslinter/eslint-config-standard

# bun
bun add -D eslint @eslinter/eslint-config-standard
```

### 平面配置

示例 `eslint.config.js`数字 :

```js
import standard from '@eslinter/eslint-config-standard'

export default [
  standard,
  {
    // your overrides here
  },
]
```

### 遗产 EsLintrc 配置

示例 `.eslintrc.json`数字 :

```jsonc
{
  "extends": "@eslinter/eslint-config-standard/legacy",
  "overrides": [
    {
      // your overrides here
    },
  ],
}
```

## 学多点

对于规则的全部列表,编辑器插件,FAQ等等,访问主 [Java脚本标准 样式还原](http://standardjs.com/)。 。 。 .

## 赞助者和支持者

[![Sponsors and Backers](https://raw.githubusercontent.com/1stG/static/master/sponsors.svg)](https://github.com/sponsors/JounQin)

### 发起人

| 第1类 | RxTS 数据 | 调试 |
| --- | --- | --- |
| [![1stG Open Collective sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |

### 备份

| 第1类 | RxTS 数据 | 调试 |
| --- | --- | --- |
| [![1stG Open Collective backers](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |

## 更改日志

每个版本的详细变动记录如下: [变动情况](https://npmcn.com/package/%40eslinter/eslint-config-standard/CHANGELOG.md)。 。 。 .

## 许可证

[麻省理工学院](http://opensource.org/licenses/MIT) © [琼秦](https://github.com/JounQin)@[1stG.me (英语)](https://www.1stg.me/)

## 常见问题

### @eslinter/eslint-config-standard 是什么？

积极维护分叉 eslint-config-standard: JavaScript 标准样式的 ESLint 配置

### 如何安装 @eslinter/eslint-config-standard？

在项目目录运行 npm install @eslinter/eslint-config-standard，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：eslint（^8\.57\.0 \|\| ^9\.0\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @eslinter/eslint-config-standard 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @eslinter/eslint-config-standard 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @eslinter/eslint-config-standard 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js ^18\.18\.0 \|\| ^20\.9\.0 \|\| \>=21\.1\.0。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @eslinter/eslint-config-standard 可以商用吗？

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

### @eslinter/eslint-config-standard 的下载量有多少？

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

### @eslinter/eslint-config-standard 还在维护吗？

最新版本 0\.1\.2 发布于 2025/04/13（1\.6 年前）；至今共发布 3 个版本，其中过去 12 个月发布了 0 个；首次发布于 2025/04/13。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

