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

@sheplu/eslint-config-json

v0.10.3

Published

Opinionated ESLint rules and config for consistent, high-quality JSON with zero setup.

Downloads

813

Readme

@sheplu/eslint-config-json

npm version quality gates upstream drift license

Opinionated, exhaustive configuration for @eslint/json — ready to drop into an ESLint 10+ flat config for JSON, JSONC, and JSON5 files.

Every non-deprecated upstream rule is configured explicitly, so nothing is left to defaults and nothing silently changes when @eslint/json ships a new rule — a scheduled CI job diffs the package against the upstream rule index every week and opens an issue on drift.

Installation

npm install --save-dev @sheplu/eslint-config-json eslint @eslint/json

Requires eslint >= 10 (flat config), @eslint/json >= 1, and Node >= 24.

Usage

Drop-in configs for each language variant (defaultJsonConfig, defaultJsoncConfig, defaultJson5Config) wire the plugin, the language, and the rules in one object:

import { defineConfig } from 'eslint/config';
import {
    defaultJsonConfig,
    defaultJsoncConfig,
    defaultJson5Config,
} from '@sheplu/eslint-config-json';

export default defineConfig([
    defaultJsonConfig,
    defaultJsoncConfig,
    defaultJson5Config,
]);

Or use jsonRules on its own if you want to supply your own files glob, plugins, or language:

import { defineConfig } from 'eslint/config';
import { jsonRules } from '@sheplu/eslint-config-json';
import json from '@eslint/json';

export default defineConfig([
    {
        files: [ '**/*.json' ],
        plugins: { json },
        language: 'json/json',
        extends: [ jsonRules ],
    },
]);

Exports

| Export | Type | Purpose | | --------------------- | ------------------- | ------------------------------------------------------------- | | jsonRules | Linter.Config[] | Rule bundle only — bring your own files/plugins/language. | | defaultJsonConfig | Linter.Config | Ready-to-use flat-config for **/*.json (json/json). | | defaultJsoncConfig | Linter.Config | Ready-to-use flat-config for **/*.jsonc (json/jsonc). | | defaultJson5Config | Linter.Config | Ready-to-use flat-config for **/*.json5 (json/json5). |

Every rule is set to error with options spelled out explicitly. If you need a more permissive baseline, override rules individually in your own config.

Recommended editor setup

VS Code with the ESLint extension enabled. Add this to your .vscode/settings.json:

{
  "editor.formatOnSave": true,
  "eslint.validate": [ "json", "jsonc", "json5" ]
}

Scripts

npm test                 # run the test suite (includes upstream drift check)
npm run test:coverage    # run tests with coverage
npm run lint             # lint the package itself
npm run lint:fix         # lint with autofix
npm run setup:hooks      # wire .githooks/ as the git hooks path (run once)

Upstream drift

test/review-rules.js fetches the eslint/json rule docs index via the GitHub contents API and diffs it against the configured rule set. This runs:

  • as part of npm test,
  • on a weekly schedule (.github/workflows/eslint-rules-drift.yaml), which opens a GitHub issue if new rules appear, are renamed, or are removed upstream.

Contributing

See AGENTS.md for the short version of how this repo is laid out and the CI quality gates. A few things worth knowing up front:

  • Git hooks live in .githooks/. Run npm run setup:hooks once after cloning to point core.hooksPath there. The pre-commit hook runs lint and tests; the pre-push hook adds coverage and npm audit, and blocks direct pushes to main. (Hooks are opt-in because .npmrc sets ignore-scripts=true for supply-chain safety.)
  • AI tooling assets (agent rules, prompts) are distributed via apkg rather than committed. apkg.json and apkg-lock.json are in the repo; the resolved files under .codex/, .claude/, .cursor/, etc. are gitignored and materialized by running apkg install. CI does this automatically in quality-gates.yaml. If you contribute using an AI agent and want those rule files locally, install apkg and run it against this repo.