.scss-lint.yml 5.0 KB

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