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

@tutods/biome-config

v0.13.6

Published

Shareable Biome configuration for React, Next.js, NestJS, SolidJS, Tailwind CSS, and Sanity CMS projects. Built for monorepos.

Downloads

431

Readme

Biome Config

npm version npm downloads License


Table of Contents

📄 Goal

This configuration package stores my common configurations used on Biome — the fast formatter and linter for JavaScript, TypeScript, JSX, JSON, CSS, and more.

Built with monorepo support in mind, every config uses glob patterns that work at any directory depth (apps/*, packages/*, etc.).

💡️ What you will find?

7 composable configurations. Extend only what you need:

| Config | Description | |--------|-------------| | base.json | Framework-agnostic core — formatting, VCS, file exclusions, and strict linting rules for any JS/TS project. Includes type-inference rules and auto-enables test domain rules when jest/vitest is detected. | | react.json | React rules — hooks, fragments, a11y, noReactForwardRef. Uses the react domain (auto-activates when react is in package.json). | | nextjs.json | Next.js rules — uses the next domain (auto-activates when next >= 14 is detected). Includes App Router overrides (noDefaultExport off for pages/layouts/routes). Use together with react.json. | | tailwind.json | Tailwind CSS utility class sorting via useSortedClasses. Supports className, class, clsx, cva, cn, twMerge, tv. | | nestjs.json | NestJS — enables unsafe parameter decorators, disables a11y rules, turns off rules that conflict with NestJS patterns. Auto-enables test domain rules (Jest). | | solidjs.json | SolidJS — uses the solid domain. Includes SolidStart entry point overrides. | | sanity.json | Sanity CMS — overrides for sanity.config.*, sanity.cli.*, schema and studio directories (default exports allowed). |

✨ Features

  • 🔍 Comprehensive Linting — Strict rules across complexity, correctness, style, suspicious, security, performance, nursery, and the types domain
  • 🎨 Consistent Formatting — Uniform code style: single quotes, 2-space indent, 120 line width, trailing commas
  • 🧩 Composable Configs — Mix and match only what your project needs
  • 📦 Monorepo-Ready — All glob patterns use ** for any directory depth. Supports the "extends": "//" microsyntax
  • 🚀 Biome v2 Domains — Uses react, next, solid, test, types domains for automatic rule activation based on your dependencies
  • 🔒 Safe Nursery Rules — Explicitly opt-in to stable nursery rules only; no nursery.recommended: true

❓ How to install and use it?

  1. Install the package using your package manager:

    PNPM

    pnpm add -D @tutods/biome-config @biomejs/biome

    Yarn

    yarn add -D @tutods/biome-config @biomejs/biome

    npm

    npm install -D @tutods/biome-config @biomejs/biome
  2. Create the configuration file:

    pnpm biome init
  3. Edit your biome.json to extend the configs you need:

    {
      "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
      "extends": ["@tutods/biome-config"]
    }
  4. Add lint scripts to your package.json:

    {
      "lint": "biome check .",
      "lint:fix": "biome check --no-errors-on-unmatched --write .",
      "lint:staged": "biome check --no-errors-on-unmatched --staged .",
      "lint:ci": "biome ci --no-errors-on-unmatched ."
    }

Note: You can customize the scripts to fit your workflow.

Examples of usage

React project (Vite, CRA)

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config",
    "@tutods/biome-config/react"
  ]
}

React + Tailwind CSS project

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config",
    "@tutods/biome-config/react",
    "@tutods/biome-config/tailwind"
  ]
}

Next.js project

Next.js projects extend both react and nextjs. The next domain auto-activates when next is found in package.json.

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config",
    "@tutods/biome-config/react",
    "@tutods/biome-config/nextjs"
  ]
}

Next.js + Tailwind CSS + Sanity CMS

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config",
    "@tutods/biome-config/react",
    "@tutods/biome-config/nextjs",
    "@tutods/biome-config/tailwind",
    "@tutods/biome-config/sanity"
  ]
}

NestJS project

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config",
    "@tutods/biome-config/nestjs"
  ]
}

SolidJS project

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config",
    "@tutods/biome-config/solidjs"
  ]
}

Vanilla TypeScript project

Just the base — no framework, no UI rules.

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "extends": [
    "@tutods/biome-config"
  ]
}

Available configurations

| Export | Config | Use for | |--------|--------|---------| | @tutods/biome-config | base.json | Any JS/TS project | | @tutods/biome-config/react | react.json | React (Vite, CRA, Remix) | | @tutods/biome-config/nextjs | nextjs.json | Next.js (use with react) | | @tutods/biome-config/tailwind | tailwind.json | Tailwind CSS projects | | @tutods/biome-config/nestjs | nestjs.json | NestJS backends | | @tutods/biome-config/solidjs | solidjs.json | SolidJS, SolidStart | | @tutods/biome-config/sanity | sanity.json | Sanity CMS projects |

🏗️ Monorepo Support

All file inclusion/exclusion patterns use ** globs that work at any directory depth. This means they work correctly in monorepo layouts like:

my-monorepo/
├── apps/
│   ├── web/          # Next.js app
│   ├── admin/        # React app
│   └── api/          # NestJS app
├── packages/
│   ├── ui/           # Shared UI components
│   └── utils/        # Shared utilities
├── configs/
│   └── biome-config/
└── biome.json

The root biome.json extends the base config:

{
  "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
  "vcs": {
    "enabled": true,
    "clientKind": "git",
    "useIgnoreFile": true,
    "defaultBranch": "main"
  },
  "extends": ["@tutods/biome-config"],
  "files": {
    "includes": [
      "!**/packages/**/package.json",
      "!**/configs/**/package.json",
      "!**/dist"
    ]
  }
}

Each app uses the "extends": "//" microsyntax to inherit from the root without needing a relative path:

// apps/web/biome.json
{
  "extends": ["//", "@tutods/biome-config/react", "@tutods/biome-config/nextjs", "@tutods/biome-config/tailwind"]
}
// apps/api/biome.json
{
  "extends": ["//", "@tutods/biome-config/nestjs"]
}

The "//" always resolves to the workspace root, regardless of nesting depth.

🔧 Troubleshooting

Single Quotes in CSS Selectors

When using CSS selectors with single quotes (like class*='size-') in JSX attributes, you may encounter issues with Biome's formatting. To resolve this:

  1. Use template literals for className strings with complex selectors:

    className={`component [&_svg:not([class*='size-'])]:size-4`}
  2. Or escape the single quotes in your selectors:

    className="component [&_svg:not([class*=\\'size-\\'])]:size-4"

📋 Compatibility

This configuration package is tested with:

  • Biome v2.4.x
  • Node.js v20+

Uses Biome v2 features:

  • linter.domains for technology-specific rule groups (react, next, solid, test, types)
  • "extends": "//" microsyntax for monorepo root inheritance
  • Promoted nursery rules (noUselessUndefined, useMaxParams, noImportCycles, noUnusedExpressions, useConsistentArrowReturn, noDeprecatedImports)
  • assist.actions.source.organizeImports for import sorting

🤝 Contributing

Issues and pull requests are welcome at github.com/tutods/lib.


Last updated: Biome v2 domains + nextjs.json config restructure