This package has been deprecated

Author message:

Renamed

stylelint-config-telegraph

1.0.0 • Public • Published

stylelint-config-telegraph

This package provides TMG's base CSS .stylelintrc as an extensible shared config.

Install

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

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-telegraph"
}

Styleguide

Selectors

ID

Never use ID selectors. The high specificty can cause unexpected interactions between styles.

Class

Class names should be in the Block Element Modifier (BEM) style. BEM allows for clean, reusable code, that makes a clear connection between the HTML markup and the styles.

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-blacklist: Specify a blacklist 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

Readme

Keywords

none

Package Sidebar

Install

npm i stylelint-config-telegraph

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

55.4 kB

Total Files

9

Last publish

Collaborators

  • telegraph-engineering-user