@bigbinary/neeto-audit-frontend

中文文档
2.6.0发布于 2026/07/30UNLICENSEDES Module近 30 天下载 2006

Audits neeto frontend codebase for issues and suggests a fix.

原始使用文档
文档目录8 节
  1. Getting Started
  2. Installation
  3. Run the audit
  4. Targets
  5. Add CI check
  6. Making changes to the configuration
  7. Development instructions
  8. Building and Releasing

neeto-audit-frontend

A package that audits neeto frontend packages for neeto-specific configuration and guidelines and suggests a fix.

Getting Started

neeto-audit-frontend has 5 checks to ensure neeto guidelines are being followed:

  • Checks whether the package uses the common ESlint configuration from neeto-commons-frontend.
  • Checks whether the package uses the common prettier and tailwind configurations.
  • Checks whether the package uses the same set of husky pre-commit and pre-push hooks.
  • Checks whether the package uses the specified node version in .node-version and .nvmrc files.
  • Checks whether the package uses the recommended versions of common npm packages including other neeto packages.

There are different types of frontend packages in neeto: nanos, widgets, extensions and frontend packages.neeto-audit-frontend maintains a local copy of the common configuration and a different local copy if any type of package follows a different configuration. For example, ESlint configuration is different for nanos, widgets and extensions. A local copy is maintained for each of these. The files in a package are tested against these versions to see if they match. If any check fails, it will provide the command that the user can run to fix that specific check before committing.

Installation

yarn add -D "@bigbinary/neeto-audit-frontend@latest"

Run the audit

yarn neeto-audit-frontend                 # report what is not compliant, change nothing
yarn neeto-audit-frontend -a              # fix everything that can be fixed automatically
yarn neeto-audit-frontend -a <targets>    # fix only the listed targets
yarn neeto-audit-frontend <targets>       # report only the listed targets, change nothing
yarn neeto-audit-frontend -l              # print the targets available in this repo, then run

<targets> is a comma separated list. Without it the audit behaves exactly as it always has, so the CI check and the pre-push hook are unaffected. With it, only the listed targets run, which keeps a routine version bump to a reviewable diff instead of also rewriting the husky, prettier, tailwind and ESLint config.

yarn neeto-audit-frontend -a @bigbinary/neeto-commons-frontend, @bigbinary/neeto-icons
yarn neeto-audit-frontend -a eslint, prettier

Targets

Any package name is a valid target, whether it is a neeto package listed at https://ops.neetotower.com/api/v1/public/nanos or one of the recommended third party dependencies such as axios or prettier. Besides package names, these targets are accepted:

TargetWhat it does
packagesBumps every dependency to its recommended version
node-versionUpdates .node-version and .nvmrc
huskyResyncs the husky hooks and their helper scripts
prettierResyncs the prettier and tailwind config
eslintResyncs the ESLint config

Targets may be separated by commas, whitespace, or both, so -a eslint,prettier, -a eslint, prettier and -a "eslint prettier" are all the same.

Naming a check explicitly always runs it in full, so in -a packages, @bigbinary/neeto-icons the packages check bumps every dependency rather than only the named one.

A target that is not recognised prints a warning with the closest matches, and the run continues with the targets that were recognised. -l is a modifier rather than a mode: it prints the target table and then carries on with whatever the rest of the command asked for.

Add CI check

Add the following lines to the neetoCI YAML file.

setup:
  - yarn install
jobs:
  - name: CiChecks
    commands:
      - yarn neeto-audit-frontend

Making changes to the configuration

If any changes are made to the configuration files being checked by neeto-audit-frontend, the audit check will fail. If this change is necessary, we should make the same changes in the local copy maintained in neeto-audit-frontend to ensure the checks will pass.

Development instructions

neeto-audit-frontend uses pnpm as the package manager. To setup the development environment run pnpm install after cloning the repository. After making changes to the verifiers, we can test the changes locally by using yalc. Follow the steps mentioned in Testing frontend packages to test the changes.

If, for any reason, yarn neeto-audit-frontend command fails after pushing the changes using yalc, run yarn install --check-files.

Building and Releasing

The @bigbinary/neeto-audit-frontend gets published to NPM when we merge a PR with patch, minor or major label to the main branch. The patch label is used for bug fixes, minor label is used for new features and major label is used for breaking changes. You can checkout the Create and publish releases workflow in GitHub Actions to get a live update. Please note that before publishing the package, you need to verify the functionality in some of the neeto web-apps locally using yalc package manager.

版本与发布记录

@bigbinary/neeto-audit-frontend 共发布 48 个版本,首次发布于 2023/07/12;过去 12 个月发布了 11 个版本。

版本发布日期距今
2.6.0latest2026/07/303 个月前
2.5.52026/07/213 个月前
2.5.42026/07/094 个月前
2.5.32026/07/094 个月前
2.5.12026/07/024 个月前
2.5.02026/06/244 个月前

关于 @bigbinary/neeto-audit-frontend 的常见问题

@bigbinary/neeto-audit-frontend 是什么?

Audits neeto frontend codebase for issues and suggests a fix.

如何安装 @bigbinary/neeto-audit-frontend?

在项目目录运行 npm install @bigbinary/neeto-audit-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@bigbinary/neeto-cist(^1.0.8)、@bigbinary/neeto-commons-frontend(^3.1.10)、ramda(^0.29.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 neeto-audit-frontend,可以用 npx neeto-audit-frontend 直接运行。

@bigbinary/neeto-audit-frontend 支持 TypeScript 吗?

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

@bigbinary/neeto-audit-frontend 支持 ESM 还是 CommonJS?

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

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

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

@bigbinary/neeto-audit-frontend 可以商用吗?

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

@bigbinary/neeto-audit-frontend 的下载量有多少?

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

@bigbinary/neeto-audit-frontend 还在维护吗?

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