@bigbinary/eslint-plugin-neeto

中文文档
1.13.0发布于 2026/10/30UNLICENSEDCommonJS零依赖近 30 天下载 4.7万

An ESLint plugin for enforcing common front-end best practices specifically for neeto.

原始使用文档
文档目录8 节
  1. Usage
  2. Exported rules
  3. Errors
  4. Warnings
  5. Overriding rules
  6. ESLint Errors
  7. ESLint Warnings
  8. Other references

eslint-plugin-neeto

An ESLint plugin for enforcing common front-end best practices specifically for neeto.

Usage

Install the plugin from npm:

yarn add -D "@bigbinary/eslint-plugin-neeto@latest"

In your .eslintrc.js file, add neeto in the plugins list and add the configuration 'recommended' in extends with prefix as 'plugin:'.

module.exports = {
  // ...other configurations
  plugins: [
    // ...other plugins
    "@bigbinary/neeto",
  ],
  extends: [
    "plugin:@bigbinary/neeto/recommended",
    // ...other plugins/extensions
  ],
};

Optionally, if you don't need all the recommended rules, follow this approach:

module.exports = {
  // ...other configurations
  plugins: [
    // ...other plugins
    "@bigbinary/neeto",
  ],
  rules: {
    "@bigbinary/neeto/ramda-tips": "warn",
    // ...other rules
  },
};

Exported rules

ESLint rules are categorized as either errors or warnings based on the severity of the issues identified in JavaScript code.

Errors

Warnings

Overriding rules

ESLint Errors

ESLint errors flag the mandatory coding standards that developers must strictly adhere to. These errors are detected by the pre-commit hook and in CI checks. There may be instances where we intentionally choose to adopt a particular coding style and wish to prevent ESLint from throwing errors. In such cases, you can temporarily disable the rule responsible for the false alarm by adding a comment above the code, specifying the reason why you have disabled that particular rule for that line to avoid any future confusion:

// Reason for disabling the rule.
// eslint-disable-next-line <rule>

ESLint Warnings

When creating an ESLint rule, it may not always be possible to cover every edge case and eliminate all false positives. Such rules have been configured as warnings instead of errors. These warnings are not flagged during pre-commit hooks or CI checks. Nevertheless, ESLint warnings also need to be treated in the same way as ESLint errors. It's recommended to review and address them whenever feasible. However, if you find that the suggestion does not apply to your specific situation, you have the flexibility to disregard it.

Other references

版本与发布记录

@bigbinary/eslint-plugin-neeto 共发布 146 个版本,首次发布于 2022/08/01;过去 12 个月发布了 22 个版本。

版本发布日期距今
1.13.0latest2026/10/309 天前
1.12.32026/10/309 天前
1.12.22026/10/2118 天前
1.12.12026/10/1425 天前
1.12.02026/10/1425 天前
1.11.62026/09/101 个月前

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

@bigbinary/eslint-plugin-neeto 是什么?

An ESLint plugin for enforcing common front-end best practices specifically for neeto.

如何安装 @bigbinary/eslint-plugin-neeto?

在项目目录运行 npm install @bigbinary/eslint-plugin-neeto,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:ramda(0.29.0)、eslint(^9.25.1)、i18next(21.7.0)、@bigbinary/neeto-cist(^1.0.3)、@bigbinary/neeto-commons-frontend(4.13.38)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bigbinary/eslint-plugin-neeto 支持 TypeScript 吗?

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

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

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

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

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

@bigbinary/eslint-plugin-neeto 可以商用吗?

@bigbinary/eslint-plugin-neeto 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

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

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

@bigbinary/eslint-plugin-neeto 还在维护吗?

最新版本 1.13.0 发布于 2026/10/30(9 天前);至今共发布 146 个版本,其中过去 12 个月发布了 22 个;首次发布于 2022/08/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。