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

@techredant/biome-config

v0.5.0

Published

Shared Biome configuration for Red Ant Colony frontend projects

Readme

@red-ant-colony/biome-config

Shared Biome configuration for Red Ant Colony frontend projects.

Overview

This package provides a comprehensive Biome configuration for linting and formatting JavaScript, TypeScript, JSON, and CSS files. It replaces ESLint and Prettier with a single, fast tool.

Installation

In your monorepo, reference this package in your workspace package.json:

{
  "devDependencies": {
    "@red-ant-colony/biome-config": "workspace:*",
    "@biomejs/biome": "^2.3.7"
  }
}

Usage

For React Projects

Create a biome.json in your project root:

{
  "extends": ["@red-ant-colony/biome-config/react.json"]
}

For Next.js Projects

Create a biome.json in your project root:

{
  "extends": ["@red-ant-colony/biome-config/nextjs.json"]
}

For Library/Shared Packages

Create a biome.json in your project root:

{
  "extends": ["@red-ant-colony/biome-config/library.json"]
}

For Strict Mode (Production-ready projects)

Create a biome.json in your project root:

{
  "extends": ["@red-ant-colony/biome-config/strict.json"]
}

Basic Setup (Minimal rules)

Create a biome.json in your project root:

{
  "extends": ["@red-ant-colony/biome-config/base.json"]
}

With Custom Overrides

{
  "extends": ["@red-ant-colony/biome-config/react.json"],
  "files": {
    "ignore": ["custom-ignore-folder"]
  },
  "linter": {
    "rules": {
      "suspicious": {
        "noConsoleLog": "off"
      }
    }
  }
}

Legacy Support (Full config in single file)

For backward compatibility, you can still use the comprehensive config:

{
  "extends": ["@red-ant-colony/biome-config/biome.json"]
}

Package.json Scripts

Add these scripts to your package.json:

{
  "scripts": {
    "lint": "biome lint .",
    "lint:fix": "biome lint --write .",
    "format": "biome format .",
    "format:fix": "biome format --write .",
    "check": "biome check .",
    "check:fix": "biome check --write ."
  }
}

Available Configurations

This package provides multiple configuration presets for different use cases:

| Config | Description | Use Case | |--------|-------------|----------| | base.json | Minimal essential rules | Starting point or custom configs | | react.json | Base + React/JSX + A11y rules | React applications | | nextjs.json | React + Next.js optimizations | Next.js applications | | library.json | Base + Stricter types | Shared libraries/packages | | strict.json | All rules enforced as errors | Production apps, max quality | | biome.json | Legacy comprehensive config | Backward compatibility |

Configuration Hierarchy

base.json (minimal)
  ├── react.json (+ React/JSX/A11y)
  │     └── nextjs.json (+ Next.js specific)
  ├── library.json (+ strict types)
  └── strict.json (all rules as errors)

Features

Linting Rules

  • Accessibility (a11y) - Comprehensive accessibility checks
  • Complexity - Code complexity and optimization rules
  • Correctness - Error prevention and correctness rules
  • Security - Security best practices
  • Style - Code style consistency
  • Suspicious - Suspicious patterns detection

Formatting

  • Indent: Tabs (NX monorepo style)
  • Line Width: 100 characters
  • Quote Style: Double quotes for JS/TS/JSX
  • Semicolons: Always
  • Trailing Commas: ES5
  • Line Ending: LF
  • Tailwind: CSS parser supports Tailwind directives

Supported File Types

  • JavaScript (.js, .jsx)
  • TypeScript (.ts, .tsx)
  • JSON (.json)
  • CSS (.css)

Commands

| Command | Description | |---------|-------------| | biome check . | Run both linting and formatting checks | | biome check --write . | Fix all auto-fixable issues | | biome lint . | Run only linting | | biome lint --write . | Fix linting issues | | biome format . | Check formatting | | biome format --write . | Fix formatting | | biome ci . | Run checks in CI mode (faster, no fixes) |

IDE Integration

VS Code

Install the Biome extension and add to your .vscode/settings.json:

{
  "editor.defaultFormatter": "biomejs.biome",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "quickfix.biome": "explicit",
    "source.organizeImports.biome": "explicit"
  },
  "[javascript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[json]": {
    "editor.defaultFormatter": "biomejs.biome"
  }
}

JetBrains IDEs

Biome support is available through the Biome plugin.

Migration from ESLint/Prettier

  1. Remove ESLint and Prettier dependencies
  2. Remove .eslintrc.*, .prettierrc.*, and .prettierignore files
  3. Install Biome and this config package
  4. Create biome.json extending this config
  5. Update package.json scripts
  6. Run biome check --write . to format all files

Ignored Files

The following patterns are ignored by default:

  • node_modules
  • dist
  • build
  • .next
  • .turbo
  • coverage
  • *.min.js
  • *.min.css
  • public
  • .git

Performance

Biome is significantly faster than ESLint + Prettier:

  • ~10-100x faster than ESLint
  • ~20-30x faster than Prettier
  • Written in Rust for maximum performance
  • Single tool for both linting and formatting

Resources