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

edsger-lint

v0.1.0

Published

Shared ESLint configurations for Edsger projects

Readme

edsger-lint

Shared lint configurations for TypeScript projects. Currently provides ESLint configs; Prettier and commitlint configs coming soon.

Install

npm install edsger-lint eslint --save-dev

ESLint Setup

Create eslint.config.mjs in your project root and compose the presets you need:

Next.js

import nextPlugin from '@next/eslint-plugin-next'
import { baseConfig, next, react, typeCheckedRules } from 'edsger-lint/eslint'

export default [
  ...baseConfig,
  ...typeCheckedRules(import.meta.dirname),
  ...react,
  ...next,
  nextPlugin.flatConfig.coreWebVitals,
]

React (Vite, Electron renderer, etc.)

import { baseConfig, react, typeCheckedRules } from 'edsger-lint/eslint'

export default [
  ...baseConfig,
  ...typeCheckedRules(import.meta.dirname),
  ...react,
]

React Native / Expo

import { baseConfig, reactNative, typeCheckedRules } from 'edsger-lint/eslint'

export default [
  ...baseConfig,
  ...typeCheckedRules(import.meta.dirname),
  ...reactNative,
]

Node.js (CLI tools, SDKs, servers)

import { baseConfig, node, typeCheckedRules } from 'edsger-lint/eslint'

export default [
  ...baseConfig,
  ...typeCheckedRules(import.meta.dirname),
  ...node,
]

Deno Edge Functions

import { baseConfig, deno } from 'edsger-lint/eslint'

export default [...baseConfig, ...deno]

Presets Reference

| Export | Description | | ----------------------- | --------------------------------------------------------------------------------------------------------------------------- | | baseConfig | TypeScript strict + stylistic, import sorting, security, code quality, naming conventions, Prettier compat. Use everywhere. | | typeCheckedRules(dir) | Async/await safety, exhaustive switches. Pass import.meta.dirname. Requires tsconfig.json. | | react | React + Hooks + jsx-a11y accessibility rules. | | reactNative | Same as react but with a11y rules disabled (RN has its own accessibility system). | | next | Next.js relaxations — spread after react. Disables rules handled by Next.js Link/Image. | | node | Node.js globals + no-buffer-constructor. | | deno | Relaxes console, require, and no-explicit-any for Deno Edge Functions. |

Adding Project-Specific Overrides

Append override objects after the presets:

import { baseConfig, node, typeCheckedRules } from 'edsger-lint/eslint'

export default [
  ...baseConfig,
  ...typeCheckedRules(import.meta.dirname),
  ...node,

  // Project-specific
  {
    rules: {
      'no-console': 'off',
      '@typescript-eslint/no-explicit-any': 'warn',
    },
  },
]

Re-exports

For cases where presets aren't enough, plugins and utilities are re-exported:

import {
  globals,
  jsxA11yPlugin,
  reactHooksPlugin,
  reactPlugin,
} from 'edsger-lint/eslint'

Rule Philosophy

  • error = blocks commit, must be clean
  • warn = shows in output, fix incrementally

Security rules (no-eval, no-new-func, etc.) and type safety rules are always errors. Complexity and style rules are warnings.

Peer Dependencies

  • eslint >= 9

License

MIT