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

@w0s/stylelint-config

v4.23.0

Published

Stylelint configuration file used on `w0s.jp`

Downloads

729

Readme

stylelint-config

npm version CI status

Stylelint configuration file used on my personal website (w0s.jp).

Features

It is based on stylelint-config-standard with its own rule settings.

🙂: No problem, 😨: Error

  • Do not use ID selector.
    • 😨 #foo {}
    • 🙂 .foo {}
  • Do not use multiple universal selectors. However, this excludes the use of a next-sibling combinator (+).
    • 🙂 * {}
    • 😨 * > * {}
    • 🙂 * + * {} (This is used in the "owl selector" in stack layout)
  • The attribute selectors' case-sensitivity require the i identifier. See stylelint-attribute-case-sensitivity for details.
    • 😨 [type="foo"] { }
    • 🙂 [type="foo" i] { }
  • CSS nesting must use the & nesting selector.
    • 😨 .foo { .bar {} }
    • 🙂 .foo { &.bar {} }
  • Disallow !important within declarations.
    • 😨 color: #000 !important
    • 🙂 color: #000
  • Disallow complex shorthand properties such as background and font.
    • 😨 white-space: pre-wrap
    • 🙂 white-space-collapse: preserve
  • The display property must use multi keyword syntax.
    • 😨 display: block
    • 🙂 display: block flow
  • Use logical properties instead of physical properties.
    • 😨 margin-top: 1em
    • 🙂 margin-block-start: 1em
    • 🙂 overflow-x: visible (The overflow-* logical properties is not well supported by browsers)
  • Use logical units instead of physical units.
    • 😨 inline-size: 10lvw
    • 🙂 inline-size: 10lvi
  • Use logical values instead of physical values.
    • 😨 text-align: right
    • 🙂 text-align: end
    • 🙂 caption-side: top (Logical values for the caption-side property is only inline-start or inline-end)
  • Disallow default viewport-percentage units. The stylelint-no-default-viewport plugin is used.
    • 😨 inline-size: 10vi
    • 🙂 inline-size: 10lvi
  • The text-indent value must be 0 or greater.
    • 😨 margin-inline-start: 1em; text-indent: -1em
    • 🙂 text-indent: 1em hanging
  • The font-weight value must be a number.
    • 😨 font-weight: normal
    • 🙂 font-weight: 500 /* Windows + Yu Gothic measures to be greater than 400 */
  • Flex containers require an explicit flex-wrap property. The stylelint-plugin-defensive-css plugin is used.
    • 😨 display: block flex
    • 🙂 display: block flex; flex-wrap: nowrap
  • For the root element, color and background-color must be specified as a set. The stylelint-root-colors plugin is used.
    • 😨 :root { color: #000 }
    • 🙂 :root { background-color: #fff; color: #000 }
  • The order of properties within declaration blocks follows stylelint-config-concentric-order.
    • 😨 .foo { padding: 1em; margin: 1em }
    • 🙂 .foo { margin: 1em; padding: 1em }

See source code for other details.

Usage

{
  "extends": ["@w0s/stylelint-config"]
}