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

@moneko/stylelint

v1.8.3

Published

stylelint

Downloads

304

Readme

@moneko/stylelint

A minimalist, zero-dependency Stylelint configuration with built-in support for CSS-in-JS, SCSS, LESS, and more.

Features

  • Zero dependencies: Completely built on Stylelint's core, no extra packages required.
  • Minimal configuration: Focuses on essential rules without unnecessary bloat.
  • Supports CSS-in-JS: Works out of the box for styled components, Emotion, and other CSS-in-JS solutions.
  • Built-in support for SCSS, LESS, and more: Handles modern stylesheets with no additional configuration.
  • Easily customizable: Extend and modify the configuration to suit your specific needs.

Installation

Install this package as a devDependency:

npm install @moneko/stylelint -D
# or
yarn add @moneko/stylelint -D
# or
pnpm add @moneko/stylelint -D

Usage

Stylelint API Usage

You can integrate stylelint programmatically in your JavaScript/TypeScript code as follows:

import { stylelint } from "@moneko/stylelint";

// Automatically support .css, .scss, .less, .ts, .tsx, .js, and .jsx files
const exts = ["css", "scss", "less", "ts", "tsx", "js", "jsx"].join(",");
const result = await stylelint.lint({
  files: `src/**/*.{${exts}}`,
  fix: true, // Automatically fix issues
  cache: true, // Enable cache to speed up subsequent runs
  formatter: "string", // Use a simple string formatter
});

if (result.report) {
  process.stdout.write(result.report);
}

Configuration

This package provides an easy way to configure Stylelint.

YAML Configuration (.stylelintrc.yaml)

extends:
  - "@moneko/stylelint/config"

JS Configuration (stylelint.config.mjs)

import config from "@moneko/stylelint/config";

export default config;

Built-in Support for CSS-in-JS, SCSS, LESS

By default, this configuration supports a wide range of modern CSS and JavaScript file types, without the need for additional setup:

  • CSS-in-JS: Works seamlessly with popular libraries like styled-components, Emotion, and other CSS-in-JS solutions.
  • SCSS & LESS: Native support for SCSS and LESS, so you can lint your stylesheets without extra configuration.
  • JavaScript/TypeScript: Handles .js, .jsx, .ts, and .tsx files, enabling you to lint both styles and code in a unified way.

This means that whether you're working with traditional stylesheets, SCSS, LESS, or CSS-in-JS, this configuration has you covered.

Why "Zero Dependencies"?

This configuration is built with simplicity in mind, offering several benefits:

  • Faster setup: No need to install and configure additional plugins. Just install the package and you’re good to go.
  • Improved performance: With zero dependencies, there's less overhead and faster processing times.
  • Easier maintenance: Fewer dependencies mean less to track, update, and worry about security vulnerabilities.

Customization

If you need to adapt the configuration to your specific project, it's easy to customize:

  • Extend the configuration: You can extend or modify the default rules by creating your own .stylelintrc file or importing the config into a stylelint.config.js file.
  • Add custom plugins: While this package has zero dependencies, you're free to add custom Stylelint plugins if necessary to meet your specific needs.

Here’s an example of how to extend the configuration:

License

MIT