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

stylelint-config-nju33

v1.0.0

Published

A stylelint config by nju33

Downloads

18

Readme

stylelint-config-nju33

npm version js-standard-style

A stylelint config by nju33

Install

npm i stylelint-config-nju33

Usage

Create .stylelintrc as follows

{
  "extends": "stylelint-config-nju33"
}

Example

@charset "utf-8";

@import "normalize.css";
@import "common.css";

/* ↑ newline on top of comment */

/*
  ↓ warnings
  .warning{}
    - single line
  .warning{
    color: #fff;
  }
    - single space before "{"


    - Unexpected empty line
*/

.something {
  @extend something;
  background-color: #fff;
  background-image:
    linear-gradient(
      to bottom,
      transparent 50%,
      #ccc 50%
    );

  /*
    ↓ warnings
    color:#fff;
      - single space after ":"
    background-color: #333;
      - duplicate property "background-color"
    background: #000;
      - shorthand "background" after "background-color"
    z-index: 100 !important;
      - !important
    background-image: liner-gradient(to right, #000 10%, transparent 10%, transparent 90%, #000 90%);
      - max line length 80
    background-image:
      liner-gradient(to right, #000 10%, transparent 10%, transparent 90%, #000 90%);
      - single space after ":" with a single-line value
  */
}

.color {
  color: #fff;
  background-color: #f8f8f8;

  /*
    ↓ warning
    border-top: white;
      - named color "white"
  */
}

.number {
  width: 33.333%;
  padding: .5em;
  margin-left: calc(50% - 50px);

  /*
    ↓ warnings
    width: 33.3333%;
      - "33.3333" to be "33.333"
    padding: 0.5em;
      - leading zero
    margin: 1.000px;
      - trailing zero(s)
    margin-left: calc(50%-50px);
      - an operator before sign "-"
  */
}

.multi-value {
  text-shadow: 0 0 0 #000, 0 0 0 #111;
  box-shadow:
    0 0 0 0 #000,
    0 0 0 0 #111;
  transform: translate(0, 0) scale(2);
  filter:
    blur(3px)
    grayscale(30%);

  /*
    ↓ warning
    transform: translate( 0, 0 ) scale(2);
      - whitespace after "("
      - whitespace before ")"
  */
}

.multi-selector1, .multi-selector2 {
  /* ... */
}

.multi-selector1,
.multi-selector2 {
  /* ... */
}

/*
  ↓ warning
  .multiselector1,.multi-selector2 {
    - single space after "," in a single-line list
  }
*/

@media screen and (min-width: 600px) {}
@media screen and (minwidth <= 600px) {}

/*
  ↓ warnings
  @media screen and (min-width:600px) {}
    - single space after ":"
  @media screen and (minwidth<=600px) {}
    - single space before range operator
    - single space after range operator
*/

@media screen and (min-width: 800px) {
  .nest1 {
    /* ... */
  }

  .nest2 {
    /* ... */
  }
}

/*
  ↓ warnings
  @media screen and (min-width: 800px) {

    .nest1 {
    }

    .nest2 {
    }
  }
    - empty line before nested rule
  @media screen and (min-width: 800px) {
    .nest1 {
    }
    .nest2 {
    }
  }
    - empty line before nested rule
*/

/*
  other rules
    - indent 2 space
    - no eol whitespace
*/

/* ↓ newline to eof */

Changelog

|Version|Description| |:-|:-| |v1.0.0|Update for stylelint v3.1.4|