@chubbyts/chubbyts-oxlint

中文文档
1.0.2发布于 2026/10/20MITES Module近 30 天下载 3308

Oxlint Configuration for chubbyts libraries / framework / projects.

原始使用文档
文档目录8 节
  1. Description
  2. Requirements
  3. Installation
  4. Configuration
  5. .oxlintrc.json
  6. package.json
  7. Differences to chubbyts-eslint
  8. Copyright

chubbyts-oxlint

CI Coverage Status Mutation testing badge npm-version

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

Oxlint Configuration for chubbyts libraries / framework / projects. Provides the same linting contract as @chubbyts/chubbyts-eslint, as close as oxlint allows.

Requirements

Installation

Through NPM as @chubbyts/chubbyts-oxlint.

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

Configuration

.oxlintrc.json

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

package.json

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

Differences to chubbyts-eslint

Most rules map 1:1 onto oxlint's native (Rust) implementations. The remaining rules are provided by JS plugins which are shipped with this package:

  • functional/no-let, functional/immutable-data, functional/prefer-tacit: syntactic reimplementations of the rules from eslint-plugin-functional. Oxlint does not provide typescript-eslint parser services to JS plugins, so the type-aware originals cannot run. immutable-data detects mutations structurally (member assignments, delete, mutating array methods, Object.assign and friends on existing values) and therefore cannot detect Map/Set mutations. prefer-tacit only reports wrappers around functions declared in the same file with a matching, fixed arity.
  • importx/order, importx/no-unresolved: reimplementations of the eslint-plugin-import-x rules on top of oxc-resolver (the resolver oxlint itself uses, configured for TypeScript: .ts extensions, .js → .ts extension alias, tsconfig paths), keeping this package free of the eslint ecosystem and its typescript version constraint. order implements the default options only (builtin, external, parent, sibling, index). The import-x plugin name is reserved by oxlint for its native rules, hence the importx alias.
  • quotes, semi and linebreak-style do not exist in oxlint; formatting is owned by prettier in all chubbyts projects anyway.
  • eslint.configs.recommended and the non-type-aware part of tseslint.configs.strict are covered by the correctness and suspicious categories plus explicitly enabled typescript/* rules.
  • unused-imports/no-unused-imports is covered by oxlint's eslint/no-unused-vars, which reports and auto-fixes unused imports.

Type-aware linting (beyond the syntactic approximations above) can be added by installing oxlint-tsgolint and running oxlint --type-aware.

2026 Dominik Zogg

版本与发布记录

@chubbyts/chubbyts-oxlint 共发布 3 个版本,首次发布于 2026/07/25;过去 12 个月发布了 3 个版本。

版本发布日期距今
1.0.2latest2026/10/2020 天前
1.0.12026/08/043 个月前
1.0.02026/07/253 个月前

关于 @chubbyts/chubbyts-oxlint 的常见问题

@chubbyts/chubbyts-oxlint 是什么?

Oxlint Configuration for chubbyts libraries / framework / projects.

如何安装 @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 和提交记录判断。