Skip to content

Instantly share code, notes, and snippets.

@dayAlone
Created August 11, 2017 06:11
Show Gist options
  • Save dayAlone/dcb34744625d01083d385da5b484b1fd to your computer and use it in GitHub Desktop.
Save dayAlone/dcb34744625d01083d385da5b484b1fd to your computer and use it in GitHub Desktop.
styleling
extends: 'stylelint-config-standard'
plugins:
- 'stylelint-order'
- 'stylelint-selector-bem-pattern'
rules:
unit-whitelist:
- px
- vh
- vw
- s
- '%'
- deg
indentation: 4
declaration-no-important: true
block-closing-brace-empty-line-before: null
block-closing-brace-newline-before: null
block-opening-brace-space-before: null
declaration-block-trailing-semicolon: null
max-empty-lines: 1
font-family-name-quotes: 'always-unless-keyword'
property-no-unknown:
- true
- ignoreProperties:
- 'min-size'
- 'max-size'
selector-type-no-unknown:
- true
- ignoreTypes:
- '^'
- "/^(__|--)[a-zA-Z0-9]/"
order/declaration-block-order:
- custom-properties
- dollar-variables
- declarations
- at-rules
- rules
order/declaration-block-properties-specified-order:
- content
- width
- height
- max-width
- max-height
- size
- min-size
- max-size
- position
- z-index
- top
- bottom
- left
- right
- padding
- margin
- overflow
- display
- flex
- justify-content
- align-items
- font
- text
- line-height
- color
- border
- border-radius
- background
- box-shadow
- transition
- animation
- transform
- opacity
- will-change
- pointer-events
- appearance
- cursor
syntax: sugarss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment