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

stylelint-config-selleo

v0.1.1

Published

Stylelint Config Selleo CLI

Readme

stylelint-config-selleo

Linter for styles, configurable with 3 variants:

  • CSS & SCSS syntax
  • BEM methodology
  • SASS syntax

Installation

Target repo

Minimum Node.js version: 16

  • npm i --save-dev stylelint

  • npm i --save-dev stylelint-config-selleo

  • in the package.json add:

      "scripts": {
        "stylelint-config-selleo": "stylelint-config-selleo"
      }
  • run npm run stylelint-config-selleo init

  • select appropriate extensions

  • in your project root directory .stylelintrc.json file will appear with previously selected extensions

If you use prettier: Create or update existing .prettierignore following rule - ignore prettier for css, sccs and sass files - use stylelint by default

**/*.css
**/*.scss
**/*.sass

IDE setup

VSCode

  1. Install Stylelint plugin.
  2. Go to Preferences > Settings.
  3. Search for stylelint.
  4. Inside Stylelint: Snippet and Stylelint: Validate add scss or sass.

Autofix on file save

  1. Open VSCode settings in the json format
  2. Paste following rule at the end of file
  "editor.codeActionsOnSave": {
		"source.fixAll.stylelint": true
	},

JetBrains (RubyMine, WebStorm)

  1. Go to Preferences > Languages & Frameworks > Style Sheets > Stylelint.
  2. Click Enable.
  3. Inside Run for files enter {**/*,*}.{css,scss,sass} - without spaces between file extensions!

Autofix on file save

  1. Open WebStorm Preferences > Tools > File Watchers
  2. Click +/Add > <custom>
  3. Provide watcher name ie stylelint-auto-fix
  4. Change File type to Any
  5. Set Program to $ProjectFileDir$/node_modules/stylelint/bin/stylelint.js
  6. Set Arguments to $FilePath$ --fix
  7. Set Working directory to $ProjectFileDir$
  8. Open Advanced Options and let only Trigger the watcher on external changes checked
  9. Save and Apply changes

Add External Tools

This is a workaround for this issue. It will not work on file save, but you can instead run it by Right Click > External Tools - stylelint-auto-fix.

  1. Open WebStorm Preferences > Tools > External Tools
  2. Click +/Add
  3. Provide name ie stylelint-auto-fix
  4. Set Program to $ProjectFileDir$/node_modules/stylelint/bin/stylelint.js
  5. Set Arguments to $FilePath$ --fix
  6. Set Working directory to $ProjectFileDir$
  7. Save and Apply changes

CLI / CI

Run npm run stylelint-config-selleo to see all available commands:

fix-all         Run auto fix for all changed files
fix-current     Run auto fix for currently changed files
help            Display help for stylelint-config-selleo.
init            Initialize the Stylelint Selleo Config by selecting extensions
list-all        List all styles issues
list-current    List styles issues for currently changed files
plugins         List installed plugins.