Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. module.exports = {
  2. defaultSeverity: 'warning',
  3. rules: {
  4. // Color
  5. 'color-hex-case': 'lower',
  6. 'color-hex-length': null,
  7. 'color-named': null,
  8. 'color-no-hex': null,
  9. 'color-no-invalid-hex': true,
  10. // Font
  11. 'font-family-name-quotes': 'always-unless-keyword',
  12. 'font-family-no-duplicate-names': true,
  13. 'font-weight-notation': 'numeric',
  14. // Function
  15. 'function-blacklist': null,
  16. 'function-calc-no-unspaced-operator': true,
  17. 'function-comma-newline-after': 'never-multi-line',
  18. 'function-comma-newline-before': null,
  19. 'function-comma-space-after': 'always',
  20. 'function-comma-space-before': 'never',
  21. 'function-linear-gradient-no-nonstandard-direction': true,
  22. 'function-max-empty-lines': 0,
  23. 'function-name-case': 'lower',
  24. 'function-parentheses-newline-inside': null,
  25. 'function-parentheses-space-inside': 'never',
  26. 'function-url-data-uris': null,
  27. 'function-url-no-scheme-relative': null,
  28. 'function-url-quotes': 'always',
  29. 'function-url-scheme-whitelist': null,
  30. 'function-whitelist': null,
  31. 'function-whitespace-after': 'always',
  32. // Number
  33. 'number-leading-zero': null,
  34. 'number-max-precision': null,
  35. 'number-no-trailing-zeros': true,
  36. // String
  37. 'string-no-newline': true,
  38. 'string-quotes': 'single',
  39. // Length
  40. 'length-zero-no-unit': true,
  41. // Time
  42. 'time-min-milliseconds': null,
  43. // Unit
  44. 'unit-blacklist': null,
  45. 'unit-case': 'lower',
  46. 'unit-no-unknown': true,
  47. 'unit-whitelist': null,
  48. // Value
  49. 'value-keyword-case': 'lower',
  50. 'value-no-vendor-prefix': true,
  51. // Value list
  52. 'value-list-comma-newline-after': null,
  53. 'value-list-comma-newline-after': null,
  54. 'value-list-comma-space-after': 'always-single-line',
  55. 'value-list-comma-space-before': 'never',
  56. 'value-list-max-empty-lines': 0,
  57. // Custom property
  58. 'custom-property-empty-line-before': null,
  59. 'custom-property-pattern': null,
  60. // Shorthand property
  61. 'shorthand-property-no-redundant-values': null,
  62. // Property
  63. 'property-blacklist': null,
  64. 'property-case': 'lower',
  65. 'property-no-unknown': true,
  66. 'property-no-vendor-prefix': null,
  67. 'property-whitelist': null,
  68. // Keyframe declaration
  69. 'keyframe-declaration-no-important': true,
  70. // Declration
  71. 'declaration-bang-space-after': 'never',
  72. 'declaration-bang-space-before': 'always',
  73. 'declaration-colon-newline-after': null,
  74. 'declaration-colon-space-after': 'always-single-line',
  75. 'declaration-colon-space-before': 'never',
  76. 'declaration-empty-line-before': null,
  77. 'declaration-no-important': true,
  78. 'declaration-property-unit-blacklist': null,
  79. 'declaration-property-unit-whitelist': null,
  80. 'declaration-property-value-blacklist': null,
  81. 'declaration-property-value-whitelist': null,
  82. // Declaration block
  83. 'declaration-block-no-duplicate-properties': true,
  84. 'declaration-block-no-redundant-longhand-properties': null,
  85. 'declaration-block-no-shorthand-property-overrides': true,
  86. 'declaration-block-semicolon-newline-after': 'always',
  87. 'declaration-block-semicolon-newline-before': null,
  88. 'declaration-block-semicolon-space-after': null,
  89. 'declaration-block-semicolon-space-before': null,
  90. 'declaration-block-single-line-max-declarations': null,
  91. 'declaration-block-trailing-semicolon': 'always',
  92. // Block
  93. 'block-closing-brace-empty-line-before': 'never',
  94. 'block-closing-brace-newline-after': 'always',
  95. 'block-closing-brace-newline-before': 'always',
  96. 'block-closing-brace-space-after': null,
  97. 'block-closing-brace-space-before': null,
  98. 'block-no-empty': null,
  99. 'block-opening-brace-newline-after': 'always',
  100. 'block-opening-brace-newline-before': null,
  101. 'block-opening-brace-space-after': null,
  102. 'block-opening-brace-space-before': null,
  103. // Selector
  104. 'selector-attribute-brackets-space-inside': 'never',
  105. 'selector-attribute-operator-blacklist': null,
  106. 'selector-attribute-operator-space-after': 'never',
  107. 'selector-attribute-operator-space-before': 'never',
  108. 'selector-attribute-operator-whitelist': null,
  109. 'selector-attribute-quotes': 'always',
  110. 'selector-class-pattern': '^([a-z0-9]+(-[a-z0-9]+)*)(--[a-z0-9]+(-[a-z0-9]+)*)?(__([a-z0-9]+(-[a-z0-9]+)*)(--[a-z0-9]+(-[a-z0-9]+)*)?)*$', // MindBEMding style
  111. 'selector-combinator-space-after': 'always',
  112. 'selector-combinator-space-before': 'always',
  113. 'selector-descendant-combinator-no-non-space': true,
  114. 'selector-id-pattern': null,
  115. 'selector-max-compound-selectors': 3,
  116. 'selector-max-specificity': '0,3,1',
  117. 'selector-nested-pattern': null,
  118. 'selector-no-attribute': null,
  119. 'selector-no-combinator': null,
  120. 'selector-no-id': true,
  121. 'selector-no-qualifying-type': true,
  122. 'selector-no-type': null,
  123. 'selector-no-universal': true,
  124. 'selector-no-vendor-prefix': true,
  125. 'selector-pseudo-class-blacklist': null,
  126. 'selector-pseudo-class-case': 'lower',
  127. 'selector-pseudo-class-no-unknown': true,
  128. 'selector-pseudo-class-parentheses-space-inside': 'never',
  129. 'selector-pseudo-class-whitelist': null,
  130. 'selector-pseudo-element-case': 'lower',
  131. 'selector-pseudo-element-colon-notation': 'single',
  132. 'selector-pseudo-element-no-unknown': true,
  133. 'selector-type-case': 'lower',
  134. 'selector-type-no-unknown': true,
  135. 'selector-max-empty-lines': 0,
  136. // Rule
  137. 'rule-empty-line-before': ['always', {except: ['after-single-line-comment', 'first-nested']}],
  138. // Media feature
  139. 'media-feature-colon-space-after': 'always',
  140. 'media-feature-colon-space-before': 'never',
  141. 'media-feature-name-blacklist': null,
  142. 'media-feature-name-case': 'lower',
  143. 'media-feature-name-no-unknown': true,
  144. 'media-feature-name-no-vendor-prefix': null,
  145. 'media-feature-name-whitelist': null,
  146. 'media-feature-parentheses-space-inside': 'never',
  147. 'media-feature-range-operator-space-after': 'always',
  148. 'media-feature-range-operator-space-before': 'always',
  149. // Custom media
  150. 'custom-media-pattern': null,
  151. // Media query list
  152. 'media-query-list-comma-newline-after': null,
  153. 'media-query-list-comma-newline-before': null,
  154. 'media-query-list-comma-space-after': 'always',
  155. 'media-query-list-comma-space-before': 'never',
  156. // At-rule
  157. 'at-rule-blacklist': null,
  158. 'at-rule-empty-line-before': null,
  159. 'at-rule-name-case': 'lower',
  160. 'at-rule-name-newline-after': null,
  161. 'at-rule-name-space-after': 'always',
  162. 'at-rule-no-unknown': true,
  163. 'at-rule-no-vendor-prefix': null,
  164. 'at-rule-semicolon-newline-after': 'always',
  165. 'at-rule-whitelist': null,
  166. // Comment
  167. 'comment-empty-line-before': null,
  168. 'comment-no-empty': true,
  169. 'comment-whitespace-inside': null,
  170. 'comment-word-blacklist': null,
  171. // General / Sheet
  172. 'indentation': 2,
  173. 'max-empty-lines': 1,
  174. 'max-line-length': null,
  175. 'max-nesting-depth': null,
  176. 'no-descending-specificity': true,
  177. 'no-duplicate-selectors': true,
  178. 'no-empty-source': true,
  179. 'no-eol-whitespace': true,
  180. 'no-extra-semicolons': true,
  181. 'no-invalid-double-slash-comments': true,
  182. 'no-missing-end-of-source-newline': null,
  183. 'no-unknown-animations': true
  184. }
  185. };