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

@gustcss/eslint-plugin

v0.13.0

Published

ESLint plugin that reports class names which generate no CSS in GustCSS projects

Readme

@gustcss/eslint-plugin

ESLint plugin that reports class names which generate no CSS in a GustCSS project.

The plugin delegates to the gustcss CLI (gustcss lint --json <file>), so the rules, theme resolution, and configuration are exactly the same as running the CLI by hand. Nothing is reimplemented in JavaScript, which means the editor and CI can never disagree.

Requirements

  • ESLint 9.30 or later (flat config)
  • gustcss installed in the project (the plugin resolves it from node_modules)

Install

npm install -D eslint @gustcss/eslint-plugin gustcss

Usage

// eslint.config.mjs
import gustcss from "@gustcss/eslint-plugin";

export default [
  {
    files: ["**/*.{js,jsx,ts,tsx,astro}"],
    plugins: { gustcss },
    rules: {
      "gustcss/unknown-class": "error",
      "gustcss/unsupported-syntax": "error",
      "gustcss/duplicate-class": "warn",
      "gustcss/conflicting-class": "warn",
    },
  },
];

Severity, lint.rules, lint.ignore, baselines, and suppression comments are read from the project's gustcss.config.json by the CLI. The ESLint severity only decides how ESLint reports the diagnostic (warn maps to a warning, everything else to an error).

Rules

| Rule | Reports | | --- | --- | | gustcss/unknown-class | Classes that do not resolve (typos, unknown theme colors, values outside the scale) | | gustcss/unsupported-syntax | Arbitrary values p-[13px], arbitrary CSS variables, unknown variants, unsupported variant combinations | | gustcss/unscanned-class | Static classes passed to helper functions the build does not extract | | gustcss/dynamic-class | Class names built at runtime (template interpolation, string concatenation) | | gustcss/invalid-safelist | safelist entries that do not resolve | | gustcss/duplicate-class | The same class twice in one class attribute | | gustcss/conflicting-class | Classes fully overridden by a later class in the generated CSS | | gustcss/no-inline-style | Inline style= attributes | | gustcss/raw-color | Palette colors used while the project defines theme colors | | gustcss/repeated-class-set | The same class set repeated across the project | | gustcss/invalid-suppression | Suppression comments that name a rule that does not exist | | gustcss/component-contract | Classes disallowed by a configured JSX component contract |

Configure component contracts in gustcss.config.json. When source is omitted, the CLI resolves default, named, and namespace imports from matching JSX elements. It supports relative paths and single-wildcard baseUrl / paths aliases from the nearest tsconfig.json or jsconfig.json, including a chain of relative single-file extends, then follows relative named and star re-exports, including export * as Namespace members. An import or re-export that cannot be resolved is skipped rather than failing the run. An explicit source points to a component definition relative to the config file. For automatically resolved imports, static cva() / tv() variants referenced by the resolved component export supply omitted sizes and variants, while unrelated definitions in the same file are excluded. A top-level function, variable, or class that renders one uppercase JSX component inherits that component's contract and detected options. Base names are tied to the file that uses them, so a same-named component in another file is unaffected. Only well-formed start tags count as rendered children, and an import that cannot be resolved is skipped rather than failing the run. Wrappers that render multiple components are left unresolved. The CLI remains the source of truth for matching and suggestions.

Automatic inference requires a public export mapped to a local declaration; private declarations with the same name are excluded. Named and default exports of named async function declarations and local export aliases such as export { Internal as Button } are supported. The single-definition fallback also requires that export-to-declaration mapping. The tsconfig search starts at the GustCSS configuration directory, not at each source file.

Settings

{
  settings: {
    gustcss: {
      // Use a specific CLI entry point (a native binary or the npm wrapper).
      cliPath: "./node_modules/.bin/gustcss",
      // Use a specific config file instead of auto-detection.
      configPath: "./gustcss.config.json",
    },
  },
}

Both settings can also be passed per rule as options (["error", { cliPath, configPath }]), which takes precedence.

Notes

  • The CLI reads the file from disk, so the plugin only reports for files that exist in the project. Unsaved editor buffers are not linted until they are saved.

  • Diagnostics are cached per file using its modification time, so ESLint's multiple passes over the same file do not spawn the CLI repeatedly.

  • For whole-project checks (cross-file rules, baselines, CI) run gustcss lint directly. For example:

    npx gustcss lint --max-warnings 0