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.6

Published

Oxlint/ESLint-compatible rules for Angular.

Downloads

90

Readme

@benjavicente/lint-angular

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

Rules

| Rule | Default | Fixable | Description | | ------------------------------------------------------------------------------------------------------------- | ------- | ------- | --------------------------------------------------------------------------------------------- | | 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. | | no-component-providers | | | Disallow providers on @Component (DI initialization footguns with inputs). | | no-explicit-injection-context | ✅ | | Avoid explicit injection-context APIs such as inject(Injector) and runInInjectionContext. | | no-explicit-subscription-management | ✅ | | Avoid storing and manually managing RxJS subscriptions in Angular classes. | | no-fake-async | ✅ | | Disallow Zone.js fake-async testing APIs from @angular/core/testing (Vitest-incompatible). | | no-inappropriate-intimacy | ✅ | | Avoid passing Angular component, directive, and service instances as function arguments. | | no-manual-change-detection | ✅ | | Avoid manual Angular change detection through ChangeDetectorRef. | | no-ng-modules | ✅ | | Avoid NgModules in favor of standalone Angular APIs. | | no-resource-api | ✅ | | Avoid Angular resource APIs for server state. | | no-route-resolvers | ✅ | | Avoid Angular route resolvers for data loading. | | no-rxjs-state-in-component | ✅ | | Avoid RxJS subjects for component and directive-local state. | | no-ui-inheritance | ✅ | | Avoid inheritance for Angular components and directives. | | no-writing-signals-in-reactive-context | ✅ | | Avoid writing to signals from reactive Angular contexts. | | prefer-load-component-over-load-children | ✅ | | Prefer loadComponent for lazy routes that load a standalone component. | | prefer-private-elements | ✅ | ✅ | Prefer ECMAScript private elements over TypeScript private members. | | 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. | | rules-of-inject | ✅ | | Restrict inject() usage to valid Angular injection contexts. | | tanstack-query-injects-only-in-component-body | ✅ | | Require TanStack Query inject helpers to be direct component/directive class fields. | | tanstack-query-inlined-keys | ✅ | | Require TanStack Query query option keys to be inline arrays. | | tanstack-query-prefer-query-options | ✅ | | Prefer queryOptions() to co-locate TanStack Query query keys and functions. |

Oxlint setup

Recommended (all default rules)

Spread the preset in oxlint.config.ts:

import { defineConfig } from "oxlint";
import lintAngular from "@benjavicente/lint-angular";

export default defineConfig({
  jsPlugins: ["@benjavicente/lint-angular"],
  rules: {
    ...lintAngular.configs.recommended.rules,
  },
});

Individual rules

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