Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

damjack/stylelint-config-bemo

 
 

Repository files navigation

Bemo Stylelint Config

NPM version

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

Install

$ npm install --save stylelint-config-bemo

Usage

Set your stylelint config to:

{
  "extends": "stylelint-config-bemo"
}

Documentation

Plugins

  • stylelint-order: A plugin pack of order related linting rules for stylelint.
  • stylelint-scss: A collection of SCSS specific linting rules for stylelint

Configured lints

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

At-rule

Block

Color

Declaration

Declaration block

Declaration Property

  • declaration-property-value-blacklist: Specify a blacklist of disallowed property and value pairs within declarations.
    • ^border: Disallow the use of the word none for borders, use 0 instead.

Function

General

Media Feature

Number

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.

SCSS

Selector

String

  • string-quotes: Strings must always be wrapped with single quotes.

Stylelint Disable Comment

Value

About

⚙ A stylelint config to Bemo's CSS rules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Ruby 0.6%