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

@hzblj/biome-config

v0.2.1

Published

Opinionated Biome config for TypeScript / React / React Native — formatter, linter, import & key sorting. Ships base, react, and react-native presets.

Readme

@hzblj/biome-config

npm license

Opinionated, shareable Biome config for TypeScript / React / React Native projects. Formatter opinions, import & key sorting, and a curated set of lint rules — packaged so you can drop it into any repo with a single extends.

Three presets:

| Preset | Import specifier | What it is | | ---------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------- | | base | @hzblj/biome-config | Formatter + import/key sorting + general JS/TS lint rules. Framework-agnostic. Use it on its own. | | react | @hzblj/biome-config/react | Add-on for React on the web: Rules of Hooks, JSX correctness, and DOM accessibility rules. Layer on base. | | react-native | @hzblj/biome-config/react-native | Add-on for React Native / Expo: Rules of Hooks + RN-friendly relaxations (no DOM a11y). Layer on base. |

[!NOTE] react and react-native are add-ons, not standalone configs — list them after base in extends, and don't combine the two (pick the one for your platform). Biome doesn't reliably propagate a base config's formatter through a transitively-extended preset, so the recommended pattern is to extend the presets directly (this is also Biome's documented approach for composing shared configs).

Install

npm install --save-dev @hzblj/biome-config @biomejs/biome
# or
yarn add --dev @hzblj/biome-config @biomejs/biome

@biomejs/biome (v2+) is a peer dependency — install it alongside the config.

Usage

Create a biome.json at the root of your project and extend a preset.

[!IMPORTANT] A shared config must not hard-code project paths, so it ships without files.includes. Every consuming project provides its own — Biome requires it. Add the paths you want linted/formatted (and the ones you don't) in your local biome.json.

Base preset

{
  "$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
  "extends": ["@hzblj/biome-config"],
  "files": {
    "includes": ["**", "!**/node_modules", "!**/dist", "!**/build"]
  }
}

React (web) preset

Extend both presets — base first, then the react add-on:

{
  "$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
  "extends": ["@hzblj/biome-config", "@hzblj/biome-config/react"],
  "files": {
    "includes": ["**", "!**/node_modules", "!**/dist", "!**/build", "!**/.next"]
  }
}

React Native / Expo preset

Extend both presets — base first, then the react-native add-on:

{
  "$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
  "extends": ["@hzblj/biome-config", "@hzblj/biome-config/react-native"],
  "files": {
    "includes": [
      "**",
      "!**/node_modules",
      "!**/.expo",
      "!**/android",
      "!**/ios",
      "!**/*.generated.*"
    ]
  }
}

Overriding rules

extends merges shallowly per-section and later entries win, so you can tweak anything locally:

{
  "extends": ["@hzblj/biome-config", "@hzblj/biome-config/react-native"],
  "files": { "includes": ["**", "!**/node_modules"] },
  "linter": {
    "rules": {
      "suspicious": { "noConsole": "off" }
    }
  }
}

What's inside

Formatter — 2-space indent, lf line endings, 120 print width, useEditorconfig. JS/TS: single quotes, double quotes in JSX, semicolons as-needed, es5 trailing commas, as-needed arrow parens, no space inside braces (bracketSpacing: false for JS).

Assist — organizes imports and sorts object keys on save (organizeImports, useSortedKeys).

Linterrecommended: false with an explicit, curated rule set (correctness, suspicious, complexity, style). TypeScript files turn off rules the compiler already covers (e.g. noConstAssign, noUndeclaredVariables) and enforce useConst / noVar. JSON files are left untouched (formatter, linter and assist disabled) so hand-formatted JSON stays as-is.

react preset addsuseHookAtTopLevel (error) and useExhaustiveDependencies (warn) for the Rules of Hooks, JSX correctness (useJsxKeyInIterable, noChildrenProp), a curated set of DOM accessibility rules (useAltText, useValidAnchor, useKeyWithClickEvents, useAriaPropsForRole, noBlankTarget, …), plus the same DX relaxations (allows any / non-null assertions, noConsole as a warning).

react-native preset adds — the same Rules of Hooks and DX relaxations, but no DOM a11y rules (they don't apply to native), and warns on console usage.

See biome/base.json, biome/react.json and biome/react-native.json for the full rule sets.

Editor setup

Install the Biome VS Code extension and set it as your default formatter:

// .vscode/settings.json
{
  "editor.defaultFormatter": "biomejs.biome",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.organizeImports.biome": "explicit",
    "quickfix.biome": "explicit"
  }
}

License

MIT © Jan Blazej