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-lagou

v1.0.2

Published

The following is introduce of **rules**:

Downloads

5

Readme

stylelint-config-lagou

A simple configuration based on configuring stylelint

Rules

The following is introduce of rules:

Spaces or Empty lines

  • [warn : indentation] 缩进为4个空格
  • [warn : max-empty-lines] 最大连续空2行
  • [error : block-no-empty] 禁止空代码块
  • [error : comment-no-empty] 禁止空注释块(多行注释)
  • [warn : comment-whitespace-inside] 注释两侧必须有空格
  • [warn : value-list-comma-space-before] 逗号前不能有空格
  • [warn : value-list-comma-space-after] 逗号后必须有空格
  • [warn : value-list-max-empty-lines] 禁止值列表中存在空行
  • [warn : declaration-block-semicolon-space-after] 单行语句分号后必须有空格
  • [warn : block-closing-brace-empty-line-before] 语句块(右大括号)结束前一行不能是空行
  • [error : block-opening-brace-newline-after] 多行语句块(左大括号)后必须换行
  • [warn : block-opening-brace-space-before] 语句块(左大括号)开始前必须有空格
  • [warn : declaration-colon-space-after] 属性值之前(冒号后)必须有空格

Specific Syntax

  • [warn : function-calc-no-unspaced-operator] 禁止calc语句中计算符(+、-、*、/)两侧无空格
  • [error : declaration-no-important] 禁止!important
  • [error : media-feature-name-no-unknown] 禁止未知的media名称
  • [error : no-duplicate-at-import-rules] 禁止同一个文件中值重复的@import语句
  • [error : no-unknown-animations] 禁止未知的animation-name

Structure

  • [warn : selector-max-id] 禁止ID选择器超过1层

Others

  • [error : number-no-trailing-zero] 禁止小数末尾有0
  • [error : length-zero-no-unit] 禁止数值0后有单位
  • [error : color-no-invalid-hex] 禁止无效的十六进制颜色
  • [warn : color-named] 禁止使用颜色名字
  • [error : string-no-newline] 禁止同一个字符串内部换行(可用\n代替)
  • [warn : number-max-precision] 禁止小数尾数超过4位
  • [error : unit-no-unknown] 禁止未知单位
  • [error : property-no-unknown] 禁止未知属性
  • [error : selector-pseudo-class-no-unknown] 禁止未知伪类选择器
  • [error : selector-pseudo-element-no-unknown] 禁止未知伪元素选择器
  • [error : declaration-block-no-duplicate-properties] 禁止重复属性名
  • [error : no-duplicate-selectors] 禁止重复的选择器
  • [error : no-extra-semicolons] 禁止额外的的分号
  • [error : declaration-block-trailing-semicolon] 语句必须分号结尾
  • [warn : string-quotes] 字符串的引号必须为双引号
  • [error : selector-type-case] 标签选择器必须是小写
  • [error : property-case] 属性名小写