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

@ycookiey/lint-config

v3.0.0

Published

Shared lint config for TypeScript and React: oxlint as the main linter, ESLint for the rest. For Next.js, also extend ./oxlint/next.

Readme

lint-config

@ycookiey/lint-config — a shared lint config for TypeScript and React that uses oxlint as the main linter and ESLint for the rules oxlint does not have.

Install

npm i -D @ycookiey/lint-config oxlint eslint typescript

Requires oxlint 1.85 or later, ESLint 10 or later, and Node.js 22.13 or later.

oxlint

.oxlintrc.json:

{
  "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
  "extends": ["./node_modules/@ycookiey/lint-config/oxlint/.oxlintrc.json"],
  "ignorePatterns": ["**/*.d.ts"]
}

oxlint's extends does not carry over the ignorePatterns of the extended config (checked with oxlint 1.85). To keep this config's ignore patterns, such as **/*.d.ts, repeat them in your own config.

Next.js

Also extend the Next.js config:

{
  "extends": [
    "./node_modules/@ycookiey/lint-config/oxlint/.oxlintrc.json",
    "./node_modules/@ycookiey/lint-config/oxlint/next/.oxlintrc.json"
  ]
}

ESLint

eslint.config.mjs (flat config):

import lintConfig from '@ycookiey/lint-config/eslint';
export default [
  ...lintConfig,
  // your project's overrides
];

In test files (*.test.*, *.spec.*, and files under __tests__/, test-utils/ and tests/), the function passed to it / test is limited to 80 lines, not counting blank lines and comment-only lines (@ycookiey/max-test-case-lines). The length of a describe is not limited.

Strict config (opt-in)

The base config plus rules that need type information. It is an ES module, so load it with import. When loaded with require from CommonJS, the config is in .default.

import lintConfig from '@ycookiey/lint-config/eslint-strict';
export default [
  ...lintConfig,
  {
    languageOptions: {
      parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname },
    },
  },
];

Rules it adds:

| rule | what it checks | |---|---| | @typescript-eslint/naming-convention | boolean variables start with is / should / has / can / did / will, interfaces have no I prefix, and more | | @typescript-eslint/switch-exhaustiveness-check | a switch over a union handles every member; a switch over a non-union type has a default (requireDefaultForNonUnion) | | @typescript-eslint/no-floating-promises | every Promise is awaited or has its rejection handled | | @typescript-eslint/promise-function-async | a function that returns a Promise is async, so it always reports failure as a rejection | | @eslint-react/no-leaked-conditional-rendering | the left side of && in JSX cannot render a stray value such as 0 (judged from types; booleans are not reported) |