# @chubbyts/chubbyts-oxlint 中文文档

规范地址：https://npmcn.com/package/%40chubbyts/chubbyts-oxlint/

版本：1\.0\.2
npm 元数据更新时间：2026-10-19T19:18:49.973Z
中文译文更新时间：2026-11-09T15:32:17.382Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40chubbyts/chubbyts-oxlint
原文对照：https://npmcn.com/package/%40chubbyts/chubbyts-oxlint/?lang=original
源码仓库：https://github.com/chubbyts/chubbyts-oxlint

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

- 包体积（解压后）：23.6 kB，8 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：^22\.13\.0 \|\| \>=24
- 运行依赖：1 个
- peer 依赖：oxlint ^1\.76\.0
- 首次发布：2026-07-24T20:56:57.082Z
- 最新版本发布：2026-10-19T19:18:48.993Z
- 近 30 天下载量：3308（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：3（近 12 个月 3 个）

## 中文简介

Oxlint 为胖子库/ 框架/ 项目配置 .

## 安装

```sh
npm install @chubbyts/chubbyts-oxlint
```

也可以使用：`pnpm add @chubbyts/chubbyts-oxlint`、`yarn add @chubbyts/chubbyts-oxlint`、`bun add @chubbyts/chubbyts-oxlint`

## README

# 胖子 -- -- 牛林

[![CI](https://github.com/chubbyts/chubbyts-oxlint/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/chubbyts/chubbyts-oxlint/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/chubbyts/chubbyts-oxlint/badge.svg?branch=master)](https://coveralls.io/github/chubbyts/chubbyts-oxlint?branch=master) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchubbyts%2Fchubbyts-oxlint%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyts/chubbyts-oxlint/master) [![npm-version](https://img.shields.io/npm/v/@chubbyts/chubbyts-oxlint.svg)](https://www.npmjs.com/package/@chubbyts/chubbyts-oxlint)

[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![code\_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![duplicated\_lines\_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![sqale\_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![alert\_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![reliability\_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![security\_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![sqale\_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint) [![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_chubbyts-oxlint&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyts_chubbyts-oxlint)

## 说明

Oxlint 为胖子库/ 框架/ 项目配置 。 提供与 [@chubbyts/chubbyts-slint (英语)](https://www.npmjs.com/package/@chubbyts/chubbyts-eslint),与 [奥克林特](https://www.npmjs.com/package/oxlint) 允许.

## 所需资源

-   节点: 22
-   [奥克林特](https://www.npmjs.com/package/oxlint): ^1.76.0(同类依赖)
-   [解氧化剂](https://www.npmjs.com/package/oxc-resolver)页:1

## 安装

穿过 [国家预防机制](https://www.npmjs.com/) 作为 [{\\fn黑体\\fs22\\bord1\\shad0\\3ahbe\\4ah00\\fscx67\\fscy66\\2chffffff\\3ch808080}我很高兴见到你](https://www.npmjs.com/package/@chubbyts/chubbyts-oxlint)。 。 。 .

```sh
npm i -D oxlint @chubbyts/chubbyts-oxlint@^1.0.2
```

## 配置

### .oxlintrac.json (英语)

```json
{
  "extends": ["./node_modules/@chubbyts/chubbyts-oxlint/oxlintrc.json"]
}
```

### 软件包.json

```json
{
  "scripts": {
    "lint": "oxlint src tests",
    "lint-fix": "oxlint --fix src tests"
  }
}
```

## 与胖子-瘦子的区别

大多数规则将1: 1映射到牛林的原生(Rust)执行上. 其余规则由JS插件提供 随此包运出:

-   `functional/no-let`, (中文(简体) ), `functional/immutable-data`, (中文(简体) ), `functional/prefer-tacit`: 综合执行 规则从 [eslint- 插件功能](https://www.npmjs.com/package/eslint-plugin-functional)Oxlint没有为JS插件提供打字-slint解析服务, 因此,该型号的正本无法运行. `immutable-data` 检测结构突变(成员任务, `delete`,变异数组方法, `Object.assign` ,因此无法发现 `Map`编号 :`Set` 变相. `prefer-tacit` 仅报告围绕在同一文件中宣布的、带有一个 匹配,固定的分量.
-   `importx/order`, (中文(简体) ), `importx/no-unresolved`:重新执行 [埃斯林特-插口-进口-x](https://www.npmjs.com/package/eslint-plugin-import-x) 规则之上 [解氧化剂](https://www.npmjs.com/package/oxc-resolver) (解析器 oxlint 本身使用, 为 TypeScript 配置 : `.ts` 扩展, `.js` → `.ts` 扩展名, tsconfig 路径, 保留此软件包不受 eslint 生态系统及其打字版本的限制 约束. `order` 只执行默认选项(内建、外建、父、兄弟姐妹、索引)。 这个 `import-x` 插件名称由 oxlint 为其本地规则保留, 因此 `importx` 别名.
-   `quotes`, (中文(简体) ), `semi` 财务报告和审定财务报表 `linebreak-style` 不存在牛林;格式化由所有肥胖的更漂亮者所有 无论如何,项目.
-   `eslint.configs.recommended` 和无型号部分 `tseslint.configs.strict` 涵盖范围 `correctness` 财务报告和审定财务报表 `suspicious` 类别加明确启用 `typescript/*` 规则.
-   `unused-imports/no-unused-imports` 被牛林所覆盖 `eslint/no-unused-vars`自动修改 未用进口.

通过安装可添加有意识的衬线( 超出以上合成近似值) [克林特-茨高林特语](https://www.npmjs.com/package/oxlint-tsgolint) 财务报告和审定财务报表 运行 `oxlint --type-aware`。 。 。 .

## 版权

2026 道米尼克·佐格(英语:

## 常见问题

### @chubbyts/chubbyts-oxlint 是什么？

Oxlint 为胖子库/ 框架/ 项目配置 \.

### 如何安装 @chubbyts/chubbyts-oxlint？

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

### @chubbyts/chubbyts-oxlint 支持 TypeScript 吗？

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

### @chubbyts/chubbyts-oxlint 支持 ESM 还是 CommonJS？

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

### @chubbyts/chubbyts-oxlint 需要什么版本的 Node\.js？

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

### @chubbyts/chubbyts-oxlint 可以商用吗？

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

### @chubbyts/chubbyts-oxlint 的下载量有多少？

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

### @chubbyts/chubbyts-oxlint 还在维护吗？

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

