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-nice-nextjs

v0.4.0

Published

A TypeScript ESLint config for Next.js

Downloads

117

Readme

eslint-config-nice-nextjs

An ESLint setup for Next.js apps. It uses the ESLint flat config style (ESLint 9+) and pulls in React, React Hooks, Next.js, and TypeScript rules so you get useful checks out of the box.

Features

  • Ready for eslint.config.mjs
  • Includes @next/eslint-plugin-next (recommended + core web vitals)
  • Adds eslint-plugin-react and eslint-plugin-react-hooks
  • Extends eslint-config-love for stronger TypeScript rules
  • Sets common browser and Node globals
  • Applies extra strict rules to code in app/ and src/

Install

# pnpm
pnpm add -D eslint-config-nice-nextjs

# npm
npm install --save-dev eslint-config-nice-nextjs

# yarn
yarn add --dev eslint-config-nice-nextjs

Peer packages

Your project should already depend on:

  • eslint@^9
  • eslint-config-next@^15.5.4
  • @next/eslint-plugin-next@^15.2.4
  • eslint-plugin-react@^7.37.5
  • eslint-plugin-react-hooks@^7
  • typescript (optional but recommended)

Install any you are missing:

pnpm add -D eslint@^9 eslint-config-next@^15.5.4 @next/eslint-plugin-next@^15.2.4 eslint-plugin-react@^7.37.5 eslint-plugin-react-hooks@^7 typescript

Use it

Create eslint.config.mjs in your project (or update the existing file):

import niceNextjs from 'eslint-config-nice-nextjs';

export default niceNextjs;

To tweak ignores or rules, spread the config and add your own blocks:

import niceNextjs from 'eslint-config-nice-nextjs';

export default [
   { ignores: ['.turbo/**', 'cypress/**'] },
   ...niceNextjs,
   {
      files: ['tests/**/*.{ts,tsx}'],
      rules: { 'no-console': 'off' },
   },
];

With Prettier

pnpm add -D prettier eslint-plugin-prettier
import niceNextjs from 'eslint-config-nice-nextjs';
import prettier from 'eslint-plugin-prettier/recommended';

export default [...niceNextjs, prettier];

What you get

  • Ignores for .next/**, .pnpm-store/**, and node_modules/**
  • React flat presets, including the JSX runtime rules
  • React Hooks recommended rules
  • Next.js recommended + core web vitals rules
  • TypeScript-focused rules from eslint-config-love
  • Shared browser+Node globals
  • Extra strict rules for files inside app/ and src/

See src/index.ts if you want the full detail.

Example app

The repo includes ts-next-app/, which uses the built config from dist/:

cd ts-next-app
pnpm lint

Some files in that app break the rules on purpose so you can see the errors. Fix them or ignore them if you want a clean run. This app used for the CI testsbefore releasing the new version.

Contribute

Open an issue or PR if you spot something. Run lint and build before sending changes. Update this README and add a Changeset when you change the published rules.

License

MIT