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

@delement/eslint-config-master

v2.0.0

Published

Shareable ESLint 10 flat config for TypeScript and React projects with accessibility, import, stylistic, and security rules.

Downloads

432

Readme

ESLint Flat Config from Digital Element

ESLint 10 npm npm downloads license

Shareable ESLint 10 flat config for TypeScript and React projects. Includes accessibility, import ordering, promise safety, stylistic, and security rules out of the box.

Install

# npm
npm i -D eslint @delement/eslint-config-master

# yarn
yarn add -D eslint @delement/eslint-config-master

# pnpm
pnpm add -D eslint @delement/eslint-config-master

Requirements

  • Node.js 24+
  • ESLint 10+
  • Flat config (eslint.config.js|mjs|ts)

Quick Start

// eslint.config.ts
import eslintConfig from "@delement/eslint-config-master";
import type { Linter } from "eslint";

// project local rules
const local: Linter.Config[] = [];

// merged config
const config: Linter.Config[] = [
  ...eslintConfig,
  ...local,
];

export default config;

Code Examples

Example TypeScript code that matches the default rules:

type TUser = {
  name: string;
};

interface IUserService {
  getName: (user: TUser)=> string;
}

const user: TUser = {
  name: "Sam",
};

const userService: IUserService = {
  getName: (currentUser: TUser): string => {
    return currentUser.name;
  },
};

export {
  user,
  userService,
};

Example React TSX code that matches the default rules:

import {
  useEffect,
  useMemo,
  useState,
} from "react";

interface ICounterProps {
  start: number;
}

const Counter = ({ start }: ICounterProps): JSX.Element => {
  const [ value, setValue ] = useState(start);

  useEffect(() => {
    setValue(start + 1);
  }, [ start ]);

  const items = useMemo(() => [ 1, 2, 3 ], []);

  return (
    <div>
      {items.map((item) => (
        <div key={item}>{item}</div>
      ))}
      <div>{value}</div>
    </div>
  );
};

export {
  Counter,
};

What Is Included

  • JavaScript and TypeScript linting (.js, .jsx, .mjs, .cjs, .ts, .tsx, .mts, .cts)
  • React Hooks and React Refresh rules
  • JSX accessibility rules
  • Import rules and export sorting
  • JSDoc checks
  • Promise and security-focused rules
  • Naming conventions for TypeScript interfaces and type aliases

Important Defaults

  • @ts-ignore is disallowed
  • TypeScript enum names must use E prefix (for example, EStatus)
  • Empty object types ({}) are disallowed in TypeScript
  • Unnecessary type constraints (for example, T extends unknown) are warned
  • Anonymous default exports are disallowed
  • Functions prefixed with use are allowed even without Hook calls
  • useContext is allowed (React 19 use migration is not enforced)
  • Anchors with href="#" are allowed (invalid href aspect is relaxed)
  • Children.map, Children.toArray, and cloneElement are allowed
  • child_process usage is warned by security rules
  • Inline ESLint config comments are allowed (noInlineConfig: false)
  • Unused eslint-disable comments are treated as errors
  • Default ignored folders: node_modules, build, public, assets, dist, .temp, tmp, temp, .cache, cache, .husky

Narrow Runtime Environment (Optional)

The config ships with mixed browser + node globals by default. If you want stricter environment checks in your app, use built-in helpers:

import eslintConfig, {
  withBrowserGlobals,
  withNodeGlobals,
} from "@delement/eslint-config-master";

export default [
  ...eslintConfig,
  withBrowserGlobals(),
  withNodeGlobals(),
];

You can pass your own file patterns:

import eslintConfig, {
  withBrowserGlobals,
  withNodeGlobals,
} from "@delement/eslint-config-master";

export default [
  ...eslintConfig,
  withBrowserGlobals([ "src/client/**" ]),
  withNodeGlobals([ "src/server/**" ]),
];