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

@nappr/eslint-config

v0.2.1

Published

Configuration ESLint partagée pour les projets Nappr

Downloads

25

Readme

@nappr/eslint-config

Shared and reusable ESLint configuration for Nappr projects. This package provides modular, ready-to-use configurations with strict rules for TypeScript, React, and Node.js, based on best practices.

📋 Table of Contents

🔧 Installation

yarn add -D @nappr/eslint-config

💻 CLI Command

The package includes a CLI command to quickly access help and information:

# Display help
yarn nappr-eslint-config

The CLI displays:

  • Available configurations (reactConfig, nodeConfig)
  • Usage examples
  • Link to full documentation

🚀 Quick Start

React Project

// eslint.config.js
import { reactConfig } from '@nappr/eslint-config';

export default [
  ...reactConfig,
  {
    ignores: ['dist/**', 'node_modules/**', 'build/**', 'public/**'],
  },
];

Node.js Project

// eslint.config.js
import { nodeConfig } from '@nappr/eslint-config';

export default [
  ...nodeConfig,
  {
    ignores: ['dist/**', 'node_modules/**', 'coverage/**', '*.config.js'],
  },
];

📦 Available Configurations

Complete Configurations

  1. reactConfig - Complete configuration for React projects with all rules
  2. nodeConfig - Complete configuration for Node.js projects with Vitest test support

Modular Configurations

You can combine modules according to your needs:

  1. baseConfig - Default files to ignore
  2. typescriptConfig - Strict TypeScript rules
  3. reactConfig - React rules and hooks
  4. jsxA11yConfig - JSX accessibility rules
  5. importsConfig - Import rules with automatic sorting
  6. formattingConfig - Prettier integration
  7. sortingConfig - Automatic sorting of object keys and destructuring
  8. jsonConfig - JSON file rules
  9. commentsConfig - ESLint comments management
  10. standardConfig - Strict ESLint standard rules

For detailed usage examples and advanced customization, see AGENTS.md.

📝 Included Rules

TypeScript

Strict TypeScript rules including:

  • Type checking strict: Type error detection at compilation
  • Consistent type imports: Type import separation
  • No explicit any: any type prohibition (configurable)
  • No unsafe operations: Detection of unsafe operations (configurable)
  • Await thenable: Verification of unawaited promises
  • Floating promises: Detection of unhandled promises
  • ✅ And 30+ other strict TypeScript rules

React

React rules including:

  • React hooks: Recommended rules for hooks
  • JSX best practices: JSX best practices
  • React Refresh: Support for React Fast Refresh
  • Destructuring assignment: Force destructuring
  • JSX fragments: Appropriate fragment usage
  • No bind in JSX: Prohibition of bind in JSX (arrow functions allowed)
  • Props sorting: Automatic JSX props sorting
  • No array index key: Prohibition of using index as key
  • ✅ And 15+ other strict React rules

Accessibility (JSX A11y)

Accessibility rules including:

  • Anchor has content: Links must have content
  • Control has associated label: Controls must have a label
  • Heading has content: Headings must have content
  • Media has caption: Media must have captions
  • No autofocus: Autofocus control
  • Static element interactions: Management of interactions on static elements
  • ✅ And all recommended jsx-a11y rules

Imports

Import organization rules:

  • Simple import sort: Automatic import sorting
  • No default export: Default export prohibition
  • No cycles: Circular dependency detection
  • Extensions: File extension management
  • No duplicates: Duplicate import detection
  • ✅ And 15+ rules for import management

Formatting

  • Prettier integration: Full Prettier integration
  • Multiline ternary: Multi-line ternaries
  • Prettier/prettier: Prettier execution via ESLint

Sorting

  • Sort keys fix: Automatic object key sorting
  • Sort destructure keys: Automatic key sorting in destructuring

JSON

  • Sort keys: Key sorting in JSON files
  • Top level interop: Top-level JSON validation

ESLint Standard

60+ strict ESLint standard rules including:

  • Array callback return: Returns in array callbacks
  • Block scoped var: Use of let/const instead of var
  • Consistent return: Consistent returns
  • No eval: eval prohibition
  • No param reassign: Parameter reassignment management
  • Prefer const: Preference for const
  • Prefer template: Use of template literals
  • ✅ And many other code quality rules

⚙️ Requirements

  • Node.js: >= 18.0.0
  • ESLint: >= 9.0.0 (Flat Config)
  • TypeScript: Recommended for better experience
  • Prettier: >= 3.0.0 (recommended)

📚 Resources