Drupal 8 Site using Vue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

247 lines
4.8 KiB

  1. # Custom configuration for Sass lint.
  2. # https://github.com/sasstools/sass-lint
  3. options:
  4. formatter: stylish
  5. merge-default-rules: true
  6. # For all rules, setting their severity to 0 turns it off,
  7. # setting to 1 sets it as a warning (something that should not be committed in),
  8. # and setting to 2 set it to an error (something that should not be written).
  9. #
  10. # More info can be found here:
  11. # https://github.com/sasstools/sass-lint/tree/develop/docs/rules
  12. rules:
  13. # Prefer the terser border: 0 over border: none.
  14. border-zero:
  15. - 1
  16. - convention: '0'
  17. # Prefer
  18. #
  19. # .foo {
  20. # content: 'foo';
  21. # }
  22. #
  23. # over
  24. #
  25. # .foo
  26. # {
  27. # content: 'foo';
  28. # }
  29. # Allow single line for one off cases.
  30. brace-style:
  31. - 1
  32. -
  33. style: stroustrup
  34. allow-single-line: true
  35. # Prefer @import paths without leading underscores and/or
  36. # file extensions.
  37. clean-import-paths:
  38. - 1
  39. -
  40. filename-extension: false
  41. leading-underscore: false
  42. # Prefer empty lines between code blocks when nestings.
  43. empty-line-between-blocks:
  44. - 1
  45. - include: true
  46. # Prefer newline at the end of a file.
  47. final-newline:
  48. - 1
  49. - include: true
  50. # Don't enforce attribute nesting.
  51. force-attribute-nesting: 0
  52. # Don't enforce element nesting.
  53. force-element-nesting: 0
  54. # Don't enforce pseudo nesting.
  55. force-pseudo-nesting: 0
  56. # Prefer function name formatting with dashes.
  57. function-name-format:
  58. - 1
  59. -
  60. allow-leading-underscore: true
  61. convention: hyphenatedlowercase
  62. # Prefer short hexadecimal values for colors.
  63. # #FFF vs #FFFFFF
  64. hex-length:
  65. - 0
  66. - style: short
  67. # Don't enforce hex-notation.
  68. # #FFF vs #fff
  69. hex-notation:
  70. - 0
  71. - style: lowercase
  72. # Prefer two spaces for indentation.
  73. indentation:
  74. - 1
  75. - width: 2
  76. # Prefer leading zero for readability.
  77. leading-zero:
  78. - 1
  79. - include: true
  80. # Prefer mixin names with dashes.
  81. mixin-name-format:
  82. - 1
  83. -
  84. allow-leading-underscore: true
  85. convention: hyphenatedlowercase
  86. # Prefer a max-depth of 3 for nesting. 2 would really be best.
  87. nesting-depth:
  88. - 1
  89. - max-depth: 3
  90. # No preference for color keywords.
  91. no-color-keyword: 0
  92. # No preference for color literals.
  93. no-color-literals: 0
  94. # Allow css comments.
  95. no-css-comments: 0
  96. # Prefer debug not be used.
  97. no-debug: 1
  98. # Prefer no duplicate properties except display.
  99. no-duplicate-properties:
  100. - 1
  101. -
  102. exclude:
  103. - display
  104. - background
  105. # Enforce no empty rulesets.
  106. no-empty-rulesets: 2
  107. # Let's just go ahead and say 'no extends'.
  108. no-extends: 1
  109. # Prefer no ID selectors.
  110. no-ids: 1
  111. # Prefer no importants.
  112. no-important: 1
  113. # Enforce that all hex values must be valid.
  114. no-invalid-hex: 2
  115. # Prefer no duplicate selectors that can be merged.
  116. no-mergeable-selectors: 1
  117. # Enforce that all properties are spelled correctly.
  118. no-misspelled-properties:
  119. - 2
  120. -
  121. extra-properties: []
  122. # Prefer only allowing elements to be qualified with attributes.
  123. no-qualifying-elements:
  124. - 1
  125. -
  126. allow-element-with-attribute: true
  127. allow-element-with-class: false
  128. allow-element-with-id: false
  129. class-name-format:
  130. - 2
  131. - allow-leading-underscore: false
  132. convention: hyphenatedbem
  133. # No preference for trailing zeros.
  134. no-trailing-zero: 0
  135. # Prefer no url absolute url paths.
  136. no-url-protocols: 1
  137. # No preference for property sort order.
  138. property-sort-order: 0
  139. # Prefer single quotes.
  140. quotes:
  141. - 1
  142. - style: single
  143. # Prefer shorthand values be as concise as possible.
  144. #
  145. # margin: 1px 1px 1px 1px;
  146. #
  147. # // Will be enforced to 1 value
  148. # margin: 1px;
  149. shorthand-values: 1
  150. # Prefer single line per selector.
  151. single-line-per-selector: 1
  152. # Prefer no space after bang(!).
  153. space-after-bang:
  154. - 1
  155. - include: false
  156. # Prefer space after colon.
  157. space-after-colon:
  158. - 1
  159. - include: true
  160. # Prefer space after comma.
  161. space-after-comma:
  162. - 1
  163. - include: true
  164. # Prefer space before bang(!).
  165. space-before-bang:
  166. - 1
  167. - include: true
  168. # Prefer space before a brace.
  169. space-before-brace:
  170. - 1
  171. - include: true
  172. # Prefer NO space before colon.
  173. space-before-colon: 1
  174. # Prefer NO space between parenthesis(()).
  175. space-between-parens:
  176. - 1
  177. - include: false
  178. # Enforce ending each declaration with a semicolon(;).
  179. trailing-semicolon: 2
  180. # Prefer that url() uses quotes.
  181. #
  182. # .foo {
  183. # background-image: url('foo.png');
  184. # }
  185. url-quotes: 1
  186. # No preference for forcing certain properties to use variables.
  187. variable-for-property:
  188. - 0
  189. - properties: []
  190. # Prefer hyphenated lowercase for variable names.
  191. variable-name-format:
  192. - 1
  193. -
  194. allow-leading-underscore: true
  195. convention: hyphenatedlowercase
  196. # Prefer zero values to be unitless.
  197. # 0 vs 0px
  198. zero-unit: 1