# @geoql/oxlint-plugin-nuxt-doctor 中文文档

规范地址：https://npmcn.com/package/%40geoql/oxlint-plugin-nuxt-doctor/

版本：1\.2\.5
npm 元数据更新时间：2026-11-03T20:42:15.858Z
中文译文更新时间：2026-11-16T04:45:21.503Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40geoql/oxlint-plugin-nuxt-doctor
原文对照：https://npmcn.com/package/%40geoql/oxlint-plugin-nuxt-doctor/?lang=original
项目主页：https://github.com/geoql/doctor#readme
源码仓库：https://github.com/geoql/doctor

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

- 包体积（解压后）：6.6 kB，6 个文件
- 模块格式：ES Module
- TypeScript 类型：包内自带
- Node.js 要求：\>=24
- 运行依赖：1 个
- peer 依赖：oxlint ^1\.66\.0
- 首次发布：2026-06-02T20:51:09.489Z
- 最新版本发布：2026-11-03T20:42:15.510Z
- 近 30 天下载量：12507（2026-10-16 至 2026-11-14，npm 官方下载统计）
- 已发布版本数：14（近 12 个月 14 个）

## 中文简介

克林特JS插件,用于Nuxt 4反标和AI-slop检测. 与克克林特所内置的vue插件通过jsPlugins的对等. TypeScript, 无害环境管理.

## 安装

```sh
npm install @geoql/oxlint-plugin-nuxt-doctor
```

也可以使用：`pnpm add @geoql/oxlint-plugin-nuxt-doctor`、`yarn add @geoql/oxlint-plugin-nuxt-doctor`、`bun add @geoql/oxlint-plugin-nuxt-doctor`

## README

# `@geoql/oxlint-plugin-nuxt-doctor`

> oxlint JS插件 持有 Nuxt 4 脚本级规则 [`@geoql/doctor-core`](https://npmcn.com/package/%40geoql/doctor-core) 运行.

这个包是规则包,不是工具. 这是Nuxt一半的剧本通过: 克克林特 JS-Plugin规则 开火对抗 `<script>` 编号 : `<script setup>` ESTree 牛林提取物 `.vue` 文件及服务器处理器. `doctor-core` 生成 `.oxlintrc.json` 并加载此插件 `@geoql/oxlint-plugin-vue-doctor` 并把它自动接入,所以 **您不直接安装或配置**运行 [`@geoql/nuxt-doctor`](https://npmcn.com/package/%40geoql/nuxt-doctor) 这些规则是免费的.

## 这里面是什么

脚本级"Nuxt"规则分为四类. 其他Nuxt检查(`structure`, (中文(简体) ), `nitro`, (中文(简体) ), `seo`, (中文(简体) ), `cloudflare`, (中文(简体) ), `modules-deps`交叉文件 `data-fetching`) 内部运行 `doctor-core` 因为他们需要项目级别或多文件上下文,而不是单一的脚本AST.

| 类别 | 规则 |
| --- | --- |
| `ai-slop` | `useState` 用于服务器数据,在设置中获取, `process.client`编号 :`process.server`明确进口自动进口的API |
| `hydration` | `clientOnly` 用于浏览器 API,没有 `document` 设置 |
| `server-routes` | 类型 `defineEventHandler`, (中文(简体) ), `createError` 失败时, 用 h3 v2 验证正文 |
| `data-fetching` | 所需经费 `useAsyncData` 环内键 |

`nuxt-doctor` 显示这些 Nuxt 规则 **顶上** 整个Vue规则集, 所以Nuxt审计检查两者。 要看到每个规则 与它的id,严重, 和预先确定的成员,运行 `nuxt-doctor list-rules` (或过滤等. `nuxt-doctor list-rules --category hydration`) (中文(简体) ).

## 安装

```sh
npm i @geoql/oxlint-plugin-nuxt-doctor
```

发表于 [无](https://www.npmjs.com/package/@geoql/oxlint-plugin-nuxt-doctor) 财务报告和审定财务报表 [日 尔](https://jsr.io/@geoql/oxlint-plugin-nuxt-doctor) 与出处。 仅限无害环境管理, TypeScript. `oxlint` 是同级依赖。 大多数人从不增加这种依赖性; `doctor-core` 解决它为你.

## 范围

仅指 `app/` 目录布局 `compatibilityVersion: 4`) (中文(简体) ). 严重性水平是 `error | warn | info`。 。 。 .

## 建筑

见 [`docs/SPEC.md`](https://npmcn.com/package/docs/SPEC.md) §10 关于 JS 插件如何与牛林的原生加载 `vue` 插件,以及脚本,模板,和交叉文件规则为何生活在不同的通行证中.

## 许可证

麻省理工学院

## 常见问题

### @geoql/oxlint-plugin-nuxt-doctor 是什么？

克林特JS插件,用于Nuxt 4反标和AI-slop检测\. 与克克林特所内置的vue插件通过jsPlugins的对等\. TypeScript, 无害环境管理\.

### 如何安装 @geoql/oxlint-plugin-nuxt-doctor？

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

### @geoql/oxlint-plugin-nuxt-doctor 支持 TypeScript 吗？

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

### @geoql/oxlint-plugin-nuxt-doctor 支持 ESM 还是 CommonJS？

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

### @geoql/oxlint-plugin-nuxt-doctor 需要什么版本的 Node\.js？

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

### @geoql/oxlint-plugin-nuxt-doctor 可以商用吗？

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

### @geoql/oxlint-plugin-nuxt-doctor 的下载量有多少？

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

### @geoql/oxlint-plugin-nuxt-doctor 还在维护吗？

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

