Snippets

Maikel Daloo sass-lint config

Created by Maikel Daloo last modified
# sass-lint config - strict coding style rule declarations.

files:
  include: '**/*.s+(a|c)ss'
options:
  formatter: stylish
  merge-default-rules: false
rules:
  attribute-quotes:
    - 1
    - include: true
  border-zero:
    - 1
    - convention: 0
  brace-style:
    - 1
    - style: stroustrup
    - allow-single-line: false
  class-name-format:
    - 1
    -
      allow-leading-underscore: false
      convention: hyphenatedbem
  declarations-before-nesting: 1
  empty-line-between-blocks:
    - 1
    - include: true
    - allow-single-line-rulesets: false
  extends-before-declarations: 1
  extends-before-mixins: 1
  function-name-format:
    - 1
    -
      allow-leading-underscore: false
      convention: hyphenatedbem
  hex-notation:
    - 1
    - style: lowercase
  id-name-format:
    - 1
    -
      allow-leading-underscore: false
      convention: hyphenatedbem
  indentation:
    - 1
    - size: tab
  leading-zero:
    - 1
    - include: true
  mixin-name-format:
    - 1
    -
      allow-leading-underscore: false
      convention: hyphenatedbem
  no-ids: 1
  no-invalid-hex: 2
  no-qualifying-elements: 0
  no-misspelled-properties: 2
  no-trailing-whitespace: 1
  one-declaration-per-line: 1
  placeholder-name-format:
    - 1
    -
      allow-leading-underscore: false
      convention: hyphenatedbem
  property-sort-order:
    - 1
    - order: alphabetical
  quotes:
    - 1
    - style: double
  single-line-per-selector: 1
  space-after-bang:
    - 1
    - include: false
  space-after-colon:
    - 1
    - include: true
  space-after-comma:
    - 1
    - include: true
  space-around-operator:
    - 1
    - include: true
  space-before-bang:
    - 1
    - include: true
  space-before-brace:
    - 1
    - include: true
  space-before-colon:
    - 1
    - include: false
  space-between-parens:
    - 1
    - include: false
  trailing-semicolon:
    - 1
    - include: true
  variable-name-format:
    - 1
    -
      allow-leading-underscore: false
      convention: hyphenatedbem
  zero-unit:
    - 1
    - include: false

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.