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

eslint-plugin-css-stylistic

v0.0.2

Published

Stylistic CSS rules for ESLint

Downloads

225

Readme

eslint-plugin-css-stylistic

Stylistic CSS rules for ESLint's CSS language.

This package ports the 77 CSS-compatible rules from @stylistic/stylelint-plugin to the @eslint/css language API. Rule names and primary options are kept compatible so an existing Stylelint Stylistic configuration can be migrated without renaming rules.

Installation

pnpm i -D eslint @eslint/css eslint-plugin-css-stylistic

Usage

import css from "@eslint/css";
import stylistic from "eslint-plugin-css-stylistic";

export default [
  {
    files: ["**/*.css"],
    language: "css/css",
    plugins: {
      css,
      "css-stylistic": stylistic,
    },
    rules: {
      "css-stylistic/color-hex-case": ["error", "lower"],
      "css-stylistic/indentation": ["error", 2],
      "css-stylistic/number-leading-zero": ["error", "always"],
      "css-stylistic/string-quotes": ["error", "double"],
      "css-stylistic/unit-case": ["error", "lower"],
    },
  },
];

Unsupported: unicode-bom

The upstream unicode-bom rule is temporarily not supported.

@eslint/css removes the Unicode byte order mark before CSS rules run, and its CSSSourceCode does not expose whether the original file contained a BOM. As a result, a rule running with the official language: "css/css" cannot reliably distinguish files with a BOM from files without one.

The rule can be added once @eslint/css exposes the original BOM metadata to rules. Until then, unicode-bom is intentionally omitted instead of reporting incorrect results.

Attribution

Rule implementations and tests are adapted from @stylistic/stylelint-plugin. The upstream project is licensed under the MIT License, and its copyright notices and permission notice are preserved in this repository's LICENSE.