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

@apicurio/eslint-config

v1.0.0

Published

This package provides Apicurio's ESLint configuration as an extensible shared config for ESLint 9+.

Readme

@apicurio/eslint-config

ESLint shareable config for Apicurio projects using ESLint 9+ flat config format.

Version Notes

  • v1.0.0+: Supports ESLint 9 with the new flat config format
  • v0.3.0 and earlier: Supports ESLint 8 with the legacy .eslintrc.* format

Installation

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

Note: This config is designed for TypeScript projects. The required TypeScript ESLint dependencies are included as dependencies of this package, so you don't need to install them separately.

Usage

ESLint 9 (Flat Config)

Create an eslint.config.js file in your project root:

import apicurioConfig from "@apicurio/eslint-config";

export default [
    ...apicurioConfig,
    {
        // Additional project-specific configuration
        rules: {
            // Override or add rules here
        }
    }
];

Advanced Usage with File Patterns

import apicurioConfig from "@apicurio/eslint-config";

export default [
    {
        ignores: ["dist/**", "build/**", "*.config.js"]
    },
    ...apicurioConfig,
    {
        files: ["**/*.ts", "**/*.tsx"],
        rules: {
            // TypeScript-specific overrides
        }
    }
];

Integrating with React and Other Plugins

import apicurioConfig from "@apicurio/eslint-config";
import reactPlugin from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";

export default [
    ...apicurioConfig,
    {
        plugins: {
            "react-hooks": reactPlugin,
            "react-refresh": reactRefresh
        },
        rules: {
            "react-hooks/rules-of-hooks": "error",
            "react-hooks/exhaustive-deps": "warn",
            "react-refresh/only-export-components": [
                "warn",
                { allowConstantExport: true }
            ]
        }
    }
];

Included Rules

This configuration includes:

  • ESLint recommended rules
  • TypeScript ESLint recommended rules
  • Custom Apicurio style preferences:
    • Double quotes for strings
    • Semicolons required
    • 4-space indentation
    • Function parameters aligned to first parameter
    • Switch cases indented by 1 space
    • Object curly brace spacing
    • Relaxed TypeScript type inference rules

Migration from v0.x (ESLint 8)

If you're upgrading from @apicurio/eslint-config v0.x:

  1. Update to ESLint 9: npm install --save-dev eslint@^9
  2. Update this package: npm install --save-dev @apicurio/eslint-config@^1
  3. Convert your .eslintrc.* file to eslint.config.js using the flat config format (see examples above)
  4. Remove old TypeScript ESLint dependencies if they were explicitly installed
  5. Update your lint script in package.json if needed (remove --ext flags as they're no longer needed)

License

Apache-2.0