| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- # Default application configuration that all configurations inherit from.
- # Documentation:
- # https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
- # Based on recommendations from The Sass Guidelines project & Hound CI
- # * http://sass-guidelin.es/#scss-lint
- # * https://houndci.com/
- scss_files: "**/*.scss"
- plugin_directories: ['.scss-linters']
- # List of gem names to load custom linters from (make sure they are already
- # installed)
- plugin_gems: []
- linters:
- BangFormat:
- enabled: true
- space_before_bang: true
- space_after_bang: false
- BemDepth:
- enabled: false
- max_elements: 1
- BorderZero:
- enabled: true
- convention: zero # or `none`
- ChainedClasses:
- enabled: false
- ColorKeyword:
- enabled: true
- ColorVariable:
- enabled: true
- Comment:
- enabled: false
- style: silent
- DebugStatement:
- enabled: true
- DeclarationOrder:
- enabled: true
- DisableLinterReason:
- enabled: false
- DuplicateProperty:
- enabled: true
- ElsePlacement:
- enabled: true
- style: same_line # or 'new_line'
- EmptyLineBetweenBlocks:
- enabled: true
- ignore_single_line_blocks: false
- EmptyRule:
- enabled: true
- ExtendDirective:
- enabled: false
- FinalNewline:
- enabled: true
- present: true
- HexLength:
- enabled: true
- style: short # or 'long'
- HexNotation:
- enabled: true
- style: lowercase # or 'uppercase'
- HexValidation:
- enabled: true
- IdSelector:
- enabled: true
- ImportantRule:
- enabled: true
- ImportPath:
- enabled: true
- leading_underscore: false
- filename_extension: false
- Indentation:
- enabled: true
- allow_non_nested_indentation: false
- character: space # or 'tab'
- width: 2
- LeadingZero:
- enabled: true
- style: include_zero # or 'exclude_zero'
- MergeableSelector:
- enabled: true
- force_nesting: true
- NameFormat:
- enabled: true
- allow_leading_underscore: true
- convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern
- NestingDepth:
- enabled: true
- max_depth: 4
- ignore_parent_selectors: false
- PlaceholderInExtend:
- enabled: true
- PropertyCount:
- enabled: true
- include_nested: false
- max_properties: 10
- PropertySortOrder:
- enabled: true
- ignore_unspecified: false
- min_properties: 2
- separate_groups: false
- PropertySpelling:
- enabled: true
- extra_properties: []
- disabled_properties: []
- PropertyUnits:
- enabled: true
- global: [
- 'ch', 'em', 'ex', 'rem', # Font-relative lengths
- 'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
- 'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
- 'deg', 'grad', 'rad', 'turn', # Angle
- 'ms', 's', # Duration
- 'Hz', 'kHz', # Frequency
- 'dpi', 'dpcm', 'dppx', # Resolution
- '%'] # Other
- properties: {}
- PseudoElement:
- enabled: true
- QualifyingElement:
- enabled: true
- allow_element_with_attribute: false
- allow_element_with_class: false
- allow_element_with_id: false
- SelectorDepth:
- enabled: true
- max_depth: 3
- SelectorFormat:
- enabled: true
- convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern
- # class_convention: '^(?:u|is|has)\-[a-z][a-zA-Z0-9]*$|^(?!u|is|has)[a-zA-Z][a-zA-Z0-9]*(?:\-[a-z][a-zA-Z0-9]*)?(?:\-\-[a-z][a-zA-Z0-9]*)?$'
- Shorthand:
- enabled: true
- allowed_shorthands: [1, 2, 3]
- SingleLinePerProperty:
- enabled: true
- allow_single_line_rule_sets: false
- SingleLinePerSelector:
- enabled: true
- SpaceAfterComma:
- enabled: true
- style: one_space # or 'no_space', or 'at_least_one_space'
- SpaceAfterPropertyColon:
- enabled: true
- style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'
- SpaceAfterPropertyName:
- enabled: true
- SpaceAfterVariableName:
- enabled: true
- SpaceAroundOperator:
- enabled: true
- style: one_space # or 'at_least_one_space', or 'no_space'
- SpaceBeforeBrace:
- enabled: true
- style: space # or 'new_line'
- allow_single_line_padding: true
- SpaceBetweenParens:
- enabled: true
- spaces: 0
- StringQuotes:
- enabled: true
- style: single_quotes # or double_quotes
- TrailingSemicolon:
- enabled: true
- TrailingWhitespace:
- enabled: true
- TrailingZero:
- enabled: true
- TransitionAll:
- enabled: false
- UnnecessaryMantissa:
- enabled: true
- UnnecessaryParentReference:
- enabled: true
- UrlFormat:
- enabled: false
- UrlQuotes:
- enabled: true
- VariableForProperty:
- enabled: false
- properties: []
- VendorPrefix:
- enabled: true
- identifier_list: base
- additional_identifiers: []
- excluded_identifiers: []
- ZeroUnit:
- enabled: true
- Compass::*:
- enabled: false
|