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

@dsmith-dev/eslint-plugin

v0.5.0

Published

ESLint rules for dsmith: no hardcoded style values, prefer design-system components, no deprecated components

Readme

@dsmith-dev/eslint-plugin

ESLint rules for dsmith: no hardcoded style values, prefer design-system components, no deprecated components.

// eslint.config.js
import dsmith from "@dsmith-dev/eslint-plugin";

export default [dsmith.configs.recommended];

dsmith guard init adds this block to your flat config for you.

Rules

configs.recommended turns on all three (flat config only; eslintrc is not supported):

| Rule | Level | Reports | | --- | --- | --- | | dsmith/no-hardcoded-style | warn | A hardcoded style value. Exact matches get an auto-fix to the token reference; close matches get a suggestion only. | | dsmith/prefer-ds-component | warn | A non-DS component that has a design-system counterpart. | | dsmith/no-deprecated-component | error | A component the design system marks as deprecated. |

They use the same rule engine (evaluateFile in @dsmith-dev/core) as dsmith migrate and dsmith guard --ci.

Scope and behavior

  • JS/TS only. The rules run on js, jsx, mjs, cjs, ts, tsx, mts, cts files. CSS files are not linted by ESLint; they are checked by dsmith guard --ci.
  • Needs .dsmith/guard.json. The rules read the snapshot written by dsmith guard init (found by walking up from the linted file, or settings.dsmith.guardFile). If it is missing, the rules report nothing. If it is broken, the rules report nothing and Node prints one warning per process. In editors that warning goes to the ESLint server log, so check dsmith guard if lint seems silent.
  • Stale snapshot. If a token file changed after guard init, the first message in each file says so, and no-hardcoded-style offers its replacement as a suggestion instead of an auto-fix. Run dsmith guard init again.
  • Aliased imports. import { DialogContent as DC } and import * as UI (<UI.DialogContent />) are matched by the imported name.

--cache

ESLint's cache key covers file content and config, not .dsmith/guard.json. configs.recommended is a getter that adds settings.dsmith.snapshotHash (sha256 of guard.json, or "none"), so the cache is invalidated when the snapshot changes. The file is looked up from process.cwd() when the config is evaluated, once per ESLint run. If you point settings.dsmith.guardFile at a different file, or do not use configs.recommended, rerun without --cache after guard init. Token file edits are not part of the hash.

Docs: https://github.com/project-hh-org/dsmith#readme