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

@benjavicente/lint-angular

v0.0.4

Published

Oxlint/ESLint-compatible rules for Angular.

Readme

@benjavicente/lint-angular

Opinated Oxlint/ESLint-compatible plugin for Angular project rules.

Rules

| Rule | Default | Fixable | Description | | ----------------------------------------------------------------------------------------------------- | ------- | ------- | -------------------------------------------------------------------------------------------- | | rules-of-inject | ✅ | | Restrict inject() usage to valid Angular injection contexts. | | avoid-explicit-injection-context | ✅ | | Avoid explicit injection-context APIs such as inject(Injector) and runInInjectionContext. | | avoid-explicit-subscription-management | ✅ | | Avoid storing and manually managing RxJS subscriptions in Angular classes. | | avoid-inappropriate-intimacy | ✅ | | Avoid passing Angular component, directive, and service instances as function arguments. | | avoid-ng-modules | ✅ | | Avoid NgModules in favor of standalone Angular APIs. | | avoid-rxjs-state-in-component | ✅ | | Avoid RxJS subjects for component and directive-local state. | | avoid-writing-signals-in-reactive-context | ✅ | | Avoid writing to signals from reactive Angular contexts. | | class-member-order | ✅ | | Enforce a consistent member order for Angular classes. | | class-matches-filename | ✅ | | Require Angular class names to match component, directive, and service filenames. | | component-resource-filenames | ✅ | | Require component resource filenames to match the component TypeScript filename. | | decorator-filename-suffix | ✅ | | Require Angular decorators to be declared in files with matching filename suffixes. | | injects-tanstack-query-only-in-component-body | ✅ | | Require TanStack Query inject helpers to be direct component/directive class fields. | | no-resource-api | ✅ | | Avoid Angular resource APIs for server state. | | no-route-resolvers | ✅ | | Avoid Angular route resolvers for data loading. | | no-ui-inheritance | ✅ | | Avoid inheritance for Angular components and directives. | | prefer-private-elements | ✅ | ✅ | Prefer ECMAScript private elements over TypeScript private members. | | prefer-load-component-over-load-children | ✅ | | Prefer loadComponent for lazy routes that load a standalone component. | | prefer-style-url | ✅ | ✅ | Prefer styleUrl when a component has exactly one stylesheet. | | public-component-interface | ✅ | ✅ | Keep component and directive signal interfaces public while hiding injected dependencies. | | restrict-injectable-provided-in | ✅ | | Restrict @Injectable providedIn values to root or platform. |

Oxlint setup

{
  "jsPlugins": ["@benjavicente/lint-angular"],
  "rules": {
    "@benjavicente/lint-angular/rules-of-inject": "error",
  },
}