Sharable stylelint config used by GitHub's CSS
A sharable stylelint config object that enforces GitHub's css rules
$ npm install --save stylelint-config-primer
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.
This is a list of the lints turned on in this configuration, and what they do.
"extend"Disallow the use of
1declaration per line.
^transition: Disallow the use of
^background: Disallow the use of
http:protocols within background image urls.
^border: Disallow the use of the word
nonefor borders, use
.+: For everything ban the use of the word
linear-gradient()calls that are not valid according to the standard syntax.