All Projects → primer → Stylelint Config Primer

primer / Stylelint Config Primer

Licence: mit
Sharable stylelint config used by GitHub's CSS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Stylelint Config Primer

stylelint-config
Sharable stylelint config used by GitHub's CSS
Stars: ✭ 194 (+17.58%)
Mutual labels:  stylelint, lint, config
vscode-lint
A VSCode configuration tool integrating Stylelint and Eslint
Stars: ✭ 60 (-63.64%)
Mutual labels:  stylelint, lint
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-91.52%)
Mutual labels:  stylelint, lint
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+138.79%)
Mutual labels:  stylelint, lint
elint
A easy way to lint your code
Stars: ✭ 38 (-76.97%)
Mutual labels:  stylelint, lint
Tsconfig
Shared TypeScript config for my projects
Stars: ✭ 146 (-11.52%)
Mutual labels:  config
Misspell Fixer
Simple tool for fixing common misspellings, typos in source code
Stars: ✭ 154 (-6.67%)
Mutual labels:  lint
Breko Hub
Babel React Koa Hot Universal Boilerplate
Stars: ✭ 145 (-12.12%)
Mutual labels:  lint
Protolint
A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
Stars: ✭ 142 (-13.94%)
Mutual labels:  lint
Prettier Stylelint
code > prettier > stylelint > formatted code
Stars: ✭ 162 (-1.82%)
Mutual labels:  stylelint
Magento2 Configurator
Magento 2 Configurator
Stars: ✭ 158 (-4.24%)
Mutual labels:  config
Env
Simple lib to parse environment variables to structs
Stars: ✭ 2,164 (+1211.52%)
Mutual labels:  config
Goconfig
goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
Stars: ✭ 146 (-11.52%)
Mutual labels:  config
Ember Cli Template Lint
Ember CLI integration for ember-template-lint
Stars: ✭ 156 (-5.45%)
Mutual labels:  lint
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+1272.12%)
Mutual labels:  config
Game Server Configs
A repo of game server configuration files used by LinuxGSM
Stars: ✭ 157 (-4.85%)
Mutual labels:  config
Hostsvn
Hosts block ads of Vietnamese
Stars: ✭ 145 (-12.12%)
Mutual labels:  config
Gulp Stylelint
Gulp plugin for running Stylelint results through various reporters.
Stars: ✭ 149 (-9.7%)
Mutual labels:  stylelint
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (-5.45%)
Mutual labels:  stylelint
Pettier
Prettier config that randomizes options and arbitrarily switches between spaces and tabs 🙄
Stars: ✭ 149 (-9.7%)
Mutual labels:  lint

Primer Stylelint Config

npm version

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

Install

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

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": "stylelint-config-primer"
}

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].