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

@rdlabo/eslint-plugin-rules

v22.1.0

Published

ESLint rules and presets for Ionic, Angular, TypeScript, and Cloudflare Workers

Readme

@rdlabo/eslint-plugin-rules

npm version License: MIT

Shared code conventions for Angular and Ionic applications, with framework-independent TypeScript presets for Cloudflare Workers. Catch inconsistent component boundaries, template usage, and implicit timezone operations during linting, before they reach code review.

Choose the policies your project needs: Angular and Ionic defaults, focused Workers error boundaries, or an optional companion to @rdlabo/workers-timezone. The Workers entry point does not load Angular or Ionic.

Install

Install the plugin as a development dependency in an ESLint project:

npm install --save-dev @rdlabo/eslint-plugin-rules

For Angular and Ionic rules, also install the corresponding framework peers below. For a complete setup, follow Configuration.

Requirements

| Package | Supported version | | --------------------------------- | ----------------------------- | | Node.js | 20 or later | | ESLint | 9 or later | | @typescript-eslint/utils | 8.33 or later, before 9 | | @angular-eslint/template-parser | 21.x or 22.x | | @ionic/angular | 9.x when Ionic rules are used | | @ionic/core | 9.x when Ionic rules are used |

Choose an entry point

| Preset | Entry point | Purpose | | ------------------------------ | ---------------------------------------- | ------------------------------------------------------ | | recommended | @rdlabo/eslint-plugin-rules | Angular and Ionic conventions for TypeScript and HTML | | workers/recommended | @rdlabo/eslint-plugin-rules/typescript | Opt-in Workers try/catch policy | | workers-timezone/recommended | @rdlabo/eslint-plugin-rules/typescript | Opt-in companion policy for @rdlabo/workers-timezone |

The Angular recommended preset ships with the package root. The two Workers presets are independent opt-ins on /typescript; neither includes the other.

For timezone conversions and calendar boundaries, see the @rdlabo/workers-timezone usage guide. The library performs runtime conversions; the optional ESLint preset flags statically identifiable implicit timezone operations and misplaced initialization calls. It does not validate every dynamic value or enforce a single initialization across the entire application.

The recommended preset is designed for ESLint Flat Config. Add it at the top level so its TypeScript and HTML file selectors remain intact.

For Ionic templates, the preset also requires ion-item elements inside ion-list to use ion-item-group, ion-reorder-group, ion-radio-group, or ion-accordion within ion-accordion-group, matching the iOS 26 and Material Design 3 list structure.

Documentation

  • Configuration — copy a setup for Angular/Ionic, TypeScript, or Workers.
  • Rules — compare preset coverage, options, and examples.
  • Migration guide — update an existing installation.

Full documentation: https://docs.rdlabo.dev/projects/eslint-plugin-rules

Support This Project

Enjoying this project? Your support helps keep it alive and growing. Sponsoring means you directly contribute to new features, improvements, and maintenance.

Become a Sponsor

Prerelease channels

An open, non-draft pull request can be published to the npm beta dist-tag after its CI and Package Candidate workflows pass. A repository owner or maintainer must add a comment whose entire body is:

/beta

The request authorizes only the pull request head SHA that existed when the comment was added. The workflow revalidates the owner or maintainer permission and head SHA immediately before publishing. Any new commit requires CI to pass again and a fresh owner or maintainer /beta comment. Fork pull requests are supported. Pull requests that change a release-gating workflow cannot be beta-published until those workflow changes land on main.

Beta versions use <base>-beta.pr<PR number>.sha<12-character SHA>. The candidate is built in a read-only workflow without npm publishing credentials. The privileged release workflow publishes only the validated immutable package artifact with lifecycle scripts disabled. A notification failure cannot invalidate a successful npm publish.

When a pull request is merged into main, it is automatically published to beta only after the required CI and Package Candidate succeed for that exact merge commit. Direct pushes to main do not publish a candidate.

Only npm run release creates a release tag. Stable vX.Y.Z tags publish to npm latest; revision/prerelease tags publish to next. Neither beta nor next publishing changes the npm latest dist-tag.

Maintainers

License

This project is licensed under the MIT License. See the LICENSE file for details.