Skip to content
Snippets Groups Projects
.sass-lint.yml 774 B
Newer Older
  • Learn to ignore specific revisions
  • Laura Cappelli's avatar
    Laura Cappelli committed
    #########################
    ## Sass Lint File
    #########################
    # Linter Options
    options:
      # Don't merge default rules
      merge-default-rules: false
      # Raise an error if more than 50 warnings are generated
      max-warnings: 50
    # File Options
    files:
      include: 'src/sass/**/*.s+(a|c)ss'
    # Rule Configuration
    rules:
      extends-before-mixins: 2
      extends-before-declarations: 2
      placeholder-in-extend: 2
      mixins-before-declarations:
        - 2
        -
          exclude:
            - breakpoint
            - mq
    
      no-warn: 1
      no-debug: 1
      no-ids: 2
      no-important: 2
      hex-notation:
        - 2
        -
          style: uppercase
      indentation:
        - 2
        -
          size: 2
      property-sort-order:
        - 1
        -
          order:
            - display
            - margin
          ignore-custom-properties: true