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

@halvaradop/eslint-config

v1.3.0

Published

Shared ESLint configuration for all @halvaradop projects.

Readme

@halvaradop/eslint-config

npm version license

A professional, shareable ESLint configuration suite for modern JavaScript, TypeScript, React, and Next.js projects. Built with ESLint v9 flat config format, this package ensures consistent code quality and style across your development workflow.

This package is part of the @halvaradop/configs monorepo, providing standardized configurations for various development tools.

Features

  • ESLint v9 Flat Config: Built with the latest ESLint configuration format
  • Multiple Configurations: Base, TypeScript, React, Next.js, and Vite specific configs
  • Composable Design: Use configurations independently or combine them with spread operator
  • Comprehensive Rules: Carefully curated rules for code quality and consistency
  • TypeScript Ready: Full TypeScript support with type-aware linting
  • React Optimized: Includes React hooks and JSX best practices
  • Next.js Enhanced: Specific rules for Next.js App Router and Pages Router
  • Vite Optimized: Specialized configuration for Vite + React + TypeScript projects
  • Prettier Integration: Seamlessly works with Prettier formatting
  • Monorepo Support: Includes Turbo and workspace-aware rules

Installation

Install the package as a development dependency:

# Using pnpm (recommended)
pnpm add -D @halvaradop/eslint-config eslint

# Using npm
npm install -D @halvaradop/eslint-config eslint

# Using yarn
yarn add -D @halvaradop/eslint-config eslint

Note: ESLint v9+ is required. Additional peer dependencies may be needed based on your configuration choice.

Available Configurations

Basic JavaScript Project

// eslint.config.{js,ts}
import { baseConfig } from "@halvaradop/eslint-config/base"

export default baseConfig

TypeScript Project

// eslint.config.{js,ts}
import { tsConfig } from "@halvaradop/eslint-config/typescript"

export default tsConfig

React with TypeScript

// eslint.config.{js,ts}
import { tsConfig } from "@halvaradop/eslint-config/typescript"
import { reactConfig } from "@halvaradop/eslint-config/react"

export default [...tsConfig, ...reactConfig]

Next.js with TypeScript

// eslint.config.{js,ts}
import { tsConfig } from "@halvaradop/eslint-config/typescript"
import { nextConfig } from "@halvaradop/eslint-config/next"

export default [...tsConfig, ...nextConfig]

Prettier

// eslint.config.{js,ts}
import { baseConfig } from "@halvaradop/eslint-config/base"
import { prettierConfig } from "@halvaradop/eslint-config/prettier"

export default [...baseConfig, ...prettierConfig]

Turborepo

// eslint.config.{js,ts}
import { baseConfig } from "@halvaradop/eslint-config/base"
import { turboConfig } from "@halvaradop/eslint-config/turbo"

export default [...baseConfig, ...turboConfig]

Custom Extensions

// eslint.config.{js,ts}
import { tsConfig } from "@halvaradop/eslint-config/typescript"
import { baseConfig } from "@halvaradop/eslint-config/base"

export default [
  ...baseConfig,
  ...tsConfig,
  {
    files: ["**/*.js", "**/*.ts", "**/*.jsx", "**/*.tsx"],
    rules: {
      "no-console": "error",
      "prefer-const": "warn",
    },
  },
  {
    files: ["**/*.test.js", "**/*.test.ts", "**/*.spec.js", "**/*.spec.ts"],
    rules: {
      "no-console": "off",
    },
  },
]

Configuration Combinations

All configurations build upon the base JavaScript configuration by default.

| Use Case | Configuration | Import Path | | -------------------- | ------------------------------- | ---------------------------------------------------------------------------- | | JavaScript | Base | @halvaradop/eslint-config/base | | Prettier | Prettier | @halvaradop/eslint-config/prettier | | Turborepo | Turborepo | @halvaradop/eslint-config/turbo | | TypeScript | TypeScript | @halvaradop/eslint-config/typescript | | React | React | @halvaradop/eslint-config/react | | Next.js | Next.js | @halvaradop/eslint-config/next | | React + TypeScript | [...tsConfig, ...reactConfig] | @halvaradop/eslint-config/react and @halvaradop/eslint-config/typescript | | Next.js + TypeScript | [...tsConfig, ...nextConfig] | @halvaradop/eslint-config/next and @halvaradop/eslint-config/typescript |

Package.json Scripts

Add these scripts to your package.json:

{
  "scripts": {
    "lint": "eslint . --cache --cache-location .cache/.eslint-cache",
    "lint:fix": "eslint . --fix --cache --cache-location .cache/.eslint-cache",
    "lint:check": "eslint . --max-warnings 0"
  }
}

Troubleshooting

TypeScript Configuration Issues

Ensure your tsconfig.json is properly configured:

{
  "compilerOptions": {
    "strict": true,
    "noEmit": true
  },
  "include": ["**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules", "dist"]
}

Related Packages

This package is part of the @halvaradop/configs ecosystem:

License

MIT © Hernan Alvarado

Changelog

See CHANGELOG.md for details about changes in each version.


For more information about ESLint configuration options, visit the official ESLint documentation.