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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@radum/stylelint-config

v7.5.1

Published

@radum Stylelint Shareable Config

Readme

@radum Stylelint config

npm

Personal recommended shareable config for stylelint.

It turns on all the possible errors rules within stylelint based on my own CSS styleguide.

Use it as is or as a foundation for your own config. You can extend or clone and change.

[!WARNING] Please keep in mind that this is a personal config with a lot opinions. Changes might not always be pleased by everyone and every use cases.

If you are using this config directly, I'd suggest you review the changes everytime you update. Or if you want more control over the rules, always feel free to fork it. Thanks!

Usage

Installation

pnpm install -D @radum/stylelint-config stylelint

And create stylelint.config.js in your project root:

import radum from '@radum/stylelint-config';

export default radum();

or if you are working on a Scss file:

import radum from '@radum/stylelint-config';

export default radum({
	scss: true
});

This will set the customSyntax to postcss-scss and add the stylelint-scss plugin + all my rules.

Extending the config

The first argument is an object with the following options:

  • sccs: boolean - Enable SCSS rules. Default is false.
  • stylistic: boolean - Enable stylistic rules. Default is true.
  • order: boolean - Enable order rules. Default is false.

The second argument is an Stylelint config object. You can use it to disable or enable rules. Add new plugins or change the default settings. This will be merged with the default config.

// stylelint.config.js
import radum from '@radum/stylelint-config';

export default radum(
	{
		scss: true,
		stylistic: false,
		order: true,
	},
	{
		rules: {
			'scss/at-if-no-null': null,
		},
	}
);

This will disable the scss/at-if-no-null rule and enable the scss and order rules + their own plugins.

Stylistic

The stylistic rules are based on the @stylistic/stylelint-plugin plugin and are enabled by default.

In order to customize the stylistic rules, you can disable them by setting the stylistic option to false and then add the rules you want to enable or pass an object.

// stylelint.config.js
import radum from '@radum/stylelint-config';

export default radum(
	{
		stylistic: {
			indent: 'tab',
			quotes: 'double',
			maxLineLength: 120
		}
	}
);

Provide a defineConfig function for stylelint.config.js files

If you are using the stylelint-define-config package, you can provide a function that will be used to define the config.

pnpm install -D stylelint-define-config @stylelint-types/stylelint-scss @stylelint-types/stylelint-stylistic @stylelint-types/stylelint-order
import radum from '@radum/stylelint-config';
import { defineConfig } from 'stylelint-define-config';

/// <reference types="@stylelint-types/stylelint-scss">

export default radum({
	scss: true
}, defineConfig({
	rules: {
		'property-no-unknown': null
	}
}));

Complementary tools

Stylelint configs and plugins used

  • https://github.com/stylelint/stylelint-config-recommended

  • https://github.com/stylelint/stylelint-config-standard

  • https://github.com/stylelint-scss/stylelint-config-recommended-scss

  • https://github.com/stylelint-scss/stylelint-config-standard-scss

  • https://github.com/stylelint-stylistic/stylelint-stylistic

  • https://github.com/stylelint-scss/stylelint-scss

  • https://github.com/hudochenkov/stylelint-order

Editor plugins

Find stylelint rules

Find stylelint rules that are not configured in your stylelint config. This is useful to see what else is new and what is deprecated or updated.

Running this in your root folder will show the list.

npx stylelint-find-rules

More info here https://github.com/alexilyaev/stylelint-find-rules

Changelog