index.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. 'use strict';
  2. const _importLazy = require('import-lazy');
  3. const importLazy = _importLazy(require);
  4. /** @type {typeof import('stylelint').rules} */
  5. const rules = {
  6. 'alpha-value-notation': importLazy('./alpha-value-notation'),
  7. 'at-rule-allowed-list': importLazy('./at-rule-allowed-list'),
  8. 'at-rule-disallowed-list': importLazy('./at-rule-disallowed-list'),
  9. 'at-rule-empty-line-before': importLazy('./at-rule-empty-line-before'),
  10. 'at-rule-name-case': importLazy('./at-rule-name-case'),
  11. 'at-rule-name-newline-after': importLazy('./at-rule-name-newline-after'),
  12. 'at-rule-semicolon-space-before': importLazy('./at-rule-semicolon-space-before'),
  13. 'at-rule-name-space-after': importLazy('./at-rule-name-space-after'),
  14. 'at-rule-no-unknown': importLazy('./at-rule-no-unknown'),
  15. 'at-rule-no-vendor-prefix': importLazy('./at-rule-no-vendor-prefix'),
  16. 'at-rule-property-required-list': importLazy('./at-rule-property-required-list'),
  17. 'at-rule-semicolon-newline-after': importLazy('./at-rule-semicolon-newline-after'),
  18. 'block-closing-brace-empty-line-before': importLazy('./block-closing-brace-empty-line-before'),
  19. 'block-closing-brace-newline-after': importLazy('./block-closing-brace-newline-after'),
  20. 'block-closing-brace-newline-before': importLazy('./block-closing-brace-newline-before'),
  21. 'block-closing-brace-space-after': importLazy('./block-closing-brace-space-after'),
  22. 'block-closing-brace-space-before': importLazy('./block-closing-brace-space-before'),
  23. 'block-no-empty': importLazy('./block-no-empty'),
  24. 'block-opening-brace-newline-after': importLazy('./block-opening-brace-newline-after'),
  25. 'block-opening-brace-newline-before': importLazy('./block-opening-brace-newline-before'),
  26. 'block-opening-brace-space-after': importLazy('./block-opening-brace-space-after'),
  27. 'block-opening-brace-space-before': importLazy('./block-opening-brace-space-before'),
  28. 'color-function-notation': importLazy('./color-function-notation'),
  29. 'color-hex-alpha': importLazy('./color-hex-alpha'),
  30. 'color-hex-case': importLazy('./color-hex-case'),
  31. 'color-hex-length': importLazy('./color-hex-length'),
  32. 'color-named': importLazy('./color-named'),
  33. 'color-no-hex': importLazy('./color-no-hex'),
  34. 'color-no-invalid-hex': importLazy('./color-no-invalid-hex'),
  35. 'comment-empty-line-before': importLazy('./comment-empty-line-before'),
  36. 'comment-no-empty': importLazy('./comment-no-empty'),
  37. 'comment-pattern': importLazy('./comment-pattern'),
  38. 'comment-whitespace-inside': importLazy('./comment-whitespace-inside'),
  39. 'comment-word-disallowed-list': importLazy('./comment-word-disallowed-list'),
  40. 'custom-media-pattern': importLazy('./custom-media-pattern'),
  41. 'custom-property-empty-line-before': importLazy('./custom-property-empty-line-before'),
  42. 'custom-property-no-missing-var-function': importLazy(
  43. './custom-property-no-missing-var-function',
  44. ),
  45. 'custom-property-pattern': importLazy('./custom-property-pattern'),
  46. 'declaration-bang-space-after': importLazy('./declaration-bang-space-after'),
  47. 'declaration-bang-space-before': importLazy('./declaration-bang-space-before'),
  48. 'declaration-block-no-duplicate-custom-properties': importLazy(
  49. './declaration-block-no-duplicate-custom-properties',
  50. ),
  51. 'declaration-block-no-duplicate-properties': importLazy(
  52. './declaration-block-no-duplicate-properties',
  53. ),
  54. 'declaration-block-no-redundant-longhand-properties': importLazy(
  55. './declaration-block-no-redundant-longhand-properties',
  56. ),
  57. 'declaration-block-no-shorthand-property-overrides': importLazy(
  58. './declaration-block-no-shorthand-property-overrides',
  59. ),
  60. 'declaration-block-semicolon-newline-after': importLazy(
  61. './declaration-block-semicolon-newline-after',
  62. ),
  63. 'declaration-block-semicolon-newline-before': importLazy(
  64. './declaration-block-semicolon-newline-before',
  65. ),
  66. 'declaration-block-semicolon-space-after': importLazy(
  67. './declaration-block-semicolon-space-after',
  68. ),
  69. 'declaration-block-semicolon-space-before': importLazy(
  70. './declaration-block-semicolon-space-before',
  71. ),
  72. 'declaration-block-single-line-max-declarations': importLazy(
  73. './declaration-block-single-line-max-declarations',
  74. ),
  75. 'declaration-block-trailing-semicolon': importLazy('./declaration-block-trailing-semicolon'),
  76. 'declaration-colon-newline-after': importLazy('./declaration-colon-newline-after'),
  77. 'declaration-colon-space-after': importLazy('./declaration-colon-space-after'),
  78. 'declaration-colon-space-before': importLazy('./declaration-colon-space-before'),
  79. 'declaration-empty-line-before': importLazy('./declaration-empty-line-before'),
  80. 'declaration-no-important': importLazy('./declaration-no-important'),
  81. 'declaration-property-max-values': importLazy('./declaration-property-max-values'),
  82. 'declaration-property-unit-allowed-list': importLazy('./declaration-property-unit-allowed-list'),
  83. 'declaration-property-unit-disallowed-list': importLazy(
  84. './declaration-property-unit-disallowed-list',
  85. ),
  86. 'declaration-property-value-allowed-list': importLazy(
  87. './declaration-property-value-allowed-list',
  88. ),
  89. 'declaration-property-value-disallowed-list': importLazy(
  90. './declaration-property-value-disallowed-list',
  91. ),
  92. 'font-family-no-missing-generic-family-keyword': importLazy(
  93. './font-family-no-missing-generic-family-keyword',
  94. ),
  95. 'font-family-name-quotes': importLazy('./font-family-name-quotes'),
  96. 'font-family-no-duplicate-names': importLazy('./font-family-no-duplicate-names'),
  97. 'font-weight-notation': importLazy('./font-weight-notation'),
  98. 'function-allowed-list': importLazy('./function-allowed-list'),
  99. 'function-calc-no-unspaced-operator': importLazy('./function-calc-no-unspaced-operator'),
  100. 'function-comma-newline-after': importLazy('./function-comma-newline-after'),
  101. 'function-comma-newline-before': importLazy('./function-comma-newline-before'),
  102. 'function-comma-space-after': importLazy('./function-comma-space-after'),
  103. 'function-comma-space-before': importLazy('./function-comma-space-before'),
  104. 'function-disallowed-list': importLazy('./function-disallowed-list'),
  105. 'function-linear-gradient-no-nonstandard-direction': importLazy(
  106. './function-linear-gradient-no-nonstandard-direction',
  107. ),
  108. 'function-max-empty-lines': importLazy('./function-max-empty-lines'),
  109. 'function-name-case': importLazy('./function-name-case'),
  110. 'function-no-unknown': importLazy('./function-no-unknown'),
  111. 'function-parentheses-newline-inside': importLazy('./function-parentheses-newline-inside'),
  112. 'function-parentheses-space-inside': importLazy('./function-parentheses-space-inside'),
  113. 'function-url-no-scheme-relative': importLazy('./function-url-no-scheme-relative'),
  114. 'function-url-quotes': importLazy('./function-url-quotes'),
  115. 'function-url-scheme-allowed-list': importLazy('./function-url-scheme-allowed-list'),
  116. 'function-url-scheme-disallowed-list': importLazy('./function-url-scheme-disallowed-list'),
  117. 'function-whitespace-after': importLazy('./function-whitespace-after'),
  118. 'hue-degree-notation': importLazy('./hue-degree-notation'),
  119. 'keyframe-declaration-no-important': importLazy('./keyframe-declaration-no-important'),
  120. 'keyframes-name-pattern': importLazy('./keyframes-name-pattern'),
  121. 'length-zero-no-unit': importLazy('./length-zero-no-unit'),
  122. linebreaks: importLazy('./linebreaks'),
  123. 'max-empty-lines': importLazy('./max-empty-lines'),
  124. 'max-line-length': importLazy('./max-line-length'),
  125. 'max-nesting-depth': importLazy('./max-nesting-depth'),
  126. 'media-feature-colon-space-after': importLazy('./media-feature-colon-space-after'),
  127. 'media-feature-colon-space-before': importLazy('./media-feature-colon-space-before'),
  128. 'media-feature-name-allowed-list': importLazy('./media-feature-name-allowed-list'),
  129. 'media-feature-name-case': importLazy('./media-feature-name-case'),
  130. 'media-feature-name-disallowed-list': importLazy('./media-feature-name-disallowed-list'),
  131. 'media-feature-name-no-unknown': importLazy('./media-feature-name-no-unknown'),
  132. 'media-feature-name-no-vendor-prefix': importLazy('./media-feature-name-no-vendor-prefix'),
  133. 'media-feature-name-value-allowed-list': importLazy('./media-feature-name-value-allowed-list'),
  134. 'media-feature-parentheses-space-inside': importLazy('./media-feature-parentheses-space-inside'),
  135. 'media-feature-range-operator-space-after': importLazy(
  136. './media-feature-range-operator-space-after',
  137. ),
  138. 'media-feature-range-operator-space-before': importLazy(
  139. './media-feature-range-operator-space-before',
  140. ),
  141. 'media-query-list-comma-newline-after': importLazy('./media-query-list-comma-newline-after'),
  142. 'media-query-list-comma-newline-before': importLazy('./media-query-list-comma-newline-before'),
  143. 'media-query-list-comma-space-after': importLazy('./media-query-list-comma-space-after'),
  144. 'media-query-list-comma-space-before': importLazy('./media-query-list-comma-space-before'),
  145. 'named-grid-areas-no-invalid': importLazy('./named-grid-areas-no-invalid'),
  146. 'no-descending-specificity': importLazy('./no-descending-specificity'),
  147. 'no-duplicate-at-import-rules': importLazy('./no-duplicate-at-import-rules'),
  148. 'no-duplicate-selectors': importLazy('./no-duplicate-selectors'),
  149. 'no-empty-source': importLazy('./no-empty-source'),
  150. 'no-empty-first-line': importLazy('./no-empty-first-line'),
  151. 'no-eol-whitespace': importLazy('./no-eol-whitespace'),
  152. 'no-extra-semicolons': importLazy('./no-extra-semicolons'),
  153. 'no-invalid-double-slash-comments': importLazy('./no-invalid-double-slash-comments'),
  154. 'no-invalid-position-at-import-rule': importLazy('./no-invalid-position-at-import-rule'),
  155. 'no-irregular-whitespace': importLazy('./no-irregular-whitespace'),
  156. 'no-missing-end-of-source-newline': importLazy('./no-missing-end-of-source-newline'),
  157. 'no-unknown-animations': importLazy('./no-unknown-animations'),
  158. 'number-leading-zero': importLazy('./number-leading-zero'),
  159. 'number-max-precision': importLazy('./number-max-precision'),
  160. 'number-no-trailing-zeros': importLazy('./number-no-trailing-zeros'),
  161. 'property-allowed-list': importLazy('./property-allowed-list'),
  162. 'property-case': importLazy('./property-case'),
  163. 'property-disallowed-list': importLazy('./property-disallowed-list'),
  164. 'property-no-unknown': importLazy('./property-no-unknown'),
  165. 'property-no-vendor-prefix': importLazy('./property-no-vendor-prefix'),
  166. 'rule-empty-line-before': importLazy('./rule-empty-line-before'),
  167. 'rule-selector-property-disallowed-list': importLazy('./rule-selector-property-disallowed-list'),
  168. 'selector-attribute-brackets-space-inside': importLazy(
  169. './selector-attribute-brackets-space-inside',
  170. ),
  171. 'selector-attribute-name-disallowed-list': importLazy(
  172. './selector-attribute-name-disallowed-list',
  173. ),
  174. 'selector-attribute-operator-allowed-list': importLazy(
  175. './selector-attribute-operator-allowed-list',
  176. ),
  177. 'selector-attribute-operator-disallowed-list': importLazy(
  178. './selector-attribute-operator-disallowed-list',
  179. ),
  180. 'selector-attribute-operator-space-after': importLazy(
  181. './selector-attribute-operator-space-after',
  182. ),
  183. 'selector-attribute-operator-space-before': importLazy(
  184. './selector-attribute-operator-space-before',
  185. ),
  186. 'selector-attribute-quotes': importLazy('./selector-attribute-quotes'),
  187. 'selector-class-pattern': importLazy('./selector-class-pattern'),
  188. 'selector-combinator-allowed-list': importLazy('./selector-combinator-allowed-list'),
  189. 'selector-combinator-disallowed-list': importLazy('./selector-combinator-disallowed-list'),
  190. 'selector-combinator-space-after': importLazy('./selector-combinator-space-after'),
  191. 'selector-combinator-space-before': importLazy('./selector-combinator-space-before'),
  192. 'selector-descendant-combinator-no-non-space': importLazy(
  193. './selector-descendant-combinator-no-non-space',
  194. ),
  195. 'selector-disallowed-list': importLazy('./selector-disallowed-list'),
  196. 'selector-id-pattern': importLazy('./selector-id-pattern'),
  197. 'selector-list-comma-newline-after': importLazy('./selector-list-comma-newline-after'),
  198. 'selector-list-comma-newline-before': importLazy('./selector-list-comma-newline-before'),
  199. 'selector-list-comma-space-after': importLazy('./selector-list-comma-space-after'),
  200. 'selector-list-comma-space-before': importLazy('./selector-list-comma-space-before'),
  201. 'selector-max-attribute': importLazy('./selector-max-attribute'),
  202. 'selector-max-class': importLazy('./selector-max-class'),
  203. 'selector-max-combinators': importLazy('./selector-max-combinators'),
  204. 'selector-max-compound-selectors': importLazy('./selector-max-compound-selectors'),
  205. 'selector-max-empty-lines': importLazy('./selector-max-empty-lines'),
  206. 'selector-max-id': importLazy('./selector-max-id'),
  207. 'selector-max-pseudo-class': importLazy('./selector-max-pseudo-class'),
  208. 'selector-max-specificity': importLazy('./selector-max-specificity'),
  209. 'selector-max-type': importLazy('./selector-max-type'),
  210. 'selector-max-universal': importLazy('./selector-max-universal'),
  211. 'selector-nested-pattern': importLazy('./selector-nested-pattern'),
  212. 'selector-no-qualifying-type': importLazy('./selector-no-qualifying-type'),
  213. 'selector-no-vendor-prefix': importLazy('./selector-no-vendor-prefix'),
  214. 'selector-pseudo-class-allowed-list': importLazy('./selector-pseudo-class-allowed-list'),
  215. 'selector-pseudo-class-case': importLazy('./selector-pseudo-class-case'),
  216. 'selector-pseudo-class-disallowed-list': importLazy('./selector-pseudo-class-disallowed-list'),
  217. 'selector-pseudo-class-no-unknown': importLazy('./selector-pseudo-class-no-unknown'),
  218. 'selector-pseudo-class-parentheses-space-inside': importLazy(
  219. './selector-pseudo-class-parentheses-space-inside',
  220. ),
  221. 'selector-pseudo-element-allowed-list': importLazy('./selector-pseudo-element-allowed-list'),
  222. 'selector-pseudo-element-case': importLazy('./selector-pseudo-element-case'),
  223. 'selector-pseudo-element-colon-notation': importLazy('./selector-pseudo-element-colon-notation'),
  224. 'selector-pseudo-element-disallowed-list': importLazy(
  225. './selector-pseudo-element-disallowed-list',
  226. ),
  227. 'selector-pseudo-element-no-unknown': importLazy('./selector-pseudo-element-no-unknown'),
  228. 'selector-type-case': importLazy('./selector-type-case'),
  229. 'selector-type-no-unknown': importLazy('./selector-type-no-unknown'),
  230. 'shorthand-property-no-redundant-values': importLazy('./shorthand-property-no-redundant-values'),
  231. 'string-no-newline': importLazy('./string-no-newline'),
  232. 'string-quotes': importLazy('./string-quotes'),
  233. 'time-min-milliseconds': importLazy('./time-min-milliseconds'),
  234. 'unicode-bom': importLazy('./unicode-bom'),
  235. 'unit-allowed-list': importLazy('./unit-allowed-list'),
  236. 'unit-case': importLazy('./unit-case'),
  237. 'unit-disallowed-list': importLazy('./unit-disallowed-list'),
  238. 'unit-no-unknown': importLazy('./unit-no-unknown'),
  239. 'value-keyword-case': importLazy('./value-keyword-case'),
  240. 'value-list-comma-newline-after': importLazy('./value-list-comma-newline-after'),
  241. 'value-list-comma-newline-before': importLazy('./value-list-comma-newline-before'),
  242. 'value-list-comma-space-after': importLazy('./value-list-comma-space-after'),
  243. 'value-list-comma-space-before': importLazy('./value-list-comma-space-before'),
  244. 'value-list-max-empty-lines': importLazy('./value-list-max-empty-lines'),
  245. 'value-no-vendor-prefix': importLazy('./value-no-vendor-prefix'),
  246. indentation: importLazy('./indentation'),
  247. };
  248. module.exports = rules;