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

@styled-cva/biome-plugin

v0.1.0

Published

Biome GritQL plugin: diagnostics for styled-cva tw`...` tagged templates.

Readme

@styled-cva/biome-plugin

Biome GritQL plugin for @styled-cva/react. Provides lint diagnostics for tw.tag\…`/tw(Component)`…`` tagged templates that have abnormal whitespace or are too long on a single line.

Part of the styled-cva monorepo.

Diagnostics, not auto-fix

As of Biome 2.x, GritQL plugins can only register diagnostics — they cannot rewrite code. To auto-fix the issues this plugin reports, run @styled-cva/prettier-plugin on the same files. The two plugins are designed to complement each other:

  • @styled-cva/biome-plugin — flags issues in biome check / biome lint
  • @styled-cva/prettier-plugin — rewrites the offending templates on save

A migration to a code-modifying Biome plugin will become possible once Biome's JS plugin API ships.

Rules

normalize-tw-classes

Flags inline tw.tag\…`/tw(Component)`…`` tagged templates whose class string contains:

  • a run of 2+ horizontal whitespace characters
  • leading horizontal whitespace
  • trailing horizontal whitespace

Multi-line templates (whose chunk contains a \n) are exempt so that prettier-formatted multi-line tw.div\\n flex\n`` does not trigger the rule.

multiline-long-tw

Flags inline tw.tag\…`/tw(Component)`…`` tagged templates whose quasi text exceeds 80 characters on a single line. Multi-line templates are exempt.

Installation

bun add -D @styled-cva/biome-plugin @biomejs/biome

Peer dependency: @biomejs/biome >= 2.0.

Configuration

In biome.json reference the .grit files directly by path:

{
  "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
  "plugins": [
    "./node_modules/@styled-cva/biome-plugin/rules/normalize-tw-classes.grit",
    "./node_modules/@styled-cva/biome-plugin/rules/multiline-long-tw.grit"
  ]
}

Biome plugins are referenced by relative path; there is no package-name shorthand in Biome 2.x.

Caveats

  • Diagnostics only. No auto-fix. Pair with @styled-cva/prettier-plugin for rewrites.
  • tw import name is hard-coded. The rules only recognize the tw identifier; renamed imports (import sc as tw from …) are not supported.
  • .cva({ base, variants }) strings are not analyzed. Object-literal traversal with conditional regex predicates is not expressible in the current Biome GritQL dialect. Use @styled-cva/prettier-plugin to normalize those.
  • 80-char threshold is fixed. GritQL has no numeric comparison or plugin options; the rule uses r".{81,}". To raise/lower the threshold today, fork the .grit file.
  • Regex matches the quasi chunk text. Edge cases (e.g. classes that contain escaped backticks) are not exercised in tests.