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

@benhutchins/eslint-joy

v1.0.1

Published

Opinionated ESLint flat config with TypeScript, React, and Next.js presets

Downloads

1,137

Readme

eslint-joy

Opinionated ESLint flat config with TypeScript, React, and Next.js presets.

One import. Zero friction. Just joy.

Install

bun add -d @benhutchins/eslint-joy eslint

Quick Start

Create an eslint.config.js (or eslint.config.ts) at your project root:

import joy from '@benhutchins/eslint-joy'

export default joy()

That's it — you get TypeScript, import sorting, stylistic rules, and cycle detection out of the box.

Options

import joy from '@benhutchins/eslint-joy'

export default joy({
  typescript: true,   // TypeScript rules (default: true)
  react: false,       // React + React Hooks rules (default: false)
  next: false,        // Next.js rules — implies react (default: false)
  node: false,        // Node.js rules (default: false)
  cycles: true,       // Circular dependency detection (default: true)
  ignores: [],        // Additional glob patterns to ignore
  overrides: [],      // Additional ESLint config objects appended last
})

Examples

TypeScript project (default)

import joy from '@benhutchins/eslint-joy'

export default joy()

React project

bun add -d eslint-plugin-react eslint-plugin-react-hooks
import joy from '@benhutchins/eslint-joy'

export default joy({ react: true })

Next.js project

bun add -d eslint-plugin-react eslint-plugin-react-hooks @next/eslint-plugin-next
import joy from '@benhutchins/eslint-joy'

export default joy({ next: true })

Node.js project

bun add -d eslint-plugin-n
import joy from '@benhutchins/eslint-joy'

export default joy({ node: true })

Full-stack Next.js + Node

import joy from '@benhutchins/eslint-joy'

export default joy({
  next: true,
  node: true,
})

With project-specific overrides

import joy from '@benhutchins/eslint-joy'

export default joy({
  react: true,
  ignores: ['**/generated/**'],
  overrides: [
    {
      files: ['**/*.test.ts'],
      rules: {
        'no-console': 'off',
      },
    },
  ],
})

Manual composition

If you prefer full control, import individual configs directly:

import { base, imports, ignores, react } from '@benhutchins/eslint-joy'

export default [
  ...ignores(),
  ...base({ typescript: true }),
  ...imports({ cycles: false }),
  ...react(),
]

What's Included

Always on

| Category | Details | |---|---| | Stylistic | 2-space indent, single quotes, no semicolons, trailing commas, 160 char line limit | | Best practices | prefer-const, eqeqeq, no-eval, object-shorthand, prefer-template, and more | | Imports | Auto-sorted imports/exports, unused import removal, no duplicates, no self-imports | | TypeScript | consistent-type-imports, no-explicit-any (warn), prefer-optional-chain, switch-exhaustiveness-check | | Cycle detection | import-x/no-cycle (disable with cycles: false if slow on large codebases) |

Opt-in

| Preset | Flag | Peer dependencies | |---|---|---| | React | react: true | eslint-plugin-react, eslint-plugin-react-hooks | | Next.js | next: true | eslint-plugin-react, eslint-plugin-react-hooks, @next/eslint-plugin-next | | Node.js | node: true | eslint-plugin-n |

Performance Notes

Cycle detection (import-x/no-cycle) runs with unbounded depth by default. On very large codebases this can be slow. Disable it if lint times are a concern:

export default joy({ cycles: false })

Requirements

  • Node.js >= 18
  • ESLint >= 9 (flat config)
  • ESM only ("type": "module" in your package.json)

License

MIT