linter-bundle 5.1.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/.linter-bundle.js +2 -0
  2. package/CHANGELOG.md +83 -9
  3. package/README.md +5 -3
  4. package/TODO.md +5 -0
  5. package/eslint/index.cjs +10 -4
  6. package/eslint/overrides-javascript.cjs +7 -1
  7. package/eslint/overrides-jest.cjs +1 -0
  8. package/eslint/overrides-jsdoc.cjs +1 -0
  9. package/eslint/rules/no-global-undefined-check.js +5 -3
  10. package/eslint/rules/no-unnecessary-typeof.js +26 -24
  11. package/eslint/rules/restricted-filenames.js +3 -1
  12. package/helper/ensure-type.cjs +2 -2
  13. package/helper/get-git-files.js +1 -1
  14. package/helper/get-outdated-dependencies.js +1 -1
  15. package/helper/get-outdated-overrides.js +1 -1
  16. package/helper/get-stylelint-path.js +1 -1
  17. package/helper/is-npm-or-yarn.js +1 -1
  18. package/helper/linter-bundle-config.js +22 -7
  19. package/helper/run-process.js +3 -3
  20. package/lint.js +31 -35
  21. package/package.json +27 -26
  22. package/stylelint/index.cjs +90 -5
  23. package/stylelint/plugins/stylelint-15.11.0-stylistic/LICENSE +20 -0
  24. package/stylelint/plugins/stylelint-15.11.0-stylistic/html-tags/LICENSE +9 -0
  25. package/stylelint/plugins/stylelint-15.11.0-stylistic/html-tags/index.cjs +122 -0
  26. package/stylelint/plugins/stylelint-15.11.0-stylistic/reference/selectors.cjs +327 -0
  27. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-name-case/README.md +110 -0
  28. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-name-case/index.cjs +66 -0
  29. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-name-space-after/README.md +117 -0
  30. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-name-space-after/index.cjs +55 -0
  31. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-semicolon-newline-after/README.md +63 -0
  32. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-semicolon-newline-after/index.cjs +87 -0
  33. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-semicolon-space-before/README.md +50 -0
  34. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/at-rule-semicolon-space-before/index.cjs +70 -0
  35. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/atRuleNameSpaceChecker.cjs +56 -0
  36. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-empty-line-before/README.md +238 -0
  37. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-empty-line-before/index.cjs +130 -0
  38. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-newline-after/README.md +196 -0
  39. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-newline-after/index.cjs +154 -0
  40. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-newline-before/README.md +93 -0
  41. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-newline-before/index.cjs +133 -0
  42. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-space-before/README.md +174 -0
  43. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-space-before/index.cjs +111 -0
  44. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-newline-after/README.md +138 -0
  45. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-newline-after/index.cjs +184 -0
  46. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-space-after/README.md +191 -0
  47. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-space-after/index.cjs +118 -0
  48. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-space-before/README.md +218 -0
  49. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-space-before/index.cjs +141 -0
  50. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/color-hex-case/README.md +58 -0
  51. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/color-hex-case/index.cjs +95 -0
  52. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-bang-space-after/README.md +72 -0
  53. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-bang-space-after/index.cjs +95 -0
  54. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-bang-space-before/README.md +67 -0
  55. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-bang-space-before/index.cjs +96 -0
  56. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-newline-after/README.md +141 -0
  57. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-newline-after/index.cjs +109 -0
  58. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-newline-before/README.md +120 -0
  59. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-newline-before/index.cjs +75 -0
  60. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-space-after/README.md +147 -0
  61. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-space-after/index.cjs +97 -0
  62. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-space-before/README.md +130 -0
  63. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-space-before/index.cjs +106 -0
  64. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-trailing-semicolon/README.md +108 -0
  65. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-block-trailing-semicolon/index.cjs +147 -0
  66. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-newline-after/README.md +78 -0
  67. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-newline-after/index.cjs +99 -0
  68. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-space-after/README.md +111 -0
  69. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-space-after/index.cjs +75 -0
  70. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-space-before/README.md +72 -0
  71. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-space-before/index.cjs +74 -0
  72. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declarationBangSpaceChecker.cjs +63 -0
  73. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/declarationColonSpaceChecker.cjs +58 -0
  74. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/findMediaOperator.cjs +32 -0
  75. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-newline-after/README.md +113 -0
  76. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-newline-after/index.cjs +61 -0
  77. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-newline-before/README.md +129 -0
  78. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-newline-before/index.cjs +61 -0
  79. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-space-after/README.md +144 -0
  80. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-space-after/index.cjs +62 -0
  81. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-space-before/README.md +144 -0
  82. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-comma-space-before/index.cjs +62 -0
  83. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-max-empty-lines/README.md +78 -0
  84. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-max-empty-lines/index.cjs +115 -0
  85. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-parentheses-newline-inside/README.md +144 -0
  86. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-parentheses-newline-inside/index.cjs +282 -0
  87. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-parentheses-space-inside/README.md +140 -0
  88. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-parentheses-space-inside/index.cjs +182 -0
  89. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-whitespace-after/README.md +80 -0
  90. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/function-whitespace-after/index.cjs +198 -0
  91. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/functionCommaSpaceChecker.cjs +125 -0
  92. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/functionCommaSpaceFix.cjs +51 -0
  93. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/indentation/README.md +339 -0
  94. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/indentation/index.cjs +743 -0
  95. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/linebreaks/README.md +21 -0
  96. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/linebreaks/index.cjs +132 -0
  97. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/max-empty-lines/README.md +116 -0
  98. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/max-empty-lines/index.cjs +225 -0
  99. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/max-line-length/README.md +151 -0
  100. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/max-line-length/index.cjs +200 -0
  101. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-colon-space-after/README.md +72 -0
  102. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-colon-space-after/index.cjs +91 -0
  103. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-colon-space-before/README.md +72 -0
  104. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-colon-space-before/index.cjs +91 -0
  105. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-name-case/README.md +108 -0
  106. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-name-case/index.cjs +93 -0
  107. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-parentheses-space-inside/README.md +62 -0
  108. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-parentheses-space-inside/index.cjs +112 -0
  109. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-range-operator-space-after/README.md +72 -0
  110. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-range-operator-space-after/index.cjs +109 -0
  111. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-range-operator-space-before/README.md +72 -0
  112. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-feature-range-operator-space-before/index.cjs +109 -0
  113. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-newline-after/README.md +113 -0
  114. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-newline-after/index.cjs +97 -0
  115. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-newline-before/README.md +111 -0
  116. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-newline-before/index.cjs +49 -0
  117. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-space-after/README.md +136 -0
  118. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-space-after/index.cjs +93 -0
  119. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-space-before/README.md +136 -0
  120. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-space-before/index.cjs +93 -0
  121. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/mediaFeatureColonSpaceChecker.cjs +54 -0
  122. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/mediaQueryListCommaWhitespaceChecker.cjs +73 -0
  123. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-empty-first-line/README.md +34 -0
  124. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-empty-first-line/index.cjs +63 -0
  125. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-eol-whitespace/README.md +79 -0
  126. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-eol-whitespace/index.cjs +302 -0
  127. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-extra-semicolons/README.md +78 -0
  128. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-extra-semicolons/index.cjs +246 -0
  129. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-missing-end-of-source-newline/README.md +34 -0
  130. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/no-missing-end-of-source-newline/index.cjs +62 -0
  131. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/number-leading-zero/README.md +74 -0
  132. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/number-leading-zero/index.cjs +197 -0
  133. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/number-no-trailing-zeros/README.md +40 -0
  134. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/number-no-trailing-zeros/index.cjs +139 -0
  135. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/property-case/README.md +192 -0
  136. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/property-case/index.cjs +95 -0
  137. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-brackets-space-inside/README.md +112 -0
  138. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-brackets-space-inside/index.cjs +214 -0
  139. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-operator-space-after/README.md +162 -0
  140. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-operator-space-after/index.cjs +109 -0
  141. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-operator-space-before/README.md +162 -0
  142. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-operator-space-before/index.cjs +88 -0
  143. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-combinator-space-after/README.md +78 -0
  144. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-combinator-space-after/index.cjs +67 -0
  145. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-combinator-space-before/README.md +78 -0
  146. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-combinator-space-before/index.cjs +67 -0
  147. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-descendant-combinator-no-non-space/README.md +40 -0
  148. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-descendant-combinator-no-non-space/index.cjs +95 -0
  149. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-newline-after/README.md +120 -0
  150. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-newline-after/index.cjs +126 -0
  151. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-newline-before/README.md +112 -0
  152. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-newline-before/index.cjs +101 -0
  153. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-space-after/README.md +110 -0
  154. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-space-after/index.cjs +92 -0
  155. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-space-before/README.md +110 -0
  156. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-space-before/index.cjs +92 -0
  157. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-max-empty-lines/README.md +103 -0
  158. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-max-empty-lines/index.cjs +74 -0
  159. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-class-case/README.md +108 -0
  160. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-class-case/index.cjs +104 -0
  161. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-class-parentheses-space-inside/README.md +62 -0
  162. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-class-parentheses-space-inside/index.cjs +162 -0
  163. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-element-case/README.md +128 -0
  164. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-element-case/index.cjs +90 -0
  165. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selectorAttributeOperatorSpaceChecker.cjs +95 -0
  166. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selectorCombinatorSpaceChecker.cjs +113 -0
  167. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/selectorListCommaWhitespaceChecker.cjs +64 -0
  168. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/string-quotes/README.md +130 -0
  169. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/string-quotes/index.cjs +256 -0
  170. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/unicode-bom/README.md +41 -0
  171. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/unicode-bom/index.cjs +67 -0
  172. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/unit-case/README.md +126 -0
  173. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/unit-case/index.cjs +133 -0
  174. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-newline-after/README.md +102 -0
  175. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-newline-after/index.cjs +107 -0
  176. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-newline-before/README.md +100 -0
  177. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-newline-before/index.cjs +49 -0
  178. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-space-after/README.md +136 -0
  179. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-space-after/index.cjs +94 -0
  180. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-space-before/README.md +136 -0
  181. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-space-before/index.cjs +94 -0
  182. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-max-empty-lines/README.md +121 -0
  183. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/value-list-max-empty-lines/index.cjs +68 -0
  184. package/stylelint/plugins/stylelint-15.11.0-stylistic/rules/valueListCommaWhitespaceChecker.cjs +74 -0
  185. package/stylelint/plugins/stylelint-15.11.0-stylistic/style-search/LICENSE +13 -0
  186. package/stylelint/plugins/stylelint-15.11.0-stylistic/style-search/index.cjs +216 -0
  187. package/stylelint/plugins/stylelint-15.11.0-stylistic/utils/addEmptyLineAfter.cjs +30 -0
  188. package/stylelint/plugins/stylelint-15.11.0-stylistic/utils/hasEmptyBlock.cjs +14 -0
  189. package/stylelint/plugins/stylelint-15.11.0-stylistic/utils/nextNonCommentNode.cjs +21 -0
  190. package/stylelint/plugins/stylelint-15.11.0-stylistic/utils/removeEmptyLinesAfter.cjs +16 -0
  191. package/stylelint/plugins/stylelint-15.11.0-stylistic/utils/whitespaceChecker.cjs +361 -0
  192. package/stylelint/plugins/stylelint-selector-no-empty.js +8 -8
  193. package/stylelint/plugins/stylelint-selector-tag-no-without-class.js +4 -4
  194. package/stylelint/plugins/stylelint-high-performance-animation.js +0 -276
  195. package/stylelint/plugins/stylelint-stylistic.js +0 -188
