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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@elgato/eslint-config

v0.3.1

Published

ESLint configuration used by Elgato projects.

Readme

@elgato/eslint-config

ESLint configuration used by Elgato projects.

@elgato/eslint-config npm package Join the Marketplace Makers Discord Elgato homepage

Installation

npm install @elgato/eslint-config --save-dev

Usage

Create an eslint.config.js file at the root of your project.

// eslint.config.js
import { config } from "@elgato/eslint-config";

export default config.recommended;

Then add a linting script to your package.json file.

{
    "scripts": {
        "lint": "eslint --max-warnings 0"
    }
}

Finally, to test everything is working run npm run lint.

Configuration

There are two configurations available:

  • Recommended — config.recommended
  • Strict — config.strict (stricter type enforcing)

All configurations are tailored for TypeScript, with the strict configuration enforcing stricter types through explicit return types. Additionally, all configurations emphasize the importance of well-documented code (jsdocs) and encourages structured code in the form of member ordering.

Extends

  • JSDoc recommended
  • ESLint recommended
  • TypeScript ESLint recommended

Rules

| Rule | Recommended | Strict | Notes | | ------------------------------------------ | ------------ | ------------ | --------------------------------------------------------------------- | | Indent: Tabs | ⚠️ Warn | ⚠️ Warn | | | JSDoc: Check tag names | ⚠️ Warn | ⚠️ Warn | Additional tags: csspart, cssproperty, jest-environment, slot | | JSDoc: No undefined types | ⚠️ Warn | ⚠️ Warn | | | JSDoc: Require JSDoc | ⚠️ Warn | ⚠️ Warn | | | JSDoc: Require Returns | ⚠️ Warn | ⚠️ Warn | Disabled for getters. | | TypeScript: Explicit function return types | ✅ Off | ⚠️ Warn | Disabled for JavaScript, tests, and mock files. | | TypeScript: Explicit member accessibility | ⚠️ Warn | ⚠️ Warn | No public required constructor. | | TypeScript: Member ordering | ⚠️ Warn | ⚠️ Warn | Grouped by type and then access, and ordered alphabetically. | | TypeScript: Sort type constituents | ⚠️ Warn | ⚠️ Warn | |

Additionally, the following rules are disabled for test and mock files:

  • TypeScript: No explicit any
  • TypeScript: No require imports

Variants

  • Mocks and tests

    • Allow any and require.
    • Do not require explicit return types.

Ignored

  • .github/
  • bin/
  • dist/
  • node_modules/

Member Ordering

Members of a class should be grouped by type and then by access, and ordered alphabetically. The ordering is as follows:

Type Order

  • Fields
  • Constructors
  • Signatures / call signatures
  • Properties (get / set)
  • Methods

Access Order

  • Public (static / abstract / regular)
  • Protected (static / abstract / regular)
  • Private (static / abstract / regular)

Overrides

Configuration settings can be overriden using the defineConfig helper function from ESLint, extending @elgato/eslint-config, and then defining your preferred settings.

// eslint.config.js
import { defineConfig } from "eslint/config";
import { config } from "@elgato/eslint-config";

export default defineConfig([
	{
		extends: [export default config.recommended],

		// Anything from here will override @elgato/eslint-config
		rules: {
			"no-unused-vars": "warn",
		},
	},
]);

Learn more about overriding settings.