12.9.2 • Published 12 days ago

@primer/stylelint-config v12.9.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

Primer Stylelint Config

npm version

A sharable stylelint config object that enforces GitHub's CSS rules

Install

$ npm install --save --dev @primer/stylelint-config

Usage

Within your stylelint config object You can extend this configuration. This will serve as a base for your config, then you can make overrides in your own config object:

{
  "extends": "@primer/stylelint-config"
}

Documentation

Plugins

Configured lints

This is a list of the lints turned on in this configuration, and what they do.

At-rule

Block

Color

Comment

  • comment-empty-line-before: There must always be an empty line before comments. Except: Comments that are nested and the first child of their parent node. Ignore: stylelint commands
  • comment-whitespace-inside: There must always be whitespace inside the markers.

Declaration

Declaration block

Declaration Property

  • declaration-property-value-disallowed-list: Specify a list of disallowed property and value pairs within declarations.
    • ^transition: Disallow the use of all within transitions.
    • ^background: Disallow the use of http: protocols within background image urls.
    • ^border: Disallow the use of the word none for borders, use 0 instead.
    • .+: For everything ban the use of the word initial.

Font Family

Function

General

Media Feature

Media Query

Media Query List

Number

Length

Property

Rule

  • rule-nested-empty-line-before: There must always be an empty line before multi-line rules. Except: Nested rules that are the first of their parent rule. Ignore: Rules that come after a comment.
  • rule-non-nested-empty-line-before: There must always be an empty line before multi-line rules. Ignore: Rules that come after a comment.

Selector

Selector List

String

Unit

Value

Value list

License

MIT © GitHub

12.9.2-rc.46fe2e1

2 months ago

12.9.2

2 months ago

12.7.2-rc.69b2f10

10 months ago

12.9.1-rc.ec47914

5 months ago

12.7.3-rc.99e67f7

9 months ago

12.8.0-rc.b12fbe2

9 months ago

12.8.0

9 months ago

12.7.2

10 months ago

12.9.0-rc.ea3b36b

5 months ago

12.9.0

5 months ago

12.9.1

5 months ago

12.7.1-rc.ff27b7e

11 months ago

12.7.1-rc.7ed22ed

11 months ago

12.7.1-rc.410391d

11 months ago

12.7.1-rc.9db1499

12 months ago

12.7.1

11 months ago

12.7.1-rc.1402572

11 months ago

12.7.1-rc.d8a889b

12 months ago

12.7.0

2 years ago

12.6.1

2 years ago

12.6.0

2 years ago

12.5.0

2 years ago

12.4.0

2 years ago

12.4.1

2 years ago

12.4.2

2 years ago

12.3.0

2 years ago

12.3.1

2 years ago

12.3.2

2 years ago

12.3.3

2 years ago

12.2.0

2 years ago

12.1.1

2 years ago

12.1.0

3 years ago

0.0.0-2021915553

3 years ago

0.0.0-2021913510

3 years ago

0.0.0-2021914490

3 years ago

12.0.1

3 years ago

0.0.0-2021914627

3 years ago

12.0.0

3 years ago