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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@jsenv/eslint-config-relax

v1.7.11

Published

A pleaseant ESLint configuration for any project

Readme

eslint-config-relax

npm package

A pragmatic ESLint configuration that focuses on meaningful errors while giving you freedom to write code your way.

Why Choose eslint-config-relax?

If you're tired of:

  • Fighting with ESLint configuration
  • Being forced to code in a specific style
  • Module resolution errors in ESLint
  • Noisy linting that focuses on trivial issues

eslint-config-relax lets you focus on writing code while still catching potential bugs and serious issues.

Quick setup

npm i --save-dev @jsenv/eslint-config-relax

Create an eslint.config.js file at your project root:

import { eslintConfigRelax } from "@jsenv/eslint-config-relax";

export default eslintConfigRelax({
  rootDirectoryUrl: import.meta.resolve("./"),
  browserDirectoryUrl: import.meta.resolve("./src/"), // optional
});

Key Features

Focus on Real Issues

We disable rules that are:

  • Purely stylistic
  • Too opinionated
  • More annoying than helpful

So you only see warnings that actually matter for code quality.

Working Import Resolution

Full implementation of Node.js ESM resolution algorithm means:

  • No more "Unable to resolve path to module" errors for valid imports
  • Correct browser vs Node.js environment detection
  • Proper handling of package exports

Modern & Simple

  • Uses ESLint's flat config system
  • No complex plugin chains or configuration inheritance
  • Works across various project types with minimal setup

Environment Aware

Automatically adjusts rules based on your code's environment:

  • Browser-specific checks for browser code
  • Node.js-specific checks for server code

Technical Notes

  • Requires ESLint 8.0 or higher (uses flat config)
  • TypeScript support planned for future releases
  • Works with any project structure

Example project structure

your-project/
├── eslint.config.js
├── package.json
├── src/                // Browser code
│   └── browser-specific-code.js
└── server/             // Node.js code
    └── node-specific-code.js

Migrate from traditional ESLint and enjoy writing code that's checked for what matters, not how it looks.