@binary64/eslint-plugin

中文文档
1.0.6发布于 2022/02/16MITCommonJS近 30 天下载 4427

Collection of ESLint rules

原始使用文档
文档目录11 节
  1. Installation
  2. Supported versions
  3. Usage
  4. Configs
  5. Rules
  6. Typing Issues
  7. Stylistic Issues
  8. Semantic Versioning Policy
  9. Changelog
  10. Contributing
  11. Development Tools

@binary64/eslint-plugin

A collection of ESLint plugins.

Installation

Use npm or a compatibility tool to install.

npm install --save-dev eslint @binary64/eslint-plugin
yarn add -D eslint @binary64/eslint-plugin

Supported versions

  • Node.js v16 or newer.
  • ESLint v8 or newer.

Usage

Edit your .eslintrc.json:

{
  "extends": ["plugin:@binary64/recommended"],
}

See also Configuring ESLint.

Configs

  • @binary64/recommended ... enables the recommended rules.

Rules

Typing Issues

Rule IDDescription
@binary64/formik-require-genericForce the use of generics when using Formik component⭐️
@binary64/react-deprecate-fcPrevents the use of React.FC⭐️

Stylistic Issues

Rule IDDescription
@binary64/classnames-requireEnforce stylistic rules on the usage of 'classnames' module.⭐️
@binary64/react-consistent-usestate-namingEnforce stylistic rules on the usage of React.useState⭐️

Semantic Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

Changelog

Contributing

Your contributions are welcomed. Please open an Issue, PR, or Discussion.

See also ESLint Contribution Guide.

Development Tools

  • npm test runs tests.
  • npm run update updates the package version. And it updates src/configs/recommended.ts, lib/index.ts, and README.md's rule table. See also npm version CLI command.
  • npm run add-rule <RULE_ID> creates three files to add a new rule.

版本与发布记录

@binary64/eslint-plugin 共发布 4 个版本,首次发布于 2022/02/03;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.6latest2022/02/164 年前
1.0.52022/02/034 年前
1.0.42022/02/034 年前
1.0.32022/02/034 年前

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

@binary64/eslint-plugin 是什么?

Collection of ESLint rules

如何安装 @binary64/eslint-plugin?

在项目目录运行 npm install @binary64/eslint-plugin,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:eslint(>=8)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@binary64/eslint-plugin 支持 TypeScript 吗?

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

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

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

@binary64/eslint-plugin 需要什么版本的 Node.js?

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

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

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

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

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

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

最新版本 1.0.6 发布于 2022/02/16(4 年前);至今共发布 4 个版本,其中过去 12 个月发布了 0 个;首次发布于 2022/02/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。