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

@localazy/eslint-config

v1.3.0

Published

Unified ESLint configuration for Localazy projects

Readme

📦 @localazy/eslint-config

Unified ESLint configuration for Localazy projects

🚀 Quick Start

Install the package using your preferred package manager:

# Using npm
npm install eslint @localazy/eslint-config --save-dev

# Using yarn
yarn add eslint @localazy/eslint-config --dev

# Using pnpm
pnpm add eslint @localazy/eslint-config --save-dev

Note: This package requires ESLint 9.0.0 or higher.

🔧 Usage

Basic Usage

Create or update your eslint.config.js file:

import { localazy } from '@localazy/eslint-config';

export default localazy();

Advanced Usage

The localazy() function accepts an options object that allows you to customize the ESLint configuration:

import { localazy } from '@localazy/eslint-config';

export default localazy({
  // Add your custom ESLint configurations
  userConfigs: [
    {
      rules: {
        // Override or disable specific rules
        'no-console': 'warn',
        'annoying-rule': 'off'
      }
    }
  ],

  // Specify files to ignore
  ignores: [
    'build/**',
    'dist/**',
    'coverage/**'
  ],
});

⚙️ Configuration Options

userConfigs

User-defined ESLint configurations that will be merged with the default Localazy ESLint configuration.

{
  userConfigs: [
    {
      rules: {
        'no-console': 'warn',
        'prefer-const': 'error'
      }
    }
  ]
}

ignores

List of glob patterns for files to be ignored by ESLint. These patterns will be added to the ignore list in addition to files from .gitignore.

{
  ignores: [
    'build/**',
    'dist/**',
    'coverage/**',
    'node_modules/**'
  ]
}

features

Feature flags to enable or disable specific ESLint plugins and behaviors:

| Feature | Description | Default | | ------------------- | ------------------------------------------------------------------------------------------------ | ------- | | gitignore | Exclude files listed in .gitignore from being linted | true | | dts | Enable linting for TypeScript declaration (.d.ts) files | true | | prettier | Enable the Prettier plugin | true | | forceJsExtensions | Require .js file extensions in import statements and autofix them | false | | forcePathAliases | Force the use of configured TypeScript path aliases instead of relative imports and autofix them | false | | vue2 | Enable Vue 2 support | false | | vue3 | Enable Vue 3 support | false |

Example:

{
  features: {
    vue2: true,
    forceJsExtensions: true,
  }
}

settings

Configuration settings for ESLint plugins:

TypeScript Settings

{
  settings: {
    ts: {
      // Path to the TypeScript project configuration file
      project: 'tsconfig.json',

      // Project root directory
      tsconfigRootDir: import.meta.dirname,
    }
  }
}

GitIgnore Settings

{
  settings: {
    gitignore: {
      // Path to .gitignore file or files
      paths: ['.gitignore'] // default
    }
  }
}

🔌 Included Configurations

This ESLint configuration includes:

  • JavaScript: Base JavaScript rules and best practices
  • TypeScript: TypeScript-specific rules and type checking
  • Vue.js (optional): Support for both Vue 2 and Vue 3 with specific rules and best practices for each version
  • Prettier (enabled by default): Integration with Prettier for consistent code formatting
  • Import/Export: Rules for import and export statements
  • Path Aliases: Support for TypeScript path aliases

🛠️ Development

To contribute to this project:

# Install dependencies
pnpm install

# Build the package
pnpm build

# Check everything
pnpm check

📚 Documentation

For more details on ESLint configuration, visit the ESLint documentation.

📜 License

This project is licensed under the MIT License.

See LICENSE for details.