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

eslint-config-kevlar

v3.0.0

Published

Shareable ESLint 10 + Prettier flat config for TypeScript, React 19 and Next.js 16 projects

Downloads

268

Readme

eslint-config-kevlar

Shareable ESLint 10 + Prettier flat config for TypeScript, React 19 and Next.js 16 projects.

Import it, compose it, done. The rules live in this package — there are no files to copy and no setup command to run. Upgrade by bumping the version.

Install

Pick the line for your project type. ESLint, Prettier and TypeScript stay your project's own dependencies (they are peers); everything else comes with the package.

# TypeScript / Node library
npm install --save-dev eslint-config-kevlar eslint prettier typescript

# React or Next.js app (react / react-dom / next are your app's own deps)
npm install --save-dev eslint-config-kevlar eslint prettier typescript

pnpm and yarn work the same way (pnpm add -D ..., yarn add -D ...).

Usage

Create eslint.config.mjs in your project root.

TypeScript / Node

import kevlar from 'eslint-config-kevlar';

export default kevlar;

React

import kevlar from 'eslint-config-kevlar';
import react from 'eslint-config-kevlar/react';

export default [...kevlar, ...react];

Next.js

import kevlar from 'eslint-config-kevlar';
import next from 'eslint-config-kevlar/next';

export default [...kevlar, ...next];

The next entry includes the React rules, so you do not need to add ./react as well.

Prettier

Add one key to your package.json — no .prettierrc file needed:

{
  "prettier": "eslint-config-kevlar/prettier"
}

Entry points

| Import | What it provides | | ------------------------------- | ----------------------------------------------------------------------- | | eslint-config-kevlar | Base: TypeScript (recommended + strict), Vitest test rules, Prettier | | eslint-config-kevlar/react | React rules (@eslint-react) + React 19 Hooks/Compiler rules | | eslint-config-kevlar/next | Everything in /react plus Next.js core-web-vitals + Server Components | | eslint-config-kevlar/prettier | The Prettier options, for the package.json prettier key |

Rules at a glance

  • No any (@typescript-eslint/no-explicit-any), no non-null assertions
  • Explicit function return types (expressions and typed expressions exempt)
  • Unused variables must be prefixed with _
  • Single quotes, semicolons required, no trailing commas, newline at end of file
  • Prettier-enforced formatting, printWidth 180, 2-space indentation
  • Vitest: no focused (it.only) or disabled (it.skip) tests in committed code
  • React 19: rules of hooks, exhaustive deps and the React Compiler rule set
  • Next.js: Core Web Vitals rules and React Server Components checks

Extending and overriding

Append your own flat-config objects after the spread:

import kevlar from 'eslint-config-kevlar';

export default [
  ...kevlar,
  {
    rules: {
      'no-console': 'error'
    }
  }
];

Compatibility

| Tool | Supported range | | ---------- | --------------------- | | eslint | ^9.0.0 \|\| ^10.0.0 | | prettier | ^3.0.0 | | typescript | >=5.9.0 <6.1.0 |

Migrating from v2

  • Stop running npx eslint-config-kevlar — there is no setup/scaffold command anymore.
  • Replace your generated eslint.config.mjs with the three-line stub above for your project type.
  • Move Prettier to the package.json key shown above. An existing .prettierrc still works if you prefer to keep one; the package key is just the no-file option.
  • The React layer now uses @eslint-react (the previous eslint-plugin-react does not install on ESLint 10). Rule names under React change accordingly; the previous react/prop-types and react/react-in-jsx-scope toggles are no longer needed.

License

ISC