.scss-lint.yml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. # Default application configuration that all configurations inherit from.
  2. # Documentation:
  3. # https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
  4. # Based on recommendations from The Sass Guidelines project & Hound CI
  5. # * http://sass-guidelin.es/#scss-lint
  6. # * https://houndci.com/
  7. scss_files: "**/*.scss"
  8. plugin_directories: ['.scss-linters']
  9. # List of gem names to load custom linters from (make sure they are already
  10. # installed)
  11. plugin_gems: []
  12. linters:
  13. BangFormat:
  14. enabled: true
  15. space_before_bang: true
  16. space_after_bang: false
  17. BemDepth:
  18. enabled: false
  19. max_elements: 1
  20. BorderZero:
  21. enabled: true
  22. convention: zero # or `none`
  23. ChainedClasses:
  24. enabled: false
  25. ColorKeyword:
  26. enabled: true
  27. ColorVariable:
  28. enabled: true
  29. Comment:
  30. enabled: false
  31. style: silent
  32. DebugStatement:
  33. enabled: true
  34. DeclarationOrder:
  35. enabled: true
  36. DisableLinterReason:
  37. enabled: false
  38. DuplicateProperty:
  39. enabled: true
  40. ElsePlacement:
  41. enabled: true
  42. style: same_line # or 'new_line'
  43. EmptyLineBetweenBlocks:
  44. enabled: true
  45. ignore_single_line_blocks: false
  46. EmptyRule:
  47. enabled: true
  48. ExtendDirective:
  49. enabled: false
  50. FinalNewline:
  51. enabled: true
  52. present: true
  53. HexLength:
  54. enabled: true
  55. style: short # or 'long'
  56. HexNotation:
  57. enabled: true
  58. style: lowercase # or 'uppercase'
  59. HexValidation:
  60. enabled: true
  61. IdSelector:
  62. enabled: true
  63. ImportantRule:
  64. enabled: true
  65. ImportPath:
  66. enabled: true
  67. leading_underscore: false
  68. filename_extension: false
  69. Indentation:
  70. enabled: true
  71. allow_non_nested_indentation: false
  72. character: space # or 'tab'
  73. width: 2
  74. LeadingZero:
  75. enabled: true
  76. style: include_zero # or 'exclude_zero'
  77. MergeableSelector:
  78. enabled: true
  79. force_nesting: true
  80. NameFormat:
  81. enabled: true
  82. allow_leading_underscore: true
  83. convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern
  84. NestingDepth:
  85. enabled: true
  86. max_depth: 4
  87. ignore_parent_selectors: false
  88. PlaceholderInExtend:
  89. enabled: true
  90. PropertyCount:
  91. enabled: true
  92. include_nested: false
  93. max_properties: 10
  94. PropertySortOrder:
  95. enabled: true
  96. ignore_unspecified: false
  97. min_properties: 2
  98. separate_groups: false
  99. PropertySpelling:
  100. enabled: true
  101. extra_properties: []
  102. disabled_properties: []
  103. PropertyUnits:
  104. enabled: true
  105. global: [
  106. 'ch', 'em', 'ex', 'rem', # Font-relative lengths
  107. 'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
  108. 'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
  109. 'deg', 'grad', 'rad', 'turn', # Angle
  110. 'ms', 's', # Duration
  111. 'Hz', 'kHz', # Frequency
  112. 'dpi', 'dpcm', 'dppx', # Resolution
  113. '%'] # Other
  114. properties: {}
  115. PseudoElement:
  116. enabled: true
  117. QualifyingElement:
  118. enabled: true
  119. allow_element_with_attribute: false
  120. allow_element_with_class: false
  121. allow_element_with_id: false
  122. SelectorDepth:
  123. enabled: true
  124. max_depth: 3
  125. SelectorFormat:
  126. enabled: true
  127. convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern
  128. # 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]*)?$'
  129. Shorthand:
  130. enabled: true
  131. allowed_shorthands: [1, 2, 3]
  132. SingleLinePerProperty:
  133. enabled: true
  134. allow_single_line_rule_sets: false
  135. SingleLinePerSelector:
  136. enabled: true
  137. SpaceAfterComma:
  138. enabled: true
  139. style: one_space # or 'no_space', or 'at_least_one_space'
  140. SpaceAfterPropertyColon:
  141. enabled: true
  142. style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'
  143. SpaceAfterPropertyName:
  144. enabled: true
  145. SpaceAfterVariableName:
  146. enabled: true
  147. SpaceAroundOperator:
  148. enabled: true
  149. style: one_space # or 'at_least_one_space', or 'no_space'
  150. SpaceBeforeBrace:
  151. enabled: true
  152. style: space # or 'new_line'
  153. allow_single_line_padding: true
  154. SpaceBetweenParens:
  155. enabled: true
  156. spaces: 0
  157. StringQuotes:
  158. enabled: true
  159. style: single_quotes # or double_quotes
  160. TrailingSemicolon:
  161. enabled: true
  162. TrailingWhitespace:
  163. enabled: true
  164. TrailingZero:
  165. enabled: true
  166. TransitionAll:
  167. enabled: false
  168. UnnecessaryMantissa:
  169. enabled: true
  170. UnnecessaryParentReference:
  171. enabled: true
  172. UrlFormat:
  173. enabled: false
  174. UrlQuotes:
  175. enabled: true
  176. VariableForProperty:
  177. enabled: false
  178. properties: []
  179. VendorPrefix:
  180. enabled: true
  181. identifier_list: base
  182. additional_identifiers: []
  183. excluded_identifiers: []
  184. ZeroUnit:
  185. enabled: true
  186. Compass::*:
  187. enabled: false