Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@primer/stylelint-config

Package Overview
Dependencies
Maintainers
9
Versions
433
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primer/stylelint-config

Sharable stylelint config used by GitHub's CSS

  • 12.0.0-rc.bada35f
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.1K
increased by49.88%
Maintainers
9
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 29 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc