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

@queue-it/lint-config

v1.1.1

Published

Reusable ESLint configurations

Downloads

35

Readme

ESLint Configuration Package

A comprehensive collection of ESLint configurations for TypeScript, Angular, Jest, RxJS, Storybook, and JSON files.

Features

  • TypeScript support with strict rules
  • Angular template and component rules
  • RxJS best practices and common pitfalls detection
  • Jest testing configuration
  • Storybook linting rules
  • JSON validation
  • Project boundaries enforcement
  • Code style consistency using @stylistic/eslint-plugin

Usage

  1. Install the ESLint configuration package:
npm install lint-config --save-dev

Dependencies

The following dependencies are required based on your usage:

Prettier Integration

npm install prettier eslint-config-prettier --save-dev

Angular Support

npm install angular-eslint --save-dev

TypeScript Support

npm install typescript-eslint --save-dev

Install only the dependencies you need based on which features you plan to use.

  1. Create or update the eslint.config.mjs in your project root:
import { base, typescript, boundaries } from '@queue-it/lint-config';

export default [
  ...base,
  ...typescript,
  ...boundaries,
  {
    files: ['**/*.ts'],
    rules: {
      // Add any additional specific rules here
      'import-x/no-unresolved': 'error',
      'import-x/prefer-default-export': 'off'
    }
  }
];

Strict Configurations

The package provides two levels of strict configurations:

Strict Warning Mode (strictWarn)

A set of strict TypeScript and JavaScript rules that emit warnings rather than errors. Ideal for:

  • Gradually adopting stricter typing
  • Identifying potential type safety issues
  • Finding code quality improvements
  • Maintaining backward compatibility

Key features:

  • Type safety enforcement (no-explicit-any, unsafe operations)
  • Explicit type annotations
  • Null/undefined safety
  • Promise handling
  • Code complexity limits
  • Modern JavaScript practices

Example usage:

import { base, typescript, strictWarn } from '@queue-it/lint-config';

export default [...base, ...typescript, ...strictWarn];

Strict Error Mode (strictError)

The same rules as strictWarn but configured as errors instead of warnings. Use this for:

  • Maximum type safety
  • Enforcing best practices
  • Maintaining high code quality standards
  • New projects or modules

Example usage:

import { strict } from '@queue-it/lint-config';
// or
import { base, typescript, strictError } from '@queue-it/lint-config';

export default [
  ...strict // Includes all recommended configs plus strict error rules
  // or
  ...base,
  ...typescript,
  ...strictError
];

Key Rules Enforced

  1. Type Safety

    • No explicit any
    • Safe type assertions
    • No unsafe operations
    • Explicit module boundary types
  2. Null Safety

    • Strict null checks
    • No non-null assertions
    • Nullish coalescing
    • Optional chaining
  3. Promise Handling

    • No floating promises
    • Async function declarations
    • Proper await usage
  4. Code Quality

    • Limited function complexity
    • Maximum function size
    • Parameter limits
    • Early returns
    • No nested ternaries
  5. Modern Practices

    • Const preferences
    • Arrow functions
    • Template literals
    • Object shorthand
    • ES modules

Configuration Details

Boundaries Configuration

The package includes a sophisticated boundaries configuration that helps maintain clean architecture:

{
  rules: {
    'boundaries/element-types': [
      'error',
      {
        default: 'disallow',
        rules: [
          {
            from: 'feature',
            allow: ['feature', 'ui', 'domain-logic', 'utils', 'common']
          },
          {
            from: 'domain-logic',
            allow: ['domain-logic', 'data-access', 'utils', 'common']
          },
          {
            from: 'data-access',
            allow: ['data-access', 'utils', 'common']
          },
          {
            from: 'ui',
            allow: ['ui', 'utils', 'common']
          }
        ]
      }
    ]
  }
}

TypeScript Configuration

Includes strict TypeScript rules:

  • Explicit member accessibility
  • Consistent type imports
  • Explicit function return types
  • No unused variables
  • Naming conventions
  • And more...

RxJS Configuration

Enforces RxJS best practices:

  • Prefer observers over callbacks
  • Finnish notation for observables
  • Safe operator usage
  • No exposed subjects
  • Safe subscription handling

Angular Configuration

Angular-specific rules:

  • OnPush change detection
  • Template accessibility
  • Template best practices
  • Attributes ordering
  • Control flow preference

Jest Configuration

Jest-specific rules:

  • No disabled tests
  • No focused tests
  • No test complexity

Storybook Configuration

Storybook-specific rules:

  • No unused stories
  • No focused stories
  • No disabled stories

JSON Configuration

Validates JSON files and ensures correct formatting.

Cypress Configuration

Cypress-specific rules:

  • No disabled tests
  • No focused tests