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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@w0s/stylelint-config

v4.8.0

Published

Stylelint configuration file used on w0s.jp

Downloads

46

Readme

stylelint-config

npm version test 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, 🙁: Warning, 😨: Error

  • Disallow !important within declarations.
    • 🙁 color: #000 !important
    • 🙂 color: #000
  • Multi-keyword syntax is recommended for the display property. The stylelint-display-multi-keyword plugin is used.
    • 🙁 display: block
    • 🙂 display: block flow
  • Use of CSS physical properties and values is not recommended. Use logical properties and values. The stylelint-plugin-logical-css plugin is used.
    • 🙁 margin-top: 1em
    • 🙂 margin-block-start: 1em
    • 🙁 text-align: right
    • 🙂 text-align: end
    • 🙂 overflow-x: visible (The overflow-* logical properties is not well supported by browsers)
  • Use of CSS physical utils is not recommended. Use logical utils. The stylelint-plugin-logical-css plugin is used.
    • 🙁 inline-size: 100vw
    • 🙂 inline-size: 100vi
  • 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 font-weight value must be numbers.
    • 😨 font-weight: normal
    • 🙂 font-weight: 500 /* Windows + Yu Gothic measures to be greater than 400 */
  • CSS nesting must use the & nesting selector.
    • 😨 .foo { .bar {} }
    • 🙂 .foo { &.bar {} }
  • For the root element, color and background-color must be specified as a set. See stylelint-root-colors for details.
    • 😨 :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"]
}