@hapi/eslint-plugin-hapi

中文文档
4.3.6发布于 2020/09/13BSD-3-ClauseCommonJS零依赖近 30 天下载 1.5万

ESLint plugin containing hapi style guide rules and config

此软件包已被标记为弃用

This module has moved and is now available at @hapi/eslint-plugin. Please update your dependencies as this version is no longer maintained and may contain bugs and security issues.

原始使用文档

@hapi/eslint-plugin-hapi

ESLint plugin containing hapi style guide rules and config.

eslint-plugin-hapi is part of the hapi ecosystem and was designed to work seamlessly with the hapi web framework and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out hapi – they work even better together.

Visit the hapi.dev Developer Portal for tutorials, documentation, and support

Useful resources

版本与发布记录

@hapi/eslint-plugin-hapi 共发布 7 个版本,首次发布于 2019/04/23;过去 12 个月发布了 0 个版本。

版本发布日期距今
4.3.6latest2020/09/136 年前
4.3.52020/01/056 年前
4.3.42019/08/087 年前
4.3.32019/04/247 年前
4.3.22019/04/237 年前
4.3.02019/04/237 年前

关于 @hapi/eslint-plugin-hapi 的常见问题

@hapi/eslint-plugin-hapi 是什么?

ESLint plugin containing hapi style guide rules and config注意:该包已被作者标记为弃用——This module has moved and is now available at @hapi/eslint-plugin. Please update your dependencies as this version is no longer maintained and may contain bugs and security issues.

如何安装 @hapi/eslint-plugin-hapi?

在项目目录运行 npm install @hapi/eslint-plugin-hapi,或使用 pnpm add / yarn add / bun add。

@hapi/eslint-plugin-hapi 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/hapi__eslint-plugin-hapi 是否存在。

@hapi/eslint-plugin-hapi 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@hapi/eslint-plugin-hapi 可以商用吗?

@hapi/eslint-plugin-hapi 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@hapi/eslint-plugin-hapi 的下载量有多少?

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

@hapi/eslint-plugin-hapi 还在维护吗?

最新版本 4.3.6 发布于 2020/09/13(6 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/04/23。作者已将其标记为弃用,新项目建议寻找替代方案。