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-moni-web

v0.0.3

Published

Moni's ESLint config, following our styleguide for web projects

Downloads

51

Readme

eslint-config-moni-web

ESLint configuration for Moni's web projects, following our styleguide for web projects. Compatible with ESLint 9+ and TypeScript ESLint 8+.

Features

  • TypeScript support with strict type checking rules
  • React support with hooks and JSX rules
  • Prettier integration for consistent formatting
  • Import sorting with simple-import-sort
  • Promise best practices with eslint-plugin-promise
  • Modern ESLint 9+ flat config format

Installation

All dependencies must be installed explicitly due to ESLint's peer dependency requirements:

npm install --save-dev eslint-config-moni-web eslint @eslint/js @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-next eslint-config-prettier eslint-plugin-prettier eslint-plugin-promise eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort prettier

Or use install-peerdeps for easier installation:

npm install install-peerdeps --global
npm install eslint-config-moni-web --save-dev
install-peerdeps eslint-config-moni-web --dev

Usage

ESLint 9+ (Flat Config) - Recommended

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

const config = require('eslint-config-moni-web');

module.exports = [
  ...config,
  {
    // Your project-specific rules
    rules: {
      // Additional rules...
    }
  }
];

Or using ES modules:

import moniWebConfig from 'eslint-config-moni-web';

export default [
  ...moniWebConfig,
  {
    // Your project-specific rules
    rules: {
      // Additional rules...
    }
  }
];

Running ESLint

# Check all files
npx eslint .

# Check specific directory
npx eslint src/

# Check specific file
npx eslint src/index.ts

# Auto-fix issues
npx eslint src/ --fix

# Check TypeScript files only
npx eslint "**/*.{ts,tsx}"

Configuration Details

This configuration includes:

Base Rules

  • Line length limit: 150 characters
  • Consistent spacing and formatting
  • Curly braces enforcement
  • Parameter reassignment prevention

TypeScript Rules

  • Strict type checking
  • Naming conventions (PascalCase for classes, interfaces)
  • Explicit member accessibility
  • Module boundary types enforcement

React Rules

  • JSX filename extensions
  • Hooks rules
  • Deprecated API prevention
  • Unsafe patterns detection

Import Rules

  • Automatic import sorting with simple-import-sort
  • Grouped imports (Node.js, React, types, internal, hooks, relative)

Prettier Integration

  • Single quotes
  • 4-space indentation
  • Trailing commas
  • Consistent line endings

Requirements

  • Node.js >= 18.0.0
  • ESLint >= 9.29.0
  • TypeScript ESLint >= 8.15.0
  • TypeScript >= 4.0.0 (for TypeScript projects)

Version

Current version: 0.0.3

License

MIT