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

@riveo/eslint-config

v0.2.1

Published

Opinionated flat ESLint config for TypeScript-first projects with JavaScript and frameworks support.

Downloads

372

Readme

@riveo/eslint-config

Opinionated flat ESLint config for TypeScript-first projects, with support for plain JavaScript, Astro, React, and Next.js.

This package is extracted from the setup described in the blog post notesofdev: My optimal ESLint setup, but the package itself is the source of truth.

Why This Config

This package is aimed at projects that want:

  • flat config
  • TypeScript-first defaults
  • typed linting for TS files
  • import hygiene through eslint-plugin-import-x
  • Prettier compatibility without using ESLint as a formatter
  • a small amount of opinionated behavior on top of upstream recommended configs

What It Includes

  • ESLint core recommended rules
  • typescript-eslint recommended and stylistic rules
  • typed TypeScript rules for *.ts, *.tsx, *.cts, and *.mts
  • eslint-plugin-import-x rules
  • eslint-config-prettier
  • a small set of additional preferences:
    • no-console allows warn, error, and info
    • class-methods-use-this is disabled
  • Astro support through configs.astro
  • Next.js support through configs.nextjs
  • React support through configs.react

Installation

Install the package and ESLint:

pnpm add -D @riveo/eslint-config eslint@^9

For TypeScript projects, also make sure typescript is installed in your app:

pnpm add -D typescript

Usage

Create eslint.config.mjs:

import { defineConfig } from 'eslint/config';
import { configs } from '@riveo/eslint-config';

export default defineConfig(
  {
    files: ['**/*.ts', '**/*.tsx'],
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  configs.recommended,
);

JavaScript-Only

For JavaScript-only projects, you can still use the main config:

import { defineConfig } from 'eslint/config';
import { configs } from '@riveo/eslint-config';

export default defineConfig(configs.recommended);

Astro

For Astro, include configs.astro as well:

import { defineConfig, globalIgnores } from 'eslint/config';
import { configs } from '@riveo/eslint-config';

export default defineConfig(
  globalIgnores(['.astro']),
  {
    files: ['**/*.ts', '**/*.tsx'],
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  configs.recommended,
  configs.astro,
);

Exports

The package exports two values:

  • configs
  • ruleOptions

configs.recommended

The main config for JavaScript and TypeScript projects. It combines:

  • JavaScript base rules
  • import rules
  • TypeScript rules
  • typed TypeScript rules
  • Prettier compatibility
  • useful custom rule overrides

configs.astro

Additional Astro-specific config. Use it together with configs.recommended.

configs.nextjs

Additional Next.js-specific config. Use it together with configs.recommended. It already includes configs.react.

configs.react

Additional React-specific config. Use it together with configs.recommended.

ruleOptions

Helper values exposed for custom overrides. This is useful when extending rules with predefined options.

Notes

  • Typed linting is enabled only for TypeScript files.
  • import-x/no-unresolved is disabled for TypeScript files to avoid false positives and resolver overhead.
  • Raw JavaScript files are forced through espree instead of the TypeScript parser.
  • The package is built before publishing and exports compiled files from dist/.

Development

Useful scripts in this repository:

pnpm run build
pnpm run check
pnpm run check:types
pnpm run check:lint
pnpm run check:format
pnpm test

More contributor notes are in CONTRIBUTING.md.

License

MIT. See LICENSE.md.