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

@dino-labs/eslint-config

v0.2.0

Published

Shared ESLint config for Dino Design: layout goes through Box, and every disable says why.

Readme

@dino-labs/eslint-config

The shared ESLint config for Dino Design, an open-source agentic design system. It keeps JSX on-system: layout goes through Box, and every disable comment says why. Its partner, @dino-labs/stylelint-config, does the same for stylesheets.

Early release. Versions 0.x may tighten rules between minor versions. The release notes list each change.

Install

npm install --save-dev @dino-labs/eslint-config eslint

The config sets rules, not a parser. A TypeScript app already has one from typescript-eslint:

// eslint.config.js
import brand from '@dino-labs/eslint-config';
import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';

export default defineConfig(tseslint.configs.recommended, brand);

What it checks

  • Layout through Box. A raw <div>, <section>, <nav> or any other element Box renders is an error: use <Box as="nav">, whose props take Dino Design's tokens. Text, links, buttons and media have their own components and aren't affected. Member expressions such as <motion.div> pass.
  • Disable comments explain themselves. Each needs a reason after --, and one that disables nothing is an error.
return (
  // eslint-disable-next-line no-restricted-syntax -- the map library measures this element itself
  <div ref={mapRef} />
);

Options

// eslint.config.js
import { brand } from '@dino-labs/eslint-config';

export default [...brand({ layoutElements: 'warn', deprecations: true })];
  • layoutElements: 'error' (the default) or 'warn', for an app still moving onto Dino Design.
  • deprecations: adds @typescript-eslint/no-deprecated, which flags deprecated Dino Design components and props. It needs type information, so register typescript-eslint's typed linting first, for example with tseslint.configs.recommendedTypeChecked. Its strictTypeChecked preset already includes the rule.
  • files: the files the layout rule applies to. Defaults to every .jsx and .tsx file.

The layout rule is ESLint's no-restricted-syntax. If your config sets that rule too, the later setting replaces the earlier one, so add Dino Design's entries to yours:

import { layoutElementRestrictions } from '@dino-labs/eslint-config';

const rules = {
  'no-restricted-syntax': ['error', ...layoutElementRestrictions, yourEntry],
};

Escapes

Dino Design has three levels of escape, so deviation stays visible rather than impossible:

  1. Sanctioned: Box's narrow style prop, for layout tokens can't express, such as gridTemplateAreas or aspectRatio. No comment needed.
  2. Logged: a disable comment with a reason, like the one above. A margin other than 0 always needs one.
  3. Signal: three disables for the same need suggest something Dino Design is missing. Open a gap on the Dino Design repository.

License

MIT © 2026 Ibrahim Moazzam. See LICENSE.