npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nest-boot/eslint-plugin

v8.2.0

Published

Nest Boot 日常代码规范规则。`@nest-boot/eslint-config` 默认启用以下规则:

Readme

@nest-boot/eslint-plugin

Nest Boot 日常代码规范规则。@nest-boot/eslint-config 默认启用以下规则:

| 规则 | 用途 | | ------------------------------------------------ | ----------------------------------------- | | @nest-boot/entity-property-definite-assignment | 检查实体字段的确定赋值断言 | | @nest-boot/entity-property-config-from-types | 根据 TypeScript 类型检查实体字段配置 | | @nest-boot/entity-property-no-spread | 要求实体属性装饰器显式列出配置选项 | | @nest-boot/graphql-field-definite-assignment | 检查 GraphQL 字段的确定赋值断言 | | @nest-boot/graphql-field-config-from-types | 根据 TypeScript 类型检查 GraphQL 字段配置 | | @nest-boot/queue/processor-name | 检查处理器名称与队列类名一致 |

单独使用插件时,默认导出注册为 @nest-boot,Queue 规则使用具名导出 queuePlugin:

import nestBootPlugin, { queuePlugin } from "@nest-boot/eslint-plugin";
import tsParser from "@typescript-eslint/parser";

export default [
  {
    files: ["**/*.ts"],
    languageOptions: {
      parser: tsParser,
      parserOptions: { projectService: true },
    },
    plugins: { "@nest-boot": nestBootPlugin, "@nest-boot/queue": queuePlugin },
    rules: {
      "@nest-boot/entity-property-config-from-types": "error",
      "@nest-boot/entity-property-definite-assignment": "error",
      "@nest-boot/entity-property-no-spread": "error",
      "@nest-boot/graphql-field-config-from-types": "error",
      "@nest-boot/queue/processor-name": "error",
    },
  },
];

@nest-boot/queue/processor-name

要求 @Processor(EmailQueue) 对应的类命名为 EmailProcessor。规则从队列类名去掉末尾的 Queue,再加上 Processor;例如 JobQueue 对应 JobProcessor。队列的 Redis 名称不影响检查。

@Processor(EmailQueue)
export class EmailProcessor extends BaseProcessor {}

// 报错:应命名为 EmailProcessor。
@Processor(EmailQueue)
export class SmsProcessor extends BaseProcessor {}

支持装饰器和队列的导入别名、命名空间导入。启用 TypeScript 类型信息时还会解析队列实际类名,包括通过变量或对象属性引用的队列。无法静态确定名称的表达式会跳过检查。规则仅报告错误,不自动重命名类和引用。

移除旧迁移规则配置

已移除 import-bullmq、import-queue、import-mikro-orm、import-database、import-graphql,不提供兼容别名。删除自定义 ESLint 配置中的对应条目,包括设为 off 的条目。

包名、导入路径和旧 API 的迁移由开发者手动完成。实体字段规则也不再迁移旧 MikroORM 装饰器、命名空间导入、重导出或 @mikro-orm/knex 路径;字段配置修复仍会添加所需的当前 API 导入。

实体确定赋值规则统一命名为 entity-property-definite-assignment;使用手写 ESLint 配置的项目需要同步更新该规则的配置键。