package/lint.js CHANGED
@@ -119,9 +119,9 @@ await (async () => {
119
119
  /**
120
120
  * Runs the `files` task.
121
121
  *
122
- * @param {TaskNameAndConfig['taskName']} taskName - Name of the task
122
+ * @param {TaskNameAndConfig['taskName']} taskName - Name of the task as used in the command line
123
123
  * @param {TaskNameAndConfig['taskConfig']} taskConfig - Configuration of the task
124
- * @returns {Promise<Job>} Job
124
+ * @returns {Promise<Job>} Shell job
125
125
  */
126
126
  async function runFilesTask (taskName, taskConfig) {
127
127
  const newTaskConfig = {
@@ -147,14 +147,13 @@ async function runFilesTask (taskName, taskConfig) {
147
147
  /**
148
148
  * Runs the `tsc` task.
149
149
  *
150
- * @param {TaskNames} taskName - Name of the task
150
+ * @param {TaskNames} taskName - Name of the task as used in the command line
151
151
  * @param {TaskNameAndConfig['taskConfig']} taskConfig - Configuration of the task
152
- * @returns {Promise<Job>} Job
152
+ * @returns {Promise<Job>} Shell job
153
153
  */
154
154
  async function runTypeScriptCompilerTask (taskName, taskConfig) {
155
155
  const newTaskConfig = {
156
- tsconfig: getConfigValue(taskName, taskConfig, 'tsconfig'),
157
- verbose: getConfigValue(taskName, taskConfig, 'verbose')
156
+ tsconfig: getConfigValue(taskName, taskConfig, 'tsconfig')
158
157
  };
159
158
 
160
159
  return runTask({
@@ -165,8 +164,7 @@ async function runTypeScriptCompilerTask (taskName, taskConfig) {
165
164
  `"${require.resolve('typescript/bin/tsc')}"`,
166
165
  '--skipLibCheck',
167
166
  '--noEmit',
168
- (newTaskConfig.tsconfig?.[0] ? `--project ${newTaskConfig.tsconfig[0]}` : undefined),
169
- (newTaskConfig.verbose?.[0] ? '--verbose' : undefined)
167
+ (newTaskConfig.tsconfig?.[0] ? `--project ${newTaskConfig.tsconfig[0]}` : undefined)
170
168
  ].filter((argument) => Boolean(argument)).join(' ')
171
169
  });
172
170
  }
@@ -174,9 +172,9 @@ async function runTypeScriptCompilerTask (taskName, taskConfig) {
174
172
  /**
175
173
  * Runs the `ts` task.
176
174
  *
177
- * @param {TaskNameAndConfig['taskName']} taskName - Name of the task
175
+ * @param {TaskNameAndConfig['taskName']} taskName - Name of the task as used in the command line
178
176
  * @param {TaskNameAndConfig['taskConfig']} taskConfig - Configuration of the task
179
- * @returns {Promise<Job>} Job
177
+ * @returns {Promise<Job>} Shell job
180
178
  */
181
179
  async function runESLintTask (taskName, taskConfig) {
182
180
  const newTaskConfig = {
@@ -208,7 +206,7 @@ async function runESLintTask (taskName, taskConfig) {
208
206
  taskConfig: newTaskConfig,
209
207
  options: {
210
208
  env: {
211
- TIMING: '10',
209
+ TIMING: '10', // Show timing information about the 10 slowest rules
212
210
  TSCONFIG: (typeof newTaskConfig.tsconfig?.[0] === 'string' ? newTaskConfig.tsconfig[0] : undefined)
213
211
  }
214
212
  }
@@ -218,9 +216,9 @@ async function runESLintTask (taskName, taskConfig) {
218
216
  /**
219
217
  * Runs the `sass` task.
220
218
  *
221
- * @param {TaskNameAndConfig['taskName']} taskName - Name of the task
219
+ * @param {TaskNameAndConfig['taskName']} taskName - Name of the task as used in the command line
222
220
  * @param {TaskNameAndConfig['taskConfig']} taskConfig - Configuration of the task
223
- * @returns {Promise<Job>} Job
221
+ * @returns {Promise<Job>} Shell job
224
222
  */
225
223
  async function runStylelintTask (taskName, taskConfig) {
226
224
  const newTaskConfig = {
@@ -262,15 +260,14 @@ async function runStylelintTask (taskName, taskConfig) {
262
260
  /**
263
261
  * Runs the `md` task.
264
262
  *
265
- * @param {TaskNameAndConfig['taskName']} taskName - Name of the task
263
+ * @param {TaskNameAndConfig['taskName']} taskName - Name of the task as used in the command line
266
264
  * @param {TaskNameAndConfig['taskConfig']} taskConfig - Configuration of the task
267
- * @returns {Promise<Job>} Job
265
+ * @returns {Promise<Job>} Shell job
268
266
  */
269
267
  async function runMarkdownTask (taskName, taskConfig) {
270
268
  const newTaskConfig = {
271
269
  include: getConfigValue(taskName, taskConfig, 'include'),
272
- git: getConfigValue(taskName, taskConfig, 'git'),
273
- verbose: getConfigValue(taskName, taskConfig, 'verbose')
270
+ git: getConfigValue(taskName, taskConfig, 'git')
274
271
  };
275
272
 
276
273
  const includes = await getIncludes(newTaskConfig, '**/*.md');
@@ -288,7 +285,6 @@ async function runMarkdownTask (taskName, taskConfig) {
288
285
  'node',
289
286
  `"${require.resolve('markdownlint-cli/markdownlint.js')}"`,
290
287
  includes,
291
- (newTaskConfig.verbose?.[0] ? '--verbose' : undefined),
292
288
  '--ignore node_modules'
293
289
  ].filter((argument) => Boolean(argument)).join(' ')
294
290
  });
@@ -297,9 +293,9 @@ async function runMarkdownTask (taskName, taskConfig) {
297
293
  /**
298
294
  * Runs the `audit` task.
299
295
  *
300
- * @param {TaskNameAndConfig['taskName']} taskName - Name of the task
296
+ * @param {TaskNameAndConfig['taskName']} taskName - Name of the task as used in the command line
301
297
  * @param {TaskNameAndConfig['taskConfig']} taskConfig - Configuration of the task
302
- * @returns {Promise<Job>} Job
298
+ * @returns {Promise<Job>} Shell job
303
299
  */
304
300
  async function runAuditTask (taskName, taskConfig) {
305
301
  const newTaskConfig = {
@@ -316,7 +312,7 @@ async function runAuditTask (taskName, taskConfig) {
316
312
  'npx',
317
313
  '--yes',
318
314
  '--',
319
- 'better-npm-audit@1.9.1',
315
+ 'better-npm-audit@3.7.3',
320
316
  'audit',
321
317
  `-l ${newTaskConfig.minSeverity?.[0] ?? 'moderate'}`,
322
318
  '-p',
@@ -332,7 +328,7 @@ async function runAuditTask (taskName, taskConfig) {
332
328
  'npx',
333
329
  '--yes',
334
330
  '--',
335
- 'improved-yarn-audit@2.3.3',
331
+ 'improved-yarn-audit@3.0.0',
336
332
  `--min-severity ${newTaskConfig.minSeverity?.[0] ?? 'moderate'}`,
337
333
  '--fail-on-missing-exclusions',
338
334
  '--ignore-dev-deps',
@@ -357,7 +353,7 @@ async function runAuditTask (taskName, taskConfig) {
357
353
  /**
358
354
  * Ensures that the environment in which the linter is running has the correct versions of the required dependencies.
359
355
  *
360
- * @returns {Promise<boolean>} Returns `true` if the environment is valid, otherwise `false` is returned.
356
+ * @returns {Promise<boolean>} Returns `true` if the environment is valid, otherwise `false` is returned
361
357
  */
362
358
  async function validateEnvironment () {
363
359
  const outdatedOverrides = await getOutdatedOverrides();
@@ -410,8 +406,8 @@ async function validateEnvironment () {
410
406
  * Extracts the tasks which should be run from the command-line arguments passed in.
411
407
  *
412
408
  * @param {string[]} argv - Command-line arguments (usual `process.argv.splice(2)`)
413
- * @returns {TaskNameAndConfig[]} The task execution setup.
414
- * @throws {Error} If no task has be specified in the arguments.
409
+ * @returns {TaskNameAndConfig[]} The task execution setup
410
+ * @throws {Error} If no task has be specified in the arguments
415
411
  */
416
412
  function getTasksToRun (argv) {
417
413
  const TASKS = new Set(['tsc', 'ts', 'sass', 'md', 'audit', 'files']);
@@ -471,7 +467,7 @@ function getTasksToRun (argv) {
471
467
  *
472
468
  * @param {TaskConfig} taskConfig - Linter configuration
473
469
  * @param {string | undefined} [pattern] - Glob pattern
474
- * @returns {Promise<string>} Space-separated file names in double-quotes to be used in the command-line, or an empty string if no file matches.
470
+ * @returns {Promise<string>} Space-separated file names in double-quotes to be used in the command-line, or an empty string if no file matches
475
471
  */
476
472
  async function getIncludes (taskConfig, pattern) {
477
473
  const include = taskConfig['include'];
@@ -506,8 +502,8 @@ async function getIncludes (taskConfig, pattern) {
506
502
  /**
507
503
  * Executes a task asynchronously.
508
504
  *
509
- * @param {TaskSetup} setup - The task execution setup.
510
- * @returns {Job} Job
505
+ * @param {TaskSetup} setup - The task execution setup
506
+ * @returns {Job} Shell job
511
507
  */
512
508
  function runTask (setup) {
513
509
  return {
@@ -520,10 +516,10 @@ function runTask (setup) {
520
516
  /**
521
517
  * Returns a job configuration which does not run any task, but just returns the given `output`.
522
518
  *
523
- * @param {TaskNames} taskName - The name of the task.
524
- * @param {TaskConfig} taskConfig - The configuration of the task.
525
- * @param {{ code?: number; stdout?: string; stderr?: string; }} output - The output which should be returned as result of the job.
526
- * @returns {Job} Job
519
+ * @param {TaskNames} taskName - Name of the task as used in the command line
520
+ * @param {TaskConfig} taskConfig - The configuration of the task
521
+ * @param {{ code?: number; stdout?: string; stderr?: string; }} output - The output which should be returned as result of the job
522
+ * @returns {Job} Shell job
527
523
  */
528
524
  function generateDummyJobOutput (taskName, taskConfig, output) {
529
525
  return {
@@ -550,8 +546,8 @@ function generateDummyJobOutput (taskName, taskConfig, output) {
550
546
  /**
551
547
  * Returns the title (command line string) of a specific job.
552
548
  *
553
- * @param {TaskSetup} setup - The task execution setup.
554
- * @returns {string} The title of the job with a leading line-break and two trailing line-breaks.
549
+ * @param {TaskSetup} setup - The task execution setup
550
+ * @returns {string} The title of the job with a leading line-break and two trailing line-breaks
555
551
  */
556
552
  function getJobTitle (setup) {
557
553
  /** @type {string} */
@@ -563,7 +559,7 @@ function getJobTitle (setup) {
563
559
  /**
564
560
  * Returns a configuration option value based on the command line arguments and the `.linter-bundle.js` configuration.
565
561
  *
566
- * @param {TaskNames} taskName - Name of the task
562
+ * @param {TaskNames} taskName - Name of the task as used in the command line
567
563
  * @param {TaskConfig} taskConfig - Configuration of a task
568
564
  * @param {string} optionName - Configuration option name
569
565
  * @returns {(string | boolean)[] | undefined} Configuration option value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "5.1.0",
3
+ "version": "6.1.0",
4
4
  "type": "module",
5
5
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "lint": "lint.js"
24
24
  },
25
25
  "engines": {
26
- "node": "^16.0.0 || >=18.0.0"
26
+ "node": ">=18.12.0"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
@@ -41,41 +41,42 @@
41
41
  "_test-stylelint": "node ./test-stylelint.js"
42
42
  },
43
43
  "dependencies": {
44
- "@typescript-eslint/eslint-plugin": "6.5.0",
45
- "@typescript-eslint/parser": "6.5.0",
46
- "@typescript-eslint/utils": "6.5.0",
47
- "eslint": "8.48.0",
48
- "eslint-import-resolver-typescript": "3.6.0",
49
- "eslint-import-resolver-webpack": "0.13.7",
44
+ "@typescript-eslint/eslint-plugin": "6.19.1",
45
+ "@typescript-eslint/parser": "6.19.1",
46
+ "@typescript-eslint/utils": "6.19.1",
47
+ "eslint": "8.56.0",
48
+ "eslint-import-resolver-typescript": "3.6.1",
49
+ "eslint-import-resolver-webpack": "0.13.8",
50
50
  "eslint-plugin-eslint-comments": "3.2.0",
51
51
  "eslint-plugin-functional": "6.0.0",
52
- "eslint-plugin-import": "2.28.1",
53
- "eslint-plugin-jest": "27.2.3",
54
- "eslint-plugin-jsdoc": "46.5.1",
55
- "eslint-plugin-jsx-a11y": "6.7.1",
56
- "eslint-plugin-n": "16.0.2",
52
+ "eslint-plugin-import": "2.29.1",
53
+ "eslint-plugin-jest": "27.6.3",
54
+ "eslint-plugin-jsdoc": "48.0.2",
55
+ "eslint-plugin-jsx-a11y": "6.8.0",
56
+ "eslint-plugin-n": "16.6.2",
57
57
  "eslint-plugin-promise": "6.1.1",
58
58
  "eslint-plugin-react": "7.33.2",
59
59
  "eslint-plugin-react-hooks": "4.6.0",
60
- "eslint-plugin-unicorn": "48.0.1",
61
- "markdownlint-cli": "0.36.0",
60
+ "eslint-plugin-unicorn": "50.0.1",
61
+ "markdownlint-cli": "0.38.0",
62
62
  "micromatch": "4.0.5",
63
- "postcss-scss": "4.0.7",
64
- "stylelint": "15.10.3",
65
- "stylelint-declaration-block-no-ignored-properties": "2.7.0",
66
- "stylelint-order": "6.0.3",
67
- "stylelint-scss": "5.1.0",
68
- "stylelint-use-logical-spec": "5.0.0"
63
+ "postcss-scss": "4.0.9",
64
+ "stylelint": "16.2.0",
65
+ "stylelint-declaration-block-no-ignored-properties": "2.8.0",
66
+ "stylelint-high-performance-animation": "1.10.0",
67
+ "stylelint-order": "6.0.4",
68
+ "stylelint-scss": "6.1.0",
69
+ "stylelint-use-logical-spec": "5.0.1"
69
70
  },
70
71
  "peerDependencies": {
71
72
  "postcss-value-parser": "*",
72
73
  "typescript": ">=4.0.0"
73
74
  },
74
75
  "devDependencies": {
75
- "@types/eslint": "8.44.2",
76
- "@types/micromatch": "4.0.2",
77
- "@types/node": "20.5.9",
78
- "stylelint-find-new-rules": "4.1.2",
79
- "typescript": "5.2.2"
76
+ "@types/eslint": "8.56.2",
77
+ "@types/micromatch": "4.0.6",
78
+ "@types/node": "20.11.6",
79
+ "stylelint-find-new-rules": "5.0.0",
80
+ "typescript": "5.3.3"
80
81
  }
81
82
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  /* eslint-disable max-lines -- The rules can be easier managed if they are all in one file */
6
+ /* eslint-disable import/max-dependencies -- As we have to import the different plugins, we can't have a limit here */
6
7
 
7
8
  module.exports = (async () => {
8
9
  const { linterBundleConfig } = await import('../helper/linter-bundle-config.js');
@@ -17,10 +18,82 @@ module.exports = (async () => {
17
18
  'stylelint-order',
18
19
  'stylelint-scss',
19
20
  'stylelint-use-logical-spec',
20
- await import('./plugins/stylelint-high-performance-animation.js'),
21
+ 'stylelint-high-performance-animation',
21
22
  await import('./plugins/stylelint-selector-no-empty.js'),
22
23
  await import('./plugins/stylelint-selector-tag-no-without-class.js'),
23
- await import('./plugins/stylelint-stylistic.js')
24
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/at-rule-name-case/index.cjs'),
25
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/at-rule-name-space-after/index.cjs'),
26
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/at-rule-semicolon-newline-after/index.cjs'),
27
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/at-rule-semicolon-space-before/index.cjs'),
28
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-empty-line-before/index.cjs'),
29
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-newline-after/index.cjs'),
30
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-newline-before/index.cjs'),
31
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-closing-brace-space-before/index.cjs'),
32
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-newline-after/index.cjs'),
33
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-space-after/index.cjs'),
34
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/block-opening-brace-space-before/index.cjs'),
35
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/color-hex-case/index.cjs'),
36
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-bang-space-after/index.cjs'),
37
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-bang-space-before/index.cjs'),
38
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-newline-after/index.cjs'),
39
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-newline-before/index.cjs'),
40
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-space-after/index.cjs'),
41
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-block-semicolon-space-before/index.cjs'),
42
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-block-trailing-semicolon/index.cjs'),
43
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-newline-after/index.cjs'),
44
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-space-after/index.cjs'),
45
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/declaration-colon-space-before/index.cjs'),
46
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-comma-newline-after/index.cjs'),
47
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-comma-newline-before/index.cjs'),
48
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-comma-space-after/index.cjs'),
49
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-comma-space-before/index.cjs'),
50
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-max-empty-lines/index.cjs'),
51
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-parentheses-newline-inside/index.cjs'),
52
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-parentheses-space-inside/index.cjs'),
53
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/function-whitespace-after/index.cjs'),
54
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/indentation/index.cjs'),
55
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/linebreaks/index.cjs'),
56
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/max-empty-lines/index.cjs'),
57
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/max-line-length/index.cjs'),
58
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-feature-colon-space-after/index.cjs'),
59
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-feature-colon-space-before/index.cjs'),
60
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-feature-name-case/index.cjs'),
61
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-feature-parentheses-space-inside/index.cjs'),
62
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-feature-range-operator-space-after/index.cjs'),
63
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-feature-range-operator-space-before/index.cjs'),
64
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-newline-after/index.cjs'),
65
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-newline-before/index.cjs'),
66
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-space-after/index.cjs'),
67
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/media-query-list-comma-space-before/index.cjs'),
68
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/no-empty-first-line/index.cjs'),
69
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/no-eol-whitespace/index.cjs'),
70
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/no-extra-semicolons/index.cjs'),
71
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/no-missing-end-of-source-newline/index.cjs'),
72
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/number-leading-zero/index.cjs'),
73
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/number-no-trailing-zeros/index.cjs'),
74
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/property-case/index.cjs'),
75
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-brackets-space-inside/index.cjs'),
76
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-operator-space-after/index.cjs'),
77
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-attribute-operator-space-before/index.cjs'),
78
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-combinator-space-after/index.cjs'),
79
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-combinator-space-before/index.cjs'),
80
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-descendant-combinator-no-non-space/index.cjs'),
81
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-newline-after/index.cjs'),
82
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-newline-before/index.cjs'),
83
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-space-after/index.cjs'),
84
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-list-comma-space-before/index.cjs'),
85
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-max-empty-lines/index.cjs'),
86
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-class-case/index.cjs'),
87
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-class-parentheses-space-inside/index.cjs'),
88
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/selector-pseudo-element-case/index.cjs'),
89
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/string-quotes/index.cjs'),
90
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/unicode-bom/index.cjs'),
91
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/unit-case/index.cjs'),
92
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-newline-after/index.cjs'),
93
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-newline-before/index.cjs'),
94
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-space-after/index.cjs'),
95
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/value-list-comma-space-before/index.cjs'),
96
+ await import('./plugins/stylelint-15.11.0-stylistic/rules/value-list-max-empty-lines/index.cjs')
24
97
  ],
25
98
  overrides: [
26
99
  {
@@ -178,6 +251,7 @@ module.exports = (async () => {
178
251
  'function-url-scheme-allowed-list': null,
179
252
  'hue-degree-notation': 'number', // @todo change that to 'angle'?
180
253
  'import-notation': null, // This rule, does not make sense. `node_modules` dependencies need to use `url("css_bundle")`, while project files are using only a string.
254
+ 'lightness-notation': 'percentage',
181
255
  'keyframe-block-no-duplicate-selectors': true,
182
256
  'keyframe-declaration-no-important': true,
183
257
  'keyframe-selector-notation': 'percentage',
@@ -214,7 +288,7 @@ module.exports = (async () => {
214
288
  'inset-inline-start', // That's not widely supported and there is no fallback. @see https://caniuse.com/mdn-css_properties_inset-inline-start
215
289
  'inset-inline-end' // That's not widely supported and there is no fallback. @see https://caniuse.com/mdn-css_properties_inset-inline-end
216
290
  ],
217
- 'property-no-unknown': true,
291
+ 'property-no-unknown': null, // Covered by scss/property-no-unknown
218
292
  'property-no-vendor-prefix': true,
219
293
  'rule-selector-property-disallowed-list': null,
220
294
  'rule-empty-line-before': [
@@ -293,8 +367,13 @@ module.exports = (async () => {
293
367
  }],
294
368
 
295
369
  /**
296
- * stylelint-stylistic rules
370
+ * stylelint-15.11.0-stylistic rules
297
371
  */
372
+ /*
373
+ 'plugin/at-rule-name-newline-after': null,
374
+ 'plugin/block-closing-brace-space-after': null,
375
+ 'plugin/block-opening-brace-newline-before': null,
376
+ */
298
377
  'plugin/at-rule-name-case': 'lower',
299
378
  'plugin/at-rule-name-space-after': 'always-single-line',
300
379
  'plugin/at-rule-semicolon-newline-after': 'always',
@@ -869,13 +948,13 @@ module.exports = (async () => {
869
948
  'scss/at-else-empty-line-before': 'never',
870
949
  'scss/at-else-if-parentheses-space-before': 'always',
871
950
  'scss/at-extend-no-missing-placeholder': true,
951
+ 'scss/function-calculation-no-interpolation': true,
872
952
  'scss/at-function-named-arguments': ['never', { ignoreFunctions: ['scale-color', 'color.scale'] }],
873
953
  'scss/at-function-parentheses-space-before': 'always',
874
954
  'scss/at-function-pattern': '^[a-z]+(-[a-z]+)*$',
875
955
  'scss/at-if-closing-brace-newline-after': 'always-last-in-chain',
876
956
  'scss/at-if-closing-brace-space-after': 'never-intermediate',
877
957
  'scss/at-if-no-null': true,
878
- 'scss/at-import-no-partial-leading-underscore': null,
879
958
  'scss/at-import-partial-extension-blacklist': null,
880
959
  'scss/at-import-partial-extension-whitelist': null,
881
960
  'scss/at-import-partial-extension': 'always',
@@ -883,9 +962,12 @@ module.exports = (async () => {
883
962
  'scss/at-mixin-named-arguments': ['always', { ignore: ['single-argument'] }],
884
963
  'scss/at-mixin-parentheses-space-before': 'always',
885
964
  'scss/at-mixin-pattern': '^[a-z]+(-[a-z]+)*$',
965
+ 'scss/at-root-no-redundant': true,
886
966
  'scss/at-rule-conditional-no-parentheses': true,
887
967
  'scss/at-rule-no-unknown': true,
888
968
  'scss/at-use-no-unnamespaced': true,
969
+ 'scss/at-use-no-redundant-alias': null,
970
+ 'scss/block-no-redundant-nesting': null,
889
971
  'scss/comment-no-empty': true,
890
972
  'scss/comment-no-loud': true,
891
973
  'scss/declaration-nested-properties-no-divided-groups': true,
@@ -926,17 +1008,20 @@ module.exports = (async () => {
926
1008
  'scss/function-no-unknown': [true, { ignoreFunctions: [/^custom-/u] }],
927
1009
  'scss/function-quote-no-quoted-strings-inside': true,
928
1010
  'scss/function-unquote-no-unquoted-strings-inside': true,
1011
+ 'scss/load-no-partial-leading-underscore': null,
929
1012
  'scss/map-keys-quotes': 'always',
930
1013
  'scss/media-feature-value-dollar-variable': 'never',
931
1014
  'scss/no-dollar-variables': null,
932
1015
  'scss/no-duplicate-dollar-variables': true,
933
1016
  'scss/no-duplicate-mixins': true,
934
1017
  'scss/no-global-function-names': true,
1018
+ 'scss/no-unused-private-members': true,
935
1019
  'scss/operator-no-newline-after': true,
936
1020
  'scss/operator-no-newline-before': true,
937
1021
  'scss/operator-no-unspaced': true,
938
1022
  'scss/partial-no-import': null,
939
1023
  'scss/percent-placeholder-pattern': '^[a-z]+(-[a-z]+)*$',
1024
+ 'scss/property-no-unknown': true,
940
1025
  'scss/selector-nest-combinators': null, // Sometimes nesting does not make sense
941
1026
  'scss/selector-no-redundant-nesting-selector': true,
942
1027
  'scss/selector-no-union-class-name': true,
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 - present Maxime Thirouin, David Clark & Richard Hallows
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,122 @@
1
+ /* eslint-disable -- We want to keep as much of the original code as possible */
2
+
3
+ module.exports = [
4
+ 'a',
5
+ 'abbr',
6
+ 'address',
7
+ 'area',
8
+ 'article',
9
+ 'aside',
10
+ 'audio',
11
+ 'b',
12
+ 'base',
13
+ 'bdi',
14
+ 'bdo',
15
+ 'blockquote',
16
+ 'body',
17
+ 'br',
18
+ 'button',
19
+ 'canvas',
20
+ 'caption',
21
+ 'cite',
22
+ 'code',
23
+ 'col',
24
+ 'colgroup',
25
+ 'data',
26
+ 'datalist',
27
+ 'dd',
28
+ 'del',
29
+ 'details',
30
+ 'dfn',
31
+ 'dialog',
32
+ 'div',
33
+ 'dl',
34
+ 'dt',
35
+ 'em',
36
+ 'embed',
37
+ 'fieldset',
38
+ 'figcaption',
39
+ 'figure',
40
+ 'footer',
41
+ 'form',
42
+ 'h1',
43
+ 'h2',
44
+ 'h3',
45
+ 'h4',
46
+ 'h5',
47
+ 'h6',
48
+ 'head',
49
+ 'header',
50
+ 'hgroup',
51
+ 'hr',
52
+ 'html',
53
+ 'i',
54
+ 'iframe',
55
+ 'img',
56
+ 'input',
57
+ 'ins',
58
+ 'kbd',
59
+ 'label',
60
+ 'legend',
61
+ 'li',
62
+ 'link',
63
+ 'main',
64
+ 'map',
65
+ 'mark',
66
+ 'math',
67
+ 'menu',
68
+ 'menuitem',
69
+ 'meta',
70
+ 'meter',
71
+ 'nav',
72
+ 'noscript',
73
+ 'object',
74
+ 'ol',
75
+ 'optgroup',
76
+ 'option',
77
+ 'output',
78
+ 'p',
79
+ 'param',
80
+ 'picture',
81
+ 'pre',
82
+ 'progress',
83
+ 'q',
84
+ 'rb',
85
+ 'rp',
86
+ 'rt',
87
+ 'rtc',
88
+ 'ruby',
89
+ 's',
90
+ 'samp',
91
+ 'script',
92
+ 'search',
93
+ 'section',
94
+ 'select',
95
+ 'slot',
96
+ 'small',
97
+ 'source',
98
+ 'span',
99
+ 'strong',
100
+ 'style',
101
+ 'sub',
102
+ 'summary',
103
+ 'sup',
104
+ 'svg',
105
+ 'table',
106
+ 'tbody',
107
+ 'td',
108
+ 'template',
109
+ 'textarea',
110
+ 'tfoot',
111
+ 'th',
112
+ 'thead',
113
+ 'time',
114
+ 'title',
115
+ 'tr',
116
+ 'track',
117
+ 'u',
118
+ 'ul',
119
+ 'var',
120
+ 'video',
121
+ 'wbr'
122
+ ];