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

@mikode13/code-quality

v0.1.0

Published

Shared ESLint code-quality configuration for MiKode projects.

Downloads

294

Readme

@mikode13/code-quality

Shared, batteries-included ESLint flat configurations for MiKode TypeScript and React projects.

Status: Experimental. The API and rule set may change before version 1.0.0.

Compatibility

  • Node.js ^22.13.0 || ^24.0.0.
  • ESLint ^10.8.0.
  • TypeScript 6 through the bundled typescript-eslint toolchain.
  • React 18 and 19 for the React configuration.

The package uses ESLint 10 with @eslint-react/eslint-plugin and eslint-plugin-jsx-a11y-x. These normal, non-prerelease releases support ESLint 10 and avoid the vulnerable minimatch 3 dependency line used by the earlier React plugin selection. All tool dependencies are pinned exactly, and pnpm run check audits the production graph. The decision is tracked by ADR 0007.

eslint-plugin-jsx-a11y-x remains on a pre-1.0 version line. Its API is contained behind this package's /react export, so consumers do not configure or version it directly.

Installation

Install the package alongside its only consumer-managed peer dependency:

pnpm add --save-dev @mikode13/code-quality eslint@^10.8.0

The TypeScript parser, TypeScript, import resolver, React plugins, accessibility plugin, and shared rule presets are dependencies of this package. Consuming projects do not need to install or coordinate those packages separately.

pnpm 11 also requires each project to review dependency lifecycle scripts. Add these decisions to the consuming project's pnpm-workspace.yaml:

allowBuilds:
  '@mikode13/code-quality': false
  unrs-resolver: true

The shared package's published preinstall guard is not needed while it is being consumed, so it remains blocked. unrs-resolver is the reviewed native dependency used by the TypeScript import resolver.

TypeScript usage

Create eslint.config.js in the consuming project:

import codeQuality from '@mikode13/code-quality/base';

export default [
	...codeQuality,
	{
		// Add project-specific ignores or stricter local rules after the shared config.
		ignores: ['generated/**'],
		rules: {
			eqeqeq: 'error',
		},
	},
];

Add scripts that reject warnings in CI:

{
	"scripts": {
		"lint": "eslint . --max-warnings 0",
		"lint:fix": "eslint . --fix"
	}
}

React usage

React 18 and 19 projects use the React export instead:

import codeQuality from '@mikode13/code-quality/react';

export default [...codeQuality];

The React configuration is framework-neutral. It enables stable React and DOM rules, the official React Hooks rules, browser globals, and static JSX accessibility rules. React Server Component and experimental rules are disabled until MiKode selects an SSR framework. React 19 migration suggestions that would reject valid React 18 APIs are also disabled while both versions are supported.

Type-aware linting and tsconfig layout

Type-aware rules use parserOptions.projectService. Each linted TypeScript file must be included by a nearby tsconfig.json, just as it must be for editor type information.

A single project may include source and tests together:

{
	"include": ["src", "tests"]
}

Alternatively, tests may have a separate configuration:

project/
├── tsconfig.json
├── src/
└── tests/
    ├── tsconfig.json
    └── example.test.ts

projectService selects the closest configuration for each file, so both layouts are supported without a dedicated tsconfig.eslint.json.

Included policy

The base export provides:

  • ESLint recommended correctness rules.
  • typescript-eslint strict type-checked and stylistic type-checked presets.
  • Type information through TypeScript project service.
  • Circular-import and duplicate-import detection through eslint-plugin-import-x.
  • Consistent type-only imports.
  • Errors for unused ESLint disable directives and inline configuration.
  • Ignores for dependency, build, coverage, and cache output.

The React export adds:

  • @eslint-react/eslint-plugin recommended JavaScript and TypeScript rules, excluding experimental, React Server Component, and React 19-only migration rules.
  • The official React Hooks recommended rules.
  • eslint-plugin-jsx-a11y-x recommended static accessibility rules.

Formatting rules are deliberately excluded. MiKode uses Prettier through @mikode13/code-style for formatting.

Every eslint-disable directive in a consuming project must include a comment explaining why the shared rule does not apply there. Project-wide rule changes should be appended in the local flat configuration and documented in that project's README.

Verification and manual publishing

pnpm install --frozen-lockfile
pnpm run check
pnpm login
pnpm publish --access public

The check includes a production dependency audit. Publishing remains manual while MiKode decides its cross-project release and versioning policy, and the first release still requires the adoption validations in the MiKode code-quality standard.

License

This package is source-available under the MIT License with the Commons Clause License Condition v1.0. It is not released under an MIT-only or open-source license. See LICENSE for the complete terms.