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.

264 lines
7.2 KiB

  1. # Linter Documentation:
  2. # https://github.com/sasstools/sass-lint/tree/v1.13.1/docs/options
  3. files:
  4. include: app/javascript/styles/**/*.scss
  5. ignore:
  6. - app/javascript/styles/reset.scss
  7. linters:
  8. # Reports when you use improper spacing around ! (the "bang") in !default,
  9. # !global, !important, and !optional flags.
  10. BangFormat:
  11. enabled: false
  12. # Whether or not to prefer `border: 0` over `border: none`.
  13. BorderZero:
  14. enabled: false
  15. # Reports when you define a rule set using a selector with chained classes
  16. # (a.k.a. adjoining classes).
  17. ChainedClasses:
  18. enabled: false
  19. # Prefer hexadecimal color codes over color keywords.
  20. # (e.g. `color: green` is a color keyword)
  21. ColorKeyword:
  22. enabled: false
  23. # Prefer color literals (keywords or hexadecimal codes) to be used only in
  24. # variable declarations. They should be referred to via variables everywhere
  25. # else.
  26. ColorVariable:
  27. enabled: true
  28. # Which form of comments to prefer in CSS.
  29. Comment:
  30. enabled: false
  31. # Reports @debug statements (which you probably left behind accidentally).
  32. DebugStatement:
  33. enabled: false
  34. # Rule sets should be ordered as follows:
  35. # - @extend declarations
  36. # - @include declarations without inner @content
  37. # - properties, @include declarations with inner @content
  38. # - nested rule sets.
  39. DeclarationOrder:
  40. enabled: false
  41. # `scss-lint:disable` control comments should be preceded by a comment
  42. # explaining why these linters are being disabled for this file.
  43. # See https://github.com/brigade/scss-lint#disabling-linters-via-source for
  44. # more information.
  45. DisableLinterReason:
  46. enabled: true
  47. # Reports when you define the same property twice in a single rule set.
  48. DuplicateProperty:
  49. enabled: false
  50. # Separate rule, function, and mixin declarations with empty lines.
  51. EmptyLineBetweenBlocks:
  52. enabled: true
  53. # Reports when you have an empty rule set.
  54. EmptyRule:
  55. enabled: true
  56. # Reports when you have an @extend directive.
  57. ExtendDirective:
  58. enabled: false
  59. # Files should always have a final newline. This results in better diffs
  60. # when adding lines to the file, since SCM systems such as git won't
  61. # think that you touched the last line.
  62. FinalNewline:
  63. enabled: false
  64. # HEX colors should use three-character values where possible.
  65. HexLength:
  66. enabled: false
  67. # HEX color values should use lower-case colors to differentiate between
  68. # letters and numbers, e.g. `#E3E3E3` vs. `#e3e3e3`.
  69. HexNotation:
  70. enabled: true
  71. # Avoid using ID selectors.
  72. IdSelector:
  73. enabled: false
  74. # The basenames of @imported SCSS partials should not begin with an
  75. # underscore and should not include the filename extension.
  76. ImportPath:
  77. enabled: false
  78. # Avoid using !important in properties. It is usually indicative of a
  79. # misunderstanding of CSS specificity and can lead to brittle code.
  80. ImportantRule:
  81. enabled: false
  82. # Indentation should always be done in increments of 2 spaces.
  83. Indentation:
  84. enabled: true
  85. width: 2
  86. # Don't write leading zeros for numeric values with a decimal point.
  87. LeadingZero:
  88. enabled: false
  89. # Reports when you define the same selector twice in a single sheet.
  90. MergeableSelector:
  91. enabled: false
  92. # Functions, mixins, variables, and placeholders should be declared
  93. # with all lowercase letters and hyphens instead of underscores.
  94. NameFormat:
  95. enabled: false
  96. # Avoid nesting selectors too deeply.
  97. NestingDepth:
  98. enabled: false
  99. # Always use placeholder selectors in @extend.
  100. PlaceholderInExtend:
  101. enabled: false
  102. # Sort properties in a strict order.
  103. PropertySortOrder:
  104. enabled: false
  105. # Reports when you use an unknown or disabled CSS property
  106. # (ignoring vendor-prefixed properties).
  107. PropertySpelling:
  108. enabled: false
  109. # Configure which units are allowed for property values.
  110. PropertyUnits:
  111. enabled: false
  112. # Pseudo-elements, like ::before, and ::first-letter, should be declared
  113. # with two colons. Pseudo-classes, like :hover and :first-child, should
  114. # be declared with one colon.
  115. PseudoElement:
  116. enabled: true
  117. # Avoid qualifying elements in selectors (also known as "tag-qualifying").
  118. QualifyingElement:
  119. enabled: false
  120. # Don't write selectors with a depth of applicability greater than 3.
  121. SelectorDepth:
  122. enabled: false
  123. # Selectors should always use hyphenated-lowercase, rather than camelCase or
  124. # snake_case.
  125. SelectorFormat:
  126. enabled: false
  127. convention: hyphenated_lowercase
  128. # Prefer the shortest shorthand form possible for properties that support it.
  129. Shorthand:
  130. enabled: true
  131. # Each property should have its own line, except in the special case of
  132. # single line rulesets.
  133. SingleLinePerProperty:
  134. enabled: true
  135. allow_single_line_rule_sets: true
  136. # Split selectors onto separate lines after each comma, and have each
  137. # individual selector occupy a single line.
  138. SingleLinePerSelector:
  139. enabled: true
  140. # Commas in lists should be followed by a space.
  141. SpaceAfterComma:
  142. enabled: false
  143. # Properties should be formatted with a single space separating the colon
  144. # from the property's value.
  145. SpaceAfterPropertyColon:
  146. enabled: true
  147. # Properties should be formatted with no space between the name and the
  148. # colon.
  149. SpaceAfterPropertyName:
  150. enabled: true
  151. # Variables should be formatted with a single space separating the colon
  152. # from the variable's value.
  153. SpaceAfterVariableColon:
  154. enabled: true
  155. # Variables should be formatted with no space between the name and the
  156. # colon.
  157. SpaceAfterVariableName:
  158. enabled: false
  159. # Operators should be formatted with a single space on both sides of an
  160. # infix operator.
  161. SpaceAroundOperator:
  162. enabled: true
  163. # Opening braces should be preceded by a single space.
  164. SpaceBeforeBrace:
  165. enabled: true
  166. # Parentheses should not be padded with spaces.
  167. SpaceBetweenParens:
  168. enabled: false
  169. # Enforces that string literals should be written with a consistent form
  170. # of quotes (single or double).
  171. StringQuotes:
  172. enabled: false
  173. # Property values, @extend, @include, and @import directives, and variable
  174. # declarations should always end with a semicolon.
  175. TrailingSemicolon:
  176. enabled: true
  177. # Reports lines containing trailing whitespace.
  178. TrailingWhitespace:
  179. enabled: true
  180. # Don't write trailing zeros for numeric values with a decimal point.
  181. TrailingZero:
  182. enabled: false
  183. # Don't use the `all` keyword to specify transition properties.
  184. TransitionAll:
  185. enabled: false
  186. # Numeric values should not contain unnecessary fractional portions.
  187. UnnecessaryMantissa:
  188. enabled: false
  189. # Do not use parent selector references (&) when they would otherwise
  190. # be unnecessary.
  191. UnnecessaryParentReference:
  192. enabled: false
  193. # URLs should be valid and not contain protocols or domain names.
  194. UrlFormat:
  195. enabled: true
  196. # URLs should always be enclosed within quotes.
  197. UrlQuotes:
  198. enabled: true
  199. # Properties, like color and font, are easier to read and maintain
  200. # when defined using variables rather than literals.
  201. VariableForProperty:
  202. enabled: false
  203. # Avoid vendor prefixes. Or rather: don't write them yourself.
  204. VendorPrefix:
  205. enabled: false
  206. # Omit length units on zero values, e.g. `0px` vs. `0`.
  207. ZeroUnit:
  208. enabled: true