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-blazex

v0.0.35

Published

πŸ”₯ Blazex πŸ”₯ eslint config that can be used across projects

Readme

eslint-config-blazex

This package provides a set of extensible shared ESLint configurations using the new Flat Config format introduced in ESLint. It supports JavaScript, TypeScript, React, and Node.js projects.

Installation

To use this package, install it via npm or yarn:

npm install eslint-config-blazex --save-dev

or

yarn add eslint-config-blazex --dev

Usage

Since this package uses the Flat Config format, you need to create an eslint.config.mjs file in the root of your project and import the desired configuration.

JavaScript Config

To use the JavaScript configuration:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.javascript,
];

TypeScript Config

To use the TypeScript configuration:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.typescript,
];

React Config (JavaScript)

To use the React configuration for JavaScript:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.react,
];

React Config (TypeScript)

To use the React configuration for TypeScript:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.reactTypescript,
];

Next Config (JavaScript)

To use the Next.js configuration:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.next,
];

Next Config (TypeScript)

To use the Next.js configuration for TypeScript:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.nextTypescript,
];

Node.js Config (JavaScript)

To use the Node.js configuration for JavaScript:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.node,
];

Node.js Config (TypeScript)

To use the Node.js configuration for TypeScript:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  configs.nodeTypescript,
];

Customizing Rules

If you want to customize or override specific rules, you can extend the configuration like this:

// eslint.config.mjs
import { configs } from 'eslint-config-blazex';

export default [
  {
    ...configs.javascript,
    rules: {
      ...configs.javascript.rules,
      'no-console': 'warn', // Example: Override the no-console rule
    },
  },
];

Available Configurations

  • JavaScript: configs.javascript
  • TypeScript: configs.typescript
  • React (JavaScript): configs.react
  • React (TypeScript): configs.reactTypescript
  • Next.js (JavaScript): configs.next
  • Next.js (TypeScript): configs.nextTypescript
  • Node.js (JavaScript): configs.node
  • Node.js (TypeScript): configs.nodeTypescript

Exported Rules

If you need access to the individual rules for advanced use cases, you can import them like this:

import { rules } from 'eslint-config-blazex';

console.log(rules.javascript); // Logs JavaScript-specific rules
console.log(rules.typescript); // Logs TypeScript-specific rules
console.log(rules.react); // Logs React-specific rules
console.log(rules.reactTypescript); // Logs React+TypeScript-specific rules
console.log(rules.next); // Logs Next.js+React+Javascript-specific rules
console.log(rules.nextTypescript); // Logs Next.js+React+TypeScript-specific rules
console.log(rules.node); // Logs Node.js-specific rules
console.log(rules.nodeTypescript); // Logs Node.js+TypeScript-specific rules

Summary of Packages Used

This configuration leverages the following ESLint plugins and packages:

  • Core ESLint: Provides the base linting functionality.
  • eslint-plugin-react: Adds linting rules for React projects.
  • eslint-plugin-node: Adds linting rules for Node.js projects.
  • eslint-plugin-unicorn: Enforces better practices and modern JavaScript features.
  • eslint-plugin-sonarjs: Detects bugs and code smells.
  • eslint-plugin-perfectionist: Helps enforce consistent code structure and ordering.
  • @typescript-eslint/eslint-plugin: Provides TypeScript-specific linting rules.
  • @typescript-eslint/parser: Parses TypeScript code for ESLint.
  • @next/eslint-plugin-next: Provides Next.js-specific linting rules.
  • globals: Provides a list of global variables for different environments.

Notes

  • This package is designed to work with ESLint's Flat Config format. Ensure you are using a compatible version of ESLint.
  • For React and Node.js configurations, make sure you have the necessary plugins installed (e.g., eslint-plugin-react, eslint-plugin-node).

For more details, refer to the ESLint Flat Config documentation.