# Default application configuration that all configurations inherit from.

# See config at https://github.com/brigade/scss-lint/blob/master/config/default.yml

plugin_directories: ['.scss-linters']

scss_files: 'src/**/*.scss'

exclude:
  - 'src/themes/ionic.mixins.scss'
  - 'src/themes/license.scss'
  - 'src/themes/normalize.scss'
  - 'src/themes/util.scss'
  - 'src/themes/version.scss'
  - 'src/platform/cordova.*.scss'
  - 'src/components/slides/slides-vendor.scss'


linters:
  ColorVariable:
    enabled: false

  DefaultRule:
    enabled: true

  DuplicateProperty:
    enabled: false

  MergeableSelector:
    enabled: true
    force_nesting: false

  PropertySortOrder:
    enabled: true
    ignore_unspecified: false
    min_properties: 2
    separate_groups: true
    order:

      # Box

      - box-sizing
      - position
      - top
      - right
      - bottom
      - left
      - z-index
      - display
      - overflow
      - clear
      -
      - flex
      - flex-basis
      - flex-direction
      - flex-flow
      - flex-grow
      - flex-shrink
      - flex-wrap
      - align-content
      - align-items
      - align-self
      - justify-content
      - order
      -
      - width
      - min-width
      - max-width
      - height
      - min-height
      - max-height
      -
      - columns
      - column-gap
      - column-fill
      - column-rule
      - column-span
      - column-count
      - column-width

      # Border

      - border
      - border-top
      - border-right
      - border-bottom
      - border-left
      - border-width
      - border-top-width
      - border-right-width
      - border-bottom-width
      - border-left-width

      - border-style
      - border-top-style
      - border-right-style
      - border-bottom-style
      - border-left-style

      - border-color
      - border-top-color
      - border-right-color
      - border-bottom-color
      - border-left-color

      - outline
      - outline-color
      - outline-offset
      - outline-style
      - outline-width

      # Text

      - font
      - font-family
      - font-size
      - -moz-osx-font-smoothing
      - -webkit-font-smoothing
      - font-smooth
      - font-style
      - font-variant
      - font-weight
      - src

      - letter-spacing
      - line-height
      - list-style
      - text-decoration
      - text-indent
      - text-overflow
      - text-rendering
      - text-shadow
      - text-transform
      - text-wrap

      - white-space
      - word-spacing

      - color

      # Background

      - background
      - background-attachment
      - background-color
      - background-image
      - background-repeat
      - background-size

      # Other

      - border-collapse
      - border-spacing
      - box-shadow
      - caption-side
      - content
      - cursor
      - empty-cells
      - opacity
      - quotes
      - speak
      - table-layout
      - vertical-align
      - visibility

      # Transforms

      - transform
      - transform-box
      - transform-style

      - transition
      - transition-delay
      - transition-duration
      - transition-property
      - transition-timing-function

  # This doesn't allow chaining between elements and attributes, ids or classes
  # if we turn this on it breaks a lot of components
  QualifyingElement:
    enabled: false
    allow_element_with_attribute: false
    allow_element_with_class: false
    allow_element_with_id: false

  SelectorFormat:
    enabled: false
    convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern

  StringQuotes:
    enabled: true
    style: double_quotes

  SelectorDepth:
    enabled: true
    max_depth: 5

  PropertySpelling:
    extra_properties:
      - contain
    disabled_properties:
      - background-position
      - direction
      - right
      - left
      - float
      - padding
      - padding-left
      - padding-right
      - padding-top
      - padding-bottom
      - margin
      - margin-left
      - margin-right
      - margin-top
      - margin-bottom
      - border-radius
      - border-top-left-radius
      - border-top-right-radius
      - border-bottom-right-radius
      - border-bottom-left-radius
      - text-align
      - transform-origin