# Default severity of all linters. severity: warning linters: BangFormat: enabled: true space_before_bang: true space_after_bang: false BemDepth: enabled: false BorderZero: enabled: false ChainedClasses: enabled: false ColorKeyword: enabled: true ColorVariable: enabled: true Comment: enabled: true style: silent DebugStatement: enabled: true DeclarationOrder: enabled: false DisableLinterReason: enabled: false DuplicateProperty: enabled: true ElsePlacement: enabled: true style: same_line EmptyLineBetweenBlocks: enabled: true ignore_single_line_blocks: true EmptyRule: enabled: true ExtendDirective: enabled: false FinalNewline: enabled: true present: true HexLength: enabled: false HexNotation: enabled: false # colours should be variables style: lowercase HexValidation: enabled: true IdSelector: enabled: true ImportantRule: enabled: false ImportPath: enabled: true leading_underscore: false filename_extension: false Indentation: enabled: true allow_non_nested_indentation: false character: space width: 2 LeadingZero: enabled: false MergeableSelector: enabled: false NameFormat: enabled: true allow_leading_underscore: true convention: hyphenated_lowercase NestingDepth: enabled: true max_depth: 5 # ideally 3 ignore_parent_selectors: true PlaceholderInExtend: enabled: true PropertyCount: enabled: false PropertySortOrder: enabled: false PropertySpelling: enabled: false # avoid false positives on new CSS features PropertyUnits: enabled: false PseudoElement: enabled: false # using `:after` is acceptable for older browsers QualifyingElement: enabled: true allow_element_with_attribute: true # eg elements based on aria attributes allow_element_with_class: false allow_element_with_id: false SelectorDepth: enabled: false SelectorFormat: enabled: true convention: hyphenated_lowercase Shorthand: enabled: false allowed_shorthands: [1, 2, 3] SingleLinePerProperty: enabled: true allow_single_line_rule_sets: true SingleLinePerSelector: enabled: true SpaceAfterComma: enabled: true style: one_space SpaceAfterPropertyColon: enabled: true style: one_space SpaceAfterPropertyName: enabled: true SpaceAfterVariableName: enabled: true SpaceAroundOperator: enabled: true style: one_space SpaceBeforeBrace: enabled: true style: space allow_single_line_padding: true SpaceBetweenParens: enabled: false StringQuotes: enabled: false TrailingSemicolon: enabled: true TrailingWhitespace: enabled: true TrailingZero: enabled: true TransitionAll: enabled: true UnnecessaryMantissa: enabled: true UnnecessaryParentReference: enabled: true UrlFormat: enabled: true UrlQuotes: enabled: true VariableForProperty: enabled: false properties: [] VendorPrefix: enabled: false ZeroUnit: enabled: true Compass::*: enabled: false