eslint-plugin-stylelint-2 1.0.9

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 (268) hide show
  1. package/CHANGELOG.md +329 -0
  2. package/LICENSE +21 -0
  3. package/README.md +174 -0
  4. package/dist/_internal/rule-docs-url.d.ts +15 -0
  5. package/dist/_internal/rule-docs-url.d.ts.map +1 -0
  6. package/dist/_internal/rule-docs-url.js +15 -0
  7. package/dist/_internal/rule-docs-url.js.map +1 -0
  8. package/dist/_internal/rules-registry.d.ts +88 -0
  9. package/dist/_internal/rules-registry.d.ts.map +1 -0
  10. package/dist/_internal/rules-registry.js +85 -0
  11. package/dist/_internal/rules-registry.js.map +1 -0
  12. package/dist/_internal/stylelint-config-boolean-option-rule.d.ts +17 -0
  13. package/dist/_internal/stylelint-config-boolean-option-rule.d.ts.map +1 -0
  14. package/dist/_internal/stylelint-config-boolean-option-rule.js +90 -0
  15. package/dist/_internal/stylelint-config-boolean-option-rule.js.map +1 -0
  16. package/dist/_internal/stylelint-config-disallowed-option-rule.d.ts +16 -0
  17. package/dist/_internal/stylelint-config-disallowed-option-rule.d.ts.map +1 -0
  18. package/dist/_internal/stylelint-config-disallowed-option-rule.js +48 -0
  19. package/dist/_internal/stylelint-config-disallowed-option-rule.js.map +1 -0
  20. package/dist/_internal/stylelint-config-object.d.ts +62 -0
  21. package/dist/_internal/stylelint-config-object.d.ts.map +1 -0
  22. package/dist/_internal/stylelint-config-object.js +114 -0
  23. package/dist/_internal/stylelint-config-object.js.map +1 -0
  24. package/dist/_internal/stylelint-config-package-option-rule.d.ts +12 -0
  25. package/dist/_internal/stylelint-config-package-option-rule.d.ts.map +1 -0
  26. package/dist/_internal/stylelint-config-package-option-rule.js +66 -0
  27. package/dist/_internal/stylelint-config-package-option-rule.js.map +1 -0
  28. package/dist/_internal/stylelint-config-rules-object.d.ts +23 -0
  29. package/dist/_internal/stylelint-config-rules-object.d.ts.map +1 -0
  30. package/dist/_internal/stylelint-config-rules-object.js +47 -0
  31. package/dist/_internal/stylelint-config-rules-object.js.map +1 -0
  32. package/dist/_internal/stylelint-config-string-array-option-rule.d.ts +27 -0
  33. package/dist/_internal/stylelint-config-string-array-option-rule.d.ts.map +1 -0
  34. package/dist/_internal/stylelint-config-string-array-option-rule.js +234 -0
  35. package/dist/_internal/stylelint-config-string-array-option-rule.js.map +1 -0
  36. package/dist/_internal/stylelint-config-string-array-option.d.ts +32 -0
  37. package/dist/_internal/stylelint-config-string-array-option.d.ts.map +1 -0
  38. package/dist/_internal/stylelint-config-string-array-option.js +55 -0
  39. package/dist/_internal/stylelint-config-string-array-option.js.map +1 -0
  40. package/dist/_internal/stylelint-package-dependencies.d.ts +18 -0
  41. package/dist/_internal/stylelint-package-dependencies.d.ts.map +1 -0
  42. package/dist/_internal/stylelint-package-dependencies.js +107 -0
  43. package/dist/_internal/stylelint-package-dependencies.js.map +1 -0
  44. package/dist/_internal/stylelint-runner.d.ts +4 -0
  45. package/dist/_internal/stylelint-runner.d.ts.map +1 -0
  46. package/dist/_internal/stylelint-runner.js +93 -0
  47. package/dist/_internal/stylelint-runner.js.map +1 -0
  48. package/dist/_internal/stylelint-worker-types.d.ts +70 -0
  49. package/dist/_internal/stylelint-worker-types.d.ts.map +1 -0
  50. package/dist/_internal/stylelint-worker-types.js +2 -0
  51. package/dist/_internal/stylelint-worker-types.js.map +1 -0
  52. package/dist/_internal/stylelint-worker.d.ts +2 -0
  53. package/dist/_internal/stylelint-worker.d.ts.map +1 -0
  54. package/dist/_internal/stylelint-worker.js +113 -0
  55. package/dist/_internal/stylelint-worker.js.map +1 -0
  56. package/dist/_internal/stylelint2-config-references.d.ts +32 -0
  57. package/dist/_internal/stylelint2-config-references.d.ts.map +1 -0
  58. package/dist/_internal/stylelint2-config-references.js +65 -0
  59. package/dist/_internal/stylelint2-config-references.js.map +1 -0
  60. package/dist/_internal/typed-rule.d.ts +42 -0
  61. package/dist/_internal/typed-rule.d.ts.map +1 -0
  62. package/dist/_internal/typed-rule.js +53 -0
  63. package/dist/_internal/typed-rule.js.map +1 -0
  64. package/dist/plugin.cjs +1 -0
  65. package/dist/plugin.d.cts +10 -0
  66. package/dist/plugin.d.ts +36 -0
  67. package/dist/plugin.d.ts.map +1 -0
  68. package/dist/plugin.js +183 -0
  69. package/dist/plugin.js.map +1 -0
  70. package/dist/rules/disallow-stylelint-allow-empty-input.d.ts +9 -0
  71. package/dist/rules/disallow-stylelint-allow-empty-input.d.ts.map +1 -0
  72. package/dist/rules/disallow-stylelint-allow-empty-input.js +29 -0
  73. package/dist/rules/disallow-stylelint-allow-empty-input.js.map +1 -0
  74. package/dist/rules/disallow-stylelint-configuration-comment.d.ts +9 -0
  75. package/dist/rules/disallow-stylelint-configuration-comment.d.ts.map +1 -0
  76. package/dist/rules/disallow-stylelint-configuration-comment.js +29 -0
  77. package/dist/rules/disallow-stylelint-configuration-comment.js.map +1 -0
  78. package/dist/rules/disallow-stylelint-custom-syntax.d.ts +12 -0
  79. package/dist/rules/disallow-stylelint-custom-syntax.d.ts.map +1 -0
  80. package/dist/rules/disallow-stylelint-custom-syntax.js +32 -0
  81. package/dist/rules/disallow-stylelint-custom-syntax.js.map +1 -0
  82. package/dist/rules/disallow-stylelint-default-severity.d.ts +9 -0
  83. package/dist/rules/disallow-stylelint-default-severity.d.ts.map +1 -0
  84. package/dist/rules/disallow-stylelint-default-severity.js +28 -0
  85. package/dist/rules/disallow-stylelint-default-severity.js.map +1 -0
  86. package/dist/rules/disallow-stylelint-duplicate-extends.d.ts +9 -0
  87. package/dist/rules/disallow-stylelint-duplicate-extends.d.ts.map +1 -0
  88. package/dist/rules/disallow-stylelint-duplicate-extends.js +29 -0
  89. package/dist/rules/disallow-stylelint-duplicate-extends.js.map +1 -0
  90. package/dist/rules/disallow-stylelint-duplicate-plugins.d.ts +9 -0
  91. package/dist/rules/disallow-stylelint-duplicate-plugins.d.ts.map +1 -0
  92. package/dist/rules/disallow-stylelint-duplicate-plugins.js +29 -0
  93. package/dist/rules/disallow-stylelint-duplicate-plugins.js.map +1 -0
  94. package/dist/rules/disallow-stylelint-duplicate-rule-option-values.d.ts +10 -0
  95. package/dist/rules/disallow-stylelint-duplicate-rule-option-values.d.ts.map +1 -0
  96. package/dist/rules/disallow-stylelint-duplicate-rule-option-values.js +171 -0
  97. package/dist/rules/disallow-stylelint-duplicate-rule-option-values.js.map +1 -0
  98. package/dist/rules/disallow-stylelint-empty-rules-object.d.ts +7 -0
  99. package/dist/rules/disallow-stylelint-empty-rules-object.d.ts.map +1 -0
  100. package/dist/rules/disallow-stylelint-empty-rules-object.js +65 -0
  101. package/dist/rules/disallow-stylelint-empty-rules-object.js.map +1 -0
  102. package/dist/rules/disallow-stylelint-ignore-disables.d.ts +9 -0
  103. package/dist/rules/disallow-stylelint-ignore-disables.d.ts.map +1 -0
  104. package/dist/rules/disallow-stylelint-ignore-disables.js +28 -0
  105. package/dist/rules/disallow-stylelint-ignore-disables.js.map +1 -0
  106. package/dist/rules/disallow-stylelint-ignore-files.d.ts +9 -0
  107. package/dist/rules/disallow-stylelint-ignore-files.d.ts.map +1 -0
  108. package/dist/rules/disallow-stylelint-ignore-files.js +28 -0
  109. package/dist/rules/disallow-stylelint-ignore-files.js.map +1 -0
  110. package/dist/rules/disallow-stylelint-null-rule-config.d.ts +7 -0
  111. package/dist/rules/disallow-stylelint-null-rule-config.d.ts.map +1 -0
  112. package/dist/rules/disallow-stylelint-null-rule-config.js +86 -0
  113. package/dist/rules/disallow-stylelint-null-rule-config.js.map +1 -0
  114. package/dist/rules/disallow-stylelint-overrides-runtime-options.d.ts +7 -0
  115. package/dist/rules/disallow-stylelint-overrides-runtime-options.d.ts.map +1 -0
  116. package/dist/rules/disallow-stylelint-overrides-runtime-options.js +124 -0
  117. package/dist/rules/disallow-stylelint-overrides-runtime-options.js.map +1 -0
  118. package/dist/rules/disallow-stylelint-processors.d.ts +9 -0
  119. package/dist/rules/disallow-stylelint-processors.d.ts.map +1 -0
  120. package/dist/rules/disallow-stylelint-processors.js +29 -0
  121. package/dist/rules/disallow-stylelint-processors.js.map +1 -0
  122. package/dist/rules/disallow-stylelint-relative-extends-paths.d.ts +9 -0
  123. package/dist/rules/disallow-stylelint-relative-extends-paths.d.ts.map +1 -0
  124. package/dist/rules/disallow-stylelint-relative-extends-paths.js +28 -0
  125. package/dist/rules/disallow-stylelint-relative-extends-paths.js.map +1 -0
  126. package/dist/rules/disallow-stylelint-relative-plugin-paths.d.ts +9 -0
  127. package/dist/rules/disallow-stylelint-relative-plugin-paths.d.ts.map +1 -0
  128. package/dist/rules/disallow-stylelint-relative-plugin-paths.js +28 -0
  129. package/dist/rules/disallow-stylelint-relative-plugin-paths.js.map +1 -0
  130. package/dist/rules/prefer-stylelint-cache.d.ts +9 -0
  131. package/dist/rules/prefer-stylelint-cache.d.ts.map +1 -0
  132. package/dist/rules/prefer-stylelint-cache.js +28 -0
  133. package/dist/rules/prefer-stylelint-cache.js.map +1 -0
  134. package/dist/rules/prefer-stylelint-define-config.d.ts +7 -0
  135. package/dist/rules/prefer-stylelint-define-config.d.ts.map +1 -0
  136. package/dist/rules/prefer-stylelint-define-config.js +82 -0
  137. package/dist/rules/prefer-stylelint-define-config.js.map +1 -0
  138. package/dist/rules/prefer-stylelint-extends-array.d.ts +9 -0
  139. package/dist/rules/prefer-stylelint-extends-array.d.ts.map +1 -0
  140. package/dist/rules/prefer-stylelint-extends-array.js +29 -0
  141. package/dist/rules/prefer-stylelint-extends-array.js.map +1 -0
  142. package/dist/rules/prefer-stylelint-fix.d.ts +7 -0
  143. package/dist/rules/prefer-stylelint-fix.d.ts.map +1 -0
  144. package/dist/rules/prefer-stylelint-fix.js +90 -0
  145. package/dist/rules/prefer-stylelint-fix.js.map +1 -0
  146. package/dist/rules/prefer-stylelint-formatter.d.ts +10 -0
  147. package/dist/rules/prefer-stylelint-formatter.d.ts.map +1 -0
  148. package/dist/rules/prefer-stylelint-formatter.js +77 -0
  149. package/dist/rules/prefer-stylelint-formatter.js.map +1 -0
  150. package/dist/rules/prefer-stylelint-plugins-array.d.ts +9 -0
  151. package/dist/rules/prefer-stylelint-plugins-array.d.ts.map +1 -0
  152. package/dist/rules/prefer-stylelint-plugins-array.js +29 -0
  153. package/dist/rules/prefer-stylelint-plugins-array.js.map +1 -0
  154. package/dist/rules/prefer-stylelint-report-descriptionless-disables.d.ts +12 -0
  155. package/dist/rules/prefer-stylelint-report-descriptionless-disables.d.ts.map +1 -0
  156. package/dist/rules/prefer-stylelint-report-descriptionless-disables.js +32 -0
  157. package/dist/rules/prefer-stylelint-report-descriptionless-disables.js.map +1 -0
  158. package/dist/rules/prefer-stylelint-report-invalid-scope-disables.d.ts +12 -0
  159. package/dist/rules/prefer-stylelint-report-invalid-scope-disables.d.ts.map +1 -0
  160. package/dist/rules/prefer-stylelint-report-invalid-scope-disables.js +32 -0
  161. package/dist/rules/prefer-stylelint-report-invalid-scope-disables.js.map +1 -0
  162. package/dist/rules/prefer-stylelint-report-needless-disables.d.ts +9 -0
  163. package/dist/rules/prefer-stylelint-report-needless-disables.d.ts.map +1 -0
  164. package/dist/rules/prefer-stylelint-report-needless-disables.js +29 -0
  165. package/dist/rules/prefer-stylelint-report-needless-disables.js.map +1 -0
  166. package/dist/rules/prefer-stylelint-report-unscoped-disables.d.ts +9 -0
  167. package/dist/rules/prefer-stylelint-report-unscoped-disables.d.ts.map +1 -0
  168. package/dist/rules/prefer-stylelint-report-unscoped-disables.js +29 -0
  169. package/dist/rules/prefer-stylelint-report-unscoped-disables.js.map +1 -0
  170. package/dist/rules/require-stylelint-config-file-naming-convention.d.ts +13 -0
  171. package/dist/rules/require-stylelint-config-file-naming-convention.d.ts.map +1 -0
  172. package/dist/rules/require-stylelint-config-file-naming-convention.js +58 -0
  173. package/dist/rules/require-stylelint-config-file-naming-convention.js.map +1 -0
  174. package/dist/rules/require-stylelint-custom-syntax-in-overrides.d.ts +7 -0
  175. package/dist/rules/require-stylelint-custom-syntax-in-overrides.d.ts.map +1 -0
  176. package/dist/rules/require-stylelint-custom-syntax-in-overrides.js +100 -0
  177. package/dist/rules/require-stylelint-custom-syntax-in-overrides.js.map +1 -0
  178. package/dist/rules/require-stylelint-extends-packages-installed.d.ts +12 -0
  179. package/dist/rules/require-stylelint-extends-packages-installed.d.ts.map +1 -0
  180. package/dist/rules/require-stylelint-extends-packages-installed.js +31 -0
  181. package/dist/rules/require-stylelint-extends-packages-installed.js.map +1 -0
  182. package/dist/rules/require-stylelint-overrides-configuration.d.ts +7 -0
  183. package/dist/rules/require-stylelint-overrides-configuration.d.ts.map +1 -0
  184. package/dist/rules/require-stylelint-overrides-configuration.js +100 -0
  185. package/dist/rules/require-stylelint-overrides-configuration.js.map +1 -0
  186. package/dist/rules/require-stylelint-overrides-files-array.d.ts +7 -0
  187. package/dist/rules/require-stylelint-overrides-files-array.d.ts.map +1 -0
  188. package/dist/rules/require-stylelint-overrides-files-array.js +99 -0
  189. package/dist/rules/require-stylelint-overrides-files-array.js.map +1 -0
  190. package/dist/rules/require-stylelint-overrides-files.d.ts +7 -0
  191. package/dist/rules/require-stylelint-overrides-files.d.ts.map +1 -0
  192. package/dist/rules/require-stylelint-overrides-files.js +104 -0
  193. package/dist/rules/require-stylelint-overrides-files.js.map +1 -0
  194. package/dist/rules/require-stylelint-plugins-packages-installed.d.ts +12 -0
  195. package/dist/rules/require-stylelint-plugins-packages-installed.d.ts.map +1 -0
  196. package/dist/rules/require-stylelint-plugins-packages-installed.js +31 -0
  197. package/dist/rules/require-stylelint-plugins-packages-installed.js.map +1 -0
  198. package/dist/rules/require-stylelint-report-disables.d.ts +9 -0
  199. package/dist/rules/require-stylelint-report-disables.d.ts.map +1 -0
  200. package/dist/rules/require-stylelint-report-disables.js +29 -0
  201. package/dist/rules/require-stylelint-report-disables.js.map +1 -0
  202. package/dist/rules/require-stylelint-rules-object.d.ts +7 -0
  203. package/dist/rules/require-stylelint-rules-object.d.ts.map +1 -0
  204. package/dist/rules/require-stylelint-rules-object.js +65 -0
  205. package/dist/rules/require-stylelint-rules-object.js.map +1 -0
  206. package/dist/rules/sort-stylelint-extends.d.ts +9 -0
  207. package/dist/rules/sort-stylelint-extends.d.ts.map +1 -0
  208. package/dist/rules/sort-stylelint-extends.js +28 -0
  209. package/dist/rules/sort-stylelint-extends.js.map +1 -0
  210. package/dist/rules/sort-stylelint-plugins.d.ts +9 -0
  211. package/dist/rules/sort-stylelint-plugins.d.ts.map +1 -0
  212. package/dist/rules/sort-stylelint-plugins.js +28 -0
  213. package/dist/rules/sort-stylelint-plugins.js.map +1 -0
  214. package/dist/rules/sort-stylelint-rule-keys.d.ts +7 -0
  215. package/dist/rules/sort-stylelint-rule-keys.d.ts.map +1 -0
  216. package/dist/rules/sort-stylelint-rule-keys.js +129 -0
  217. package/dist/rules/sort-stylelint-rule-keys.js.map +1 -0
  218. package/dist/rules/stylelint.d.ts +15 -0
  219. package/dist/rules/stylelint.d.ts.map +1 -0
  220. package/dist/rules/stylelint.js +157 -0
  221. package/dist/rules/stylelint.js.map +1 -0
  222. package/docs/rules/disallow-stylelint-allow-empty-input.md +62 -0
  223. package/docs/rules/disallow-stylelint-configuration-comment.md +62 -0
  224. package/docs/rules/disallow-stylelint-custom-syntax.md +70 -0
  225. package/docs/rules/disallow-stylelint-default-severity.md +77 -0
  226. package/docs/rules/disallow-stylelint-duplicate-extends.md +61 -0
  227. package/docs/rules/disallow-stylelint-duplicate-plugins.md +61 -0
  228. package/docs/rules/disallow-stylelint-duplicate-rule-option-values.md +73 -0
  229. package/docs/rules/disallow-stylelint-empty-rules-object.md +62 -0
  230. package/docs/rules/disallow-stylelint-ignore-disables.md +78 -0
  231. package/docs/rules/disallow-stylelint-ignore-files.md +78 -0
  232. package/docs/rules/disallow-stylelint-null-rule-config.md +63 -0
  233. package/docs/rules/disallow-stylelint-overrides-runtime-options.md +82 -0
  234. package/docs/rules/disallow-stylelint-processors.md +62 -0
  235. package/docs/rules/disallow-stylelint-relative-extends-paths.md +61 -0
  236. package/docs/rules/disallow-stylelint-relative-plugin-paths.md +61 -0
  237. package/docs/rules/getting-started.md +130 -0
  238. package/docs/rules/overview.md +99 -0
  239. package/docs/rules/prefer-stylelint-cache.md +79 -0
  240. package/docs/rules/prefer-stylelint-define-config.md +90 -0
  241. package/docs/rules/prefer-stylelint-extends-array.md +61 -0
  242. package/docs/rules/prefer-stylelint-fix.md +79 -0
  243. package/docs/rules/prefer-stylelint-formatter.md +80 -0
  244. package/docs/rules/prefer-stylelint-plugins-array.md +61 -0
  245. package/docs/rules/prefer-stylelint-report-descriptionless-disables.md +85 -0
  246. package/docs/rules/prefer-stylelint-report-invalid-scope-disables.md +83 -0
  247. package/docs/rules/prefer-stylelint-report-needless-disables.md +83 -0
  248. package/docs/rules/prefer-stylelint-report-unscoped-disables.md +83 -0
  249. package/docs/rules/presets/all.md +39 -0
  250. package/docs/rules/presets/configs.md +40 -0
  251. package/docs/rules/presets/configuration.md +64 -0
  252. package/docs/rules/presets/index.md +82 -0
  253. package/docs/rules/presets/recommended.md +40 -0
  254. package/docs/rules/presets/stylelint-only.md +42 -0
  255. package/docs/rules/require-stylelint-config-file-naming-convention.md +61 -0
  256. package/docs/rules/require-stylelint-custom-syntax-in-overrides.md +77 -0
  257. package/docs/rules/require-stylelint-extends-packages-installed.md +61 -0
  258. package/docs/rules/require-stylelint-overrides-configuration.md +80 -0
  259. package/docs/rules/require-stylelint-overrides-files-array.md +78 -0
  260. package/docs/rules/require-stylelint-overrides-files.md +83 -0
  261. package/docs/rules/require-stylelint-plugins-packages-installed.md +61 -0
  262. package/docs/rules/require-stylelint-report-disables.md +67 -0
  263. package/docs/rules/require-stylelint-rules-object.md +61 -0
  264. package/docs/rules/sort-stylelint-extends.md +61 -0
  265. package/docs/rules/sort-stylelint-plugins.md +61 -0
  266. package/docs/rules/sort-stylelint-rule-keys.md +65 -0
  267. package/docs/rules/stylelint.md +100 -0
  268. package/package.json +577 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typed-rule.js","sourceRoot":"","sources":["../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C,gBAAgB,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ module.exports = require("./plugin.js").default;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Type declaration entrypoint for CommonJS consumers of `plugin.cjs`.
4
+ */
5
+ import type { ESLint } from "eslint";
6
+
7
+ /** Default CommonJS export shape for eslint-plugin-stylelint-2. */
8
+ declare const plugin: ESLint.Plugin;
9
+
10
+ export = plugin;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Public plugin entrypoint for eslint-plugin-stylelint-2 exports and preset wiring.
4
+ */
5
+ import type { ESLint, Linter } from "eslint";
6
+ import { stylelint2Rules } from "./_internal/rules-registry.js";
7
+ import { type Stylelint2ConfigName as InternalStylelint2ConfigName } from "./_internal/stylelint2-config-references.js";
8
+ /** Public preset key names supported by eslint-plugin-stylelint-2. */
9
+ export type Stylelint2ConfigName = InternalStylelint2ConfigName;
10
+ /** ESLint namespace used for qualified rule ids. */
11
+ declare const pluginNamespace: "stylelint-2";
12
+ /** Public preset config value shape. */
13
+ export type Stylelint2Config = Linter.Config | readonly Linter.Config[];
14
+ /** Public preset registry shape. */
15
+ export type Stylelint2Configs = Record<Stylelint2ConfigName, Stylelint2Config>;
16
+ /** Qualified rule ID supported by eslint-plugin-stylelint-2. */
17
+ export type Stylelint2RuleId = `${typeof pluginNamespace}/${Stylelint2RuleName}`;
18
+ /** Unqualified rule name supported by eslint-plugin-stylelint-2. */
19
+ export type Stylelint2RuleName = keyof typeof stylelint2Rules;
20
+ /** ESLint-compatible rule map view of the strongly typed internal rule record. */
21
+ declare const eslintPluginRules: NonNullable<ESLint.Plugin["rules"]> & typeof stylelint2Rules;
22
+ /** Fully assembled runtime plugin object exported by this package. */
23
+ /** Fully assembled runtime plugin object exported by this package. */
24
+ declare const stylelint2Plugin: ESLint.Plugin & {
25
+ configs: Stylelint2Configs;
26
+ meta: {
27
+ name: string;
28
+ namespace: string;
29
+ version: string;
30
+ };
31
+ rules: typeof eslintPluginRules;
32
+ };
33
+ /** Fully assembled public plugin contract. */
34
+ export type Stylelint2Plugin = typeof stylelint2Plugin;
35
+ export default stylelint2Plugin;
36
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAO7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EACH,KAAK,oBAAoB,IAAI,4BAA4B,EAE5D,MAAM,6CAA6C,CAAC;AAErD,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAIhE,oDAAoD;AACpD,QAAA,MAAM,eAAe,EAAG,aAAsB,CAAC;AAS/C,wCAAwC;AACxC,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC;AACxE,oCAAoC;AACpC,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC/E,gEAAgE;AAChE,MAAM,MAAM,gBAAgB,GACxB,GAAG,OAAO,eAAe,IAAI,kBAAkB,EAAE,CAAC;AACtD,oEAAoE;AACpE,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAC;AAE9D,kFAAkF;AAClF,QAAA,MAAM,iBAAiB,EAAsB,WAAW,CACpD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CACzB,GACG,OAAO,eAAe,CAAC;AA2D3B,sEAAsE;AACtE,sEAAsE;AACtE,QAAA,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,GAAG;IACpC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,KAAK,EAAE,OAAO,iBAAiB,CAAC;CAUnC,CAAC;AAgIF,8CAA8C;AAC9C,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAEvD,eAAe,gBAAgB,CAAC"}
package/dist/plugin.js ADDED
@@ -0,0 +1,183 @@
1
+ import css from "@eslint/css";
2
+ import tsParser from "@typescript-eslint/parser";
3
+ import { ESLint as ESLintRuntime } from "eslint";
4
+ import packageJson from "../package.json" with { type: "json" };
5
+ import { stylelint2Rules } from "./_internal/rules-registry.js";
6
+ import { stylelint2ConfigMetadataByName, } from "./_internal/stylelint2-config-references.js";
7
+ /** Package name exported in runtime plugin metadata. */
8
+ const pluginName = "eslint-plugin-stylelint-2";
9
+ /** ESLint namespace used for qualified rule ids. */
10
+ const pluginNamespace = "stylelint-2";
11
+ /** Default CSS files covered by the stylesheet preset. */
12
+ const stylesheetFiles = ["**/*.css"];
13
+ /** Stylelint config file globs covered by the config preset. */
14
+ const configFiles = [
15
+ "**/stylelint.config.{js,mjs,cjs,ts,mts,cts}",
16
+ "**/.stylelintrc.{js,mjs,cjs,ts,mts,cts}",
17
+ ];
18
+ /** ESLint-compatible rule map view of the strongly typed internal rule record. */
19
+ const eslintPluginRules = stylelint2Rules;
20
+ const version = typeof packageJson.version === "string" ? packageJson.version : "0.0.0";
21
+ /**
22
+ * Internal override used by compatibility smoke checks to force flat-config
23
+ * shape selection for the target ESLint major. Not a public runtime API.
24
+ */
25
+ const eslintMajorOverrideEnvironmentVariable = "STYLELINT2_ESLINT_MAJOR";
26
+ const positiveIntegerPattern = /^[1-9]\d*$/u;
27
+ const parsePositiveInteger = (value) => {
28
+ if (!positiveIntegerPattern.test(value)) {
29
+ return undefined;
30
+ }
31
+ const parsedValue = Number.parseInt(value, 10);
32
+ return Number.isSafeInteger(parsedValue) && parsedValue > 0
33
+ ? parsedValue
34
+ : undefined;
35
+ };
36
+ const getEslintMajorVersion = (eslintVersion) => {
37
+ const [majorText = "0"] = eslintVersion.split(".");
38
+ return parsePositiveInteger(majorText) ?? 0;
39
+ };
40
+ const getEslintMajorVersionOverride = () => {
41
+ const overrideValue = globalThis.process.env[eslintMajorOverrideEnvironmentVariable];
42
+ if (typeof overrideValue !== "string" || overrideValue.length === 0) {
43
+ return undefined;
44
+ }
45
+ return parsePositiveInteger(overrideValue);
46
+ };
47
+ const resolvedEslintMajorVersion = getEslintMajorVersionOverride() ??
48
+ getEslintMajorVersion(ESLintRuntime.version);
49
+ const supportsCssLanguageInFlatConfig = resolvedEslintMajorVersion >= 10;
50
+ const cssLanguagePresetFields = supportsCssLanguageInFlatConfig
51
+ ? {
52
+ language: "css/css",
53
+ languageOptions: {
54
+ tolerant: true,
55
+ },
56
+ }
57
+ : {};
58
+ /** Fully assembled runtime plugin object exported by this package. */
59
+ /** Fully assembled runtime plugin object exported by this package. */
60
+ const stylelint2Plugin = {
61
+ configs: {},
62
+ meta: {
63
+ name: pluginName,
64
+ namespace: pluginNamespace,
65
+ version,
66
+ },
67
+ processors: {},
68
+ rules: eslintPluginRules,
69
+ };
70
+ const stylelintOnlyPreset = {
71
+ files: [...stylesheetFiles],
72
+ ...cssLanguagePresetFields,
73
+ name: stylelint2ConfigMetadataByName.stylelintOnly.presetName,
74
+ plugins: {
75
+ ...(supportsCssLanguageInFlatConfig ? { css } : {}),
76
+ [pluginNamespace]: stylelint2Plugin,
77
+ },
78
+ rules: {
79
+ [`${pluginNamespace}/stylelint`]: "error",
80
+ },
81
+ };
82
+ const configurationRules = {
83
+ [`${pluginNamespace}/disallow-stylelint-allow-empty-input`]: "warn",
84
+ [`${pluginNamespace}/disallow-stylelint-configuration-comment`]: "warn",
85
+ [`${pluginNamespace}/disallow-stylelint-custom-syntax`]: "warn",
86
+ [`${pluginNamespace}/disallow-stylelint-default-severity`]: "warn",
87
+ [`${pluginNamespace}/disallow-stylelint-duplicate-extends`]: "warn",
88
+ [`${pluginNamespace}/disallow-stylelint-duplicate-plugins`]: "warn",
89
+ [`${pluginNamespace}/disallow-stylelint-duplicate-rule-option-values`]: "warn",
90
+ [`${pluginNamespace}/disallow-stylelint-empty-rules-object`]: "warn",
91
+ [`${pluginNamespace}/disallow-stylelint-ignore-disables`]: "warn",
92
+ [`${pluginNamespace}/disallow-stylelint-ignore-files`]: "warn",
93
+ [`${pluginNamespace}/disallow-stylelint-null-rule-config`]: "warn",
94
+ [`${pluginNamespace}/disallow-stylelint-overrides-runtime-options`]: "warn",
95
+ [`${pluginNamespace}/disallow-stylelint-processors`]: "warn",
96
+ [`${pluginNamespace}/disallow-stylelint-relative-extends-paths`]: "warn",
97
+ [`${pluginNamespace}/disallow-stylelint-relative-plugin-paths`]: "warn",
98
+ [`${pluginNamespace}/prefer-stylelint-cache`]: "warn",
99
+ [`${pluginNamespace}/prefer-stylelint-define-config`]: "warn",
100
+ [`${pluginNamespace}/prefer-stylelint-extends-array`]: "warn",
101
+ [`${pluginNamespace}/prefer-stylelint-fix`]: "warn",
102
+ [`${pluginNamespace}/prefer-stylelint-formatter`]: "warn",
103
+ [`${pluginNamespace}/prefer-stylelint-plugins-array`]: "warn",
104
+ [`${pluginNamespace}/prefer-stylelint-report-descriptionless-disables`]: "warn",
105
+ [`${pluginNamespace}/prefer-stylelint-report-invalid-scope-disables`]: "warn",
106
+ [`${pluginNamespace}/prefer-stylelint-report-needless-disables`]: "warn",
107
+ [`${pluginNamespace}/prefer-stylelint-report-unscoped-disables`]: "warn",
108
+ [`${pluginNamespace}/require-stylelint-config-file-naming-convention`]: "warn",
109
+ [`${pluginNamespace}/require-stylelint-custom-syntax-in-overrides`]: "warn",
110
+ [`${pluginNamespace}/require-stylelint-extends-packages-installed`]: "warn",
111
+ [`${pluginNamespace}/require-stylelint-overrides-configuration`]: "warn",
112
+ [`${pluginNamespace}/require-stylelint-overrides-files-array`]: "warn",
113
+ [`${pluginNamespace}/require-stylelint-overrides-files`]: "warn",
114
+ [`${pluginNamespace}/require-stylelint-plugins-packages-installed`]: "warn",
115
+ [`${pluginNamespace}/require-stylelint-report-disables`]: "warn",
116
+ [`${pluginNamespace}/require-stylelint-rules-object`]: "warn",
117
+ [`${pluginNamespace}/sort-stylelint-extends`]: "warn",
118
+ [`${pluginNamespace}/sort-stylelint-plugins`]: "warn",
119
+ [`${pluginNamespace}/sort-stylelint-rule-keys`]: "warn",
120
+ };
121
+ const recommendedConfigurationRules = {
122
+ [`${pluginNamespace}/disallow-stylelint-allow-empty-input`]: "warn",
123
+ [`${pluginNamespace}/disallow-stylelint-configuration-comment`]: "warn",
124
+ [`${pluginNamespace}/disallow-stylelint-custom-syntax`]: "warn",
125
+ [`${pluginNamespace}/disallow-stylelint-duplicate-extends`]: "warn",
126
+ [`${pluginNamespace}/disallow-stylelint-duplicate-plugins`]: "warn",
127
+ [`${pluginNamespace}/disallow-stylelint-duplicate-rule-option-values`]: "warn",
128
+ [`${pluginNamespace}/disallow-stylelint-empty-rules-object`]: "warn",
129
+ [`${pluginNamespace}/disallow-stylelint-null-rule-config`]: "warn",
130
+ [`${pluginNamespace}/disallow-stylelint-overrides-runtime-options`]: "warn",
131
+ [`${pluginNamespace}/disallow-stylelint-processors`]: "warn",
132
+ [`${pluginNamespace}/disallow-stylelint-relative-extends-paths`]: "warn",
133
+ [`${pluginNamespace}/disallow-stylelint-relative-plugin-paths`]: "warn",
134
+ [`${pluginNamespace}/prefer-stylelint-define-config`]: "warn",
135
+ [`${pluginNamespace}/prefer-stylelint-extends-array`]: "warn",
136
+ [`${pluginNamespace}/prefer-stylelint-plugins-array`]: "warn",
137
+ [`${pluginNamespace}/prefer-stylelint-report-descriptionless-disables`]: "warn",
138
+ [`${pluginNamespace}/prefer-stylelint-report-invalid-scope-disables`]: "warn",
139
+ [`${pluginNamespace}/prefer-stylelint-report-needless-disables`]: "warn",
140
+ [`${pluginNamespace}/prefer-stylelint-report-unscoped-disables`]: "warn",
141
+ [`${pluginNamespace}/require-stylelint-config-file-naming-convention`]: "warn",
142
+ [`${pluginNamespace}/require-stylelint-custom-syntax-in-overrides`]: "warn",
143
+ [`${pluginNamespace}/require-stylelint-extends-packages-installed`]: "warn",
144
+ [`${pluginNamespace}/require-stylelint-overrides-configuration`]: "warn",
145
+ [`${pluginNamespace}/require-stylelint-overrides-files-array`]: "warn",
146
+ [`${pluginNamespace}/require-stylelint-overrides-files`]: "warn",
147
+ [`${pluginNamespace}/require-stylelint-plugins-packages-installed`]: "warn",
148
+ [`${pluginNamespace}/require-stylelint-report-disables`]: "warn",
149
+ [`${pluginNamespace}/require-stylelint-rules-object`]: "warn",
150
+ [`${pluginNamespace}/sort-stylelint-extends`]: "warn",
151
+ [`${pluginNamespace}/sort-stylelint-plugins`]: "warn",
152
+ [`${pluginNamespace}/sort-stylelint-rule-keys`]: "warn",
153
+ };
154
+ const configurationPreset = {
155
+ files: [...configFiles],
156
+ languageOptions: {
157
+ parser: tsParser,
158
+ parserOptions: {
159
+ ecmaVersion: "latest",
160
+ sourceType: "module",
161
+ },
162
+ },
163
+ name: stylelint2ConfigMetadataByName.configuration.presetName,
164
+ plugins: {
165
+ [pluginNamespace]: stylelint2Plugin,
166
+ },
167
+ rules: configurationRules,
168
+ };
169
+ const recommendedConfigurationPreset = {
170
+ ...configurationPreset,
171
+ name: `${stylelint2ConfigMetadataByName.recommended.presetName}:config`,
172
+ rules: recommendedConfigurationRules,
173
+ };
174
+ stylelint2Plugin.configs = {
175
+ all: [stylelintOnlyPreset, configurationPreset],
176
+ configs: configurationPreset,
177
+ configuration: configurationPreset,
178
+ recommended: [stylelintOnlyPreset, recommendedConfigurationPreset],
179
+ stylelintOnly: stylelintOnlyPreset,
180
+ stylesheets: stylelintOnlyPreset,
181
+ };
182
+ export default stylelint2Plugin;
183
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"A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BAA2B,CAAC,EAAE,MAAM;CAC1D,CAAC;AAEF,MAAM,mBAAmB,GAAkB;IACvC,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC;IACvB,eAAe,EAAE;QACb,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACX,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACvB;KACJ;IACD,IAAI,EAAE,8BAA8B,CAAC,aAAa,CAAC,UAAU;IAC7D,OAAO,EAAE;QACL,CAAC,eAAe,CAAC,EAAE,gBAAgB;KACtC;IACD,KAAK,EAAE,kBAAkB;CAC5B,CAAC;AAEF,MAAM,8BAA8B,GAAkB;IAClD,GAAG,mBAAmB;IACtB,IAAI,EAAE,GAAG,8BAA8B,CAAC,WAAW,CAAC,UAAU,SAAS;IACvE,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,gBAAgB,CAAC,OAAO,GAAG;IACvB,GAAG,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC/C,OAAO,EAAE,mBAAmB;IAC5B,aAAa,EAAE,mBAAmB;IAClC,WAAW,EAAE,CAAC,mBAAmB,EAAE,8BAA8B,CAAC;IAClE,aAAa,EAAE,mBAAmB;IAClC,WAAW,EAAE,mBAAmB;CACnC,CAAC;AAKF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Disallow top-level Stylelint allowEmptyInput configuration in authored config files.
4
+ */
5
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
6
+ /** Rule module that disallows `allowEmptyInput` in Stylelint config files. */
7
+ declare const disallowStylelintAllowEmptyInputRule: RuleModuleWithDocs<"disallowConfigOption", readonly []>;
8
+ export default disallowStylelintAllowEmptyInputRule;
9
+ //# sourceMappingURL=disallow-stylelint-allow-empty-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-allow-empty-input.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-allow-empty-input.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,8EAA8E;AAC9E,QAAA,MAAM,oCAAoC,EAAE,kBAAkB,CAC1D,sBAAsB,EACtB,SAAS,EAAE,CA2Bb,CAAC;AAEH,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { createStylelintConfigDisallowedOptionRule } from "../_internal/stylelint-config-disallowed-option-rule.js";
2
+ /** Rule module that disallows `allowEmptyInput` in Stylelint config files. */
3
+ const disallowStylelintAllowEmptyInputRule = createStylelintConfigDisallowedOptionRule({
4
+ meta: {
5
+ deprecated: false,
6
+ docs: {
7
+ configs: [
8
+ "stylelint2.configs.recommended",
9
+ "stylelint2.configs.configuration",
10
+ "stylelint2.configs.all",
11
+ ],
12
+ description: "disallow configuring Stylelint's top-level `allowEmptyInput` option inside authored Stylelint config files.",
13
+ frozen: false,
14
+ recommended: true,
15
+ requiresTypeChecking: false,
16
+ url: "https://nick2bad4u.github.io/eslint-plugin-stylelint-2/docs/rules/disallow-stylelint-allow-empty-input",
17
+ },
18
+ fixable: "code",
19
+ messages: {
20
+ disallowConfigOption: "Remove `allowEmptyInput` from the shared Stylelint config. Empty-input handling should be managed by invocation-level file targeting and task orchestration, not hidden in shared config state.",
21
+ },
22
+ schema: [],
23
+ type: "suggestion",
24
+ },
25
+ name: "disallow-stylelint-allow-empty-input",
26
+ optionName: "allowEmptyInput",
27
+ });
28
+ export default disallowStylelintAllowEmptyInputRule;
29
+ //# sourceMappingURL=disallow-stylelint-allow-empty-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-allow-empty-input.js","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-allow-empty-input.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yCAAyC,EAAE,MAAM,yDAAyD,CAAC;AAEpH,8EAA8E;AAC9E,MAAM,oCAAoC,GAGtC,yCAAyC,CAAC;IAC1C,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,gCAAgC;gBAChC,kCAAkC;gBAClC,wBAAwB;aAC3B;YACD,WAAW,EACP,6GAA6G;YACjH,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,oBAAoB,EAAE,KAAK;YAC3B,GAAG,EAAE,wGAAwG;SAChH;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACN,oBAAoB,EAChB,iMAAiM;SACxM;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,sCAAsC;IAC5C,UAAU,EAAE,iBAAiB;CAChC,CAAC,CAAC;AAEH,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Disallow top-level Stylelint configurationComment configuration in authored config files.
4
+ */
5
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
6
+ /** Rule module that disallows `configurationComment` in Stylelint config files. */
7
+ declare const disallowStylelintConfigurationCommentRule: RuleModuleWithDocs<"disallowConfigOption", readonly []>;
8
+ export default disallowStylelintConfigurationCommentRule;
9
+ //# sourceMappingURL=disallow-stylelint-configuration-comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-configuration-comment.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-configuration-comment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,mFAAmF;AACnF,QAAA,MAAM,yCAAyC,EAAE,kBAAkB,CAC/D,sBAAsB,EACtB,SAAS,EAAE,CA2Bb,CAAC;AAEH,eAAe,yCAAyC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { createStylelintConfigDisallowedOptionRule } from "../_internal/stylelint-config-disallowed-option-rule.js";
2
+ /** Rule module that disallows `configurationComment` in Stylelint config files. */
3
+ const disallowStylelintConfigurationCommentRule = createStylelintConfigDisallowedOptionRule({
4
+ meta: {
5
+ deprecated: false,
6
+ docs: {
7
+ configs: [
8
+ "stylelint2.configs.recommended",
9
+ "stylelint2.configs.configuration",
10
+ "stylelint2.configs.all",
11
+ ],
12
+ description: "disallow configuring Stylelint's top-level `configurationComment` option inside authored Stylelint config files.",
13
+ frozen: false,
14
+ recommended: true,
15
+ requiresTypeChecking: false,
16
+ url: "https://nick2bad4u.github.io/eslint-plugin-stylelint-2/docs/rules/disallow-stylelint-configuration-comment",
17
+ },
18
+ fixable: "code",
19
+ messages: {
20
+ disallowConfigOption: "Remove `configurationComment` from the shared Stylelint config. Configuration comment policy should remain consistent across repositories and not drift through local override markers.",
21
+ },
22
+ schema: [],
23
+ type: "suggestion",
24
+ },
25
+ name: "disallow-stylelint-configuration-comment",
26
+ optionName: "configurationComment",
27
+ });
28
+ export default disallowStylelintConfigurationCommentRule;
29
+ //# sourceMappingURL=disallow-stylelint-configuration-comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-configuration-comment.js","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-configuration-comment.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yCAAyC,EAAE,MAAM,yDAAyD,CAAC;AAEpH,mFAAmF;AACnF,MAAM,yCAAyC,GAG3C,yCAAyC,CAAC;IAC1C,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,gCAAgC;gBAChC,kCAAkC;gBAClC,wBAAwB;aAC3B;YACD,WAAW,EACP,kHAAkH;YACtH,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,oBAAoB,EAAE,KAAK;YAC3B,GAAG,EAAE,4GAA4G;SACpH;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACN,oBAAoB,EAChB,yLAAyL;SAChM;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,sBAAsB;CACrC,CAAC,CAAC;AAEH,eAAe,yCAAyC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Disallow top-level Stylelint customSyntax configuration in authored config files.
4
+ */
5
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
6
+ /**
7
+ * Rule module that disallows top-level `customSyntax` in Stylelint config
8
+ * files.
9
+ */
10
+ declare const disallowStylelintCustomSyntaxRule: RuleModuleWithDocs<"disallowConfigOption", readonly []>;
11
+ export default disallowStylelintCustomSyntaxRule;
12
+ //# sourceMappingURL=disallow-stylelint-custom-syntax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-custom-syntax.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-custom-syntax.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE;;;GAGG;AACH,QAAA,MAAM,iCAAiC,EAAE,kBAAkB,CACvD,sBAAsB,EACtB,SAAS,EAAE,CA2Bb,CAAC;AAEH,eAAe,iCAAiC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { createStylelintConfigDisallowedOptionRule } from "../_internal/stylelint-config-disallowed-option-rule.js";
2
+ /**
3
+ * Rule module that disallows top-level `customSyntax` in Stylelint config
4
+ * files.
5
+ */
6
+ const disallowStylelintCustomSyntaxRule = createStylelintConfigDisallowedOptionRule({
7
+ meta: {
8
+ deprecated: false,
9
+ docs: {
10
+ configs: [
11
+ "stylelint2.configs.recommended",
12
+ "stylelint2.configs.configuration",
13
+ "stylelint2.configs.all",
14
+ ],
15
+ description: "disallow configuring Stylelint's top-level `customSyntax` option inside authored Stylelint config files.",
16
+ frozen: false,
17
+ recommended: true,
18
+ requiresTypeChecking: false,
19
+ url: "https://nick2bad4u.github.io/eslint-plugin-stylelint-2/docs/rules/disallow-stylelint-custom-syntax",
20
+ },
21
+ fixable: "code",
22
+ messages: {
23
+ disallowConfigOption: "Remove top-level `customSyntax` from the shared Stylelint config. Syntax selection should be scoped in `overrides` entries with explicit file globs.",
24
+ },
25
+ schema: [],
26
+ type: "suggestion",
27
+ },
28
+ name: "disallow-stylelint-custom-syntax",
29
+ optionName: "customSyntax",
30
+ });
31
+ export default disallowStylelintCustomSyntaxRule;
32
+ //# sourceMappingURL=disallow-stylelint-custom-syntax.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-custom-syntax.js","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-custom-syntax.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yCAAyC,EAAE,MAAM,yDAAyD,CAAC;AAEpH;;;GAGG;AACH,MAAM,iCAAiC,GAGnC,yCAAyC,CAAC;IAC1C,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,gCAAgC;gBAChC,kCAAkC;gBAClC,wBAAwB;aAC3B;YACD,WAAW,EACP,0GAA0G;YAC9G,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,oBAAoB,EAAE,KAAK;YAC3B,GAAG,EAAE,oGAAoG;SAC5G;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACN,oBAAoB,EAChB,sJAAsJ;SAC7J;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,kCAAkC;IACxC,UAAU,EAAE,cAAc;CAC7B,CAAC,CAAC;AAEH,eAAe,iCAAiC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Disallow top-level Stylelint defaultSeverity configuration in authored config files.
4
+ */
5
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
6
+ /** Rule module that disallows `defaultSeverity` in Stylelint config files. */
7
+ declare const disallowStylelintDefaultSeverityRule: RuleModuleWithDocs<"disallowConfigOption", readonly []>;
8
+ export default disallowStylelintDefaultSeverityRule;
9
+ //# sourceMappingURL=disallow-stylelint-default-severity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-default-severity.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-default-severity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,8EAA8E;AAC9E,QAAA,MAAM,oCAAoC,EAAE,kBAAkB,CAC1D,sBAAsB,EACtB,SAAS,EAAE,CA0Bb,CAAC;AAEH,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { createStylelintConfigDisallowedOptionRule } from "../_internal/stylelint-config-disallowed-option-rule.js";
2
+ /** Rule module that disallows `defaultSeverity` in Stylelint config files. */
3
+ const disallowStylelintDefaultSeverityRule = createStylelintConfigDisallowedOptionRule({
4
+ meta: {
5
+ deprecated: false,
6
+ docs: {
7
+ configs: [
8
+ "stylelint2.configs.configuration",
9
+ "stylelint2.configs.all",
10
+ ],
11
+ description: "disallow configuring Stylelint's top-level `defaultSeverity` option inside authored Stylelint config files.",
12
+ frozen: false,
13
+ recommended: false,
14
+ requiresTypeChecking: false,
15
+ url: "https://nick2bad4u.github.io/eslint-plugin-stylelint-2/docs/rules/disallow-stylelint-default-severity",
16
+ },
17
+ fixable: "code",
18
+ messages: {
19
+ disallowConfigOption: "Remove `defaultSeverity` from the shared Stylelint config. Severity policy should stay explicit per rule and align with the ESLint-level severity contract used by this plugin.",
20
+ },
21
+ schema: [],
22
+ type: "suggestion",
23
+ },
24
+ name: "disallow-stylelint-default-severity",
25
+ optionName: "defaultSeverity",
26
+ });
27
+ export default disallowStylelintDefaultSeverityRule;
28
+ //# sourceMappingURL=disallow-stylelint-default-severity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-default-severity.js","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-default-severity.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yCAAyC,EAAE,MAAM,yDAAyD,CAAC;AAEpH,8EAA8E;AAC9E,MAAM,oCAAoC,GAGtC,yCAAyC,CAAC;IAC1C,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,kCAAkC;gBAClC,wBAAwB;aAC3B;YACD,WAAW,EACP,6GAA6G;YACjH,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,KAAK;YAC3B,GAAG,EAAE,uGAAuG;SAC/G;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACN,oBAAoB,EAChB,iLAAiL;SACxL;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,qCAAqC;IAC3C,UAAU,EAAE,iBAAiB;CAChC,CAAC,CAAC;AAEH,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Disallow duplicate entries in Stylelint top-level extends option.
4
+ */
5
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
6
+ /** Rule module that disallows duplicate top-level Stylelint `extends` entries. */
7
+ declare const disallowStylelintDuplicateExtendsRule: RuleModuleWithDocs<"disallowDuplicates", readonly []>;
8
+ export default disallowStylelintDuplicateExtendsRule;
9
+ //# sourceMappingURL=disallow-stylelint-duplicate-extends.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-duplicate-extends.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-duplicate-extends.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,kFAAkF;AAClF,QAAA,MAAM,qCAAqC,EAAE,kBAAkB,CAC3D,oBAAoB,EACpB,SAAS,EAAE,CA2Bb,CAAC;AAEH,eAAe,qCAAqC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { createStylelintConfigDisallowDuplicateArrayEntriesRule } from "../_internal/stylelint-config-string-array-option-rule.js";
2
+ /** Rule module that disallows duplicate top-level Stylelint `extends` entries. */
3
+ const disallowStylelintDuplicateExtendsRule = createStylelintConfigDisallowDuplicateArrayEntriesRule({
4
+ meta: {
5
+ deprecated: false,
6
+ docs: {
7
+ configs: [
8
+ "stylelint2.configs.recommended",
9
+ "stylelint2.configs.configuration",
10
+ "stylelint2.configs.all",
11
+ ],
12
+ description: "disallow duplicate entries in top-level Stylelint `extends` declarations.",
13
+ frozen: false,
14
+ recommended: true,
15
+ requiresTypeChecking: false,
16
+ url: "https://nick2bad4u.github.io/eslint-plugin-stylelint-2/docs/rules/disallow-stylelint-duplicate-extends",
17
+ },
18
+ fixable: "code",
19
+ messages: {
20
+ disallowDuplicates: "Remove duplicate `extends` entries so shared config layering remains unambiguous.",
21
+ },
22
+ schema: [],
23
+ type: "suggestion",
24
+ },
25
+ name: "disallow-stylelint-duplicate-extends",
26
+ optionName: "extends",
27
+ });
28
+ export default disallowStylelintDuplicateExtendsRule;
29
+ //# sourceMappingURL=disallow-stylelint-duplicate-extends.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-duplicate-extends.js","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-duplicate-extends.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sDAAsD,EAAE,MAAM,2DAA2D,CAAC;AAEnI,kFAAkF;AAClF,MAAM,qCAAqC,GAGvC,sDAAsD,CAAC;IACvD,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,gCAAgC;gBAChC,kCAAkC;gBAClC,wBAAwB;aAC3B;YACD,WAAW,EACP,2EAA2E;YAC/E,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,oBAAoB,EAAE,KAAK;YAC3B,GAAG,EAAE,wGAAwG;SAChH;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACN,kBAAkB,EACd,mFAAmF;SAC1F;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,sCAAsC;IAC5C,UAAU,EAAE,SAAS;CACxB,CAAC,CAAC;AAEH,eAAe,qCAAqC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Disallow duplicate entries in Stylelint top-level plugins option.
4
+ */
5
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
6
+ /** Rule module that disallows duplicate top-level Stylelint `plugins` entries. */
7
+ declare const disallowStylelintDuplicatePluginsRule: RuleModuleWithDocs<"disallowDuplicates", readonly []>;
8
+ export default disallowStylelintDuplicatePluginsRule;
9
+ //# sourceMappingURL=disallow-stylelint-duplicate-plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-duplicate-plugins.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-duplicate-plugins.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,kFAAkF;AAClF,QAAA,MAAM,qCAAqC,EAAE,kBAAkB,CAC3D,oBAAoB,EACpB,SAAS,EAAE,CA2Bb,CAAC;AAEH,eAAe,qCAAqC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { createStylelintConfigDisallowDuplicateArrayEntriesRule } from "../_internal/stylelint-config-string-array-option-rule.js";
2
+ /** Rule module that disallows duplicate top-level Stylelint `plugins` entries. */
3
+ const disallowStylelintDuplicatePluginsRule = createStylelintConfigDisallowDuplicateArrayEntriesRule({
4
+ meta: {
5
+ deprecated: false,
6
+ docs: {
7
+ configs: [
8
+ "stylelint2.configs.recommended",
9
+ "stylelint2.configs.configuration",
10
+ "stylelint2.configs.all",
11
+ ],
12
+ description: "disallow duplicate entries in top-level Stylelint `plugins` declarations.",
13
+ frozen: false,
14
+ recommended: true,
15
+ requiresTypeChecking: false,
16
+ url: "https://nick2bad4u.github.io/eslint-plugin-stylelint-2/docs/rules/disallow-stylelint-duplicate-plugins",
17
+ },
18
+ fixable: "code",
19
+ messages: {
20
+ disallowDuplicates: "Remove duplicate `plugins` entries so plugin activation order remains explicit and clean.",
21
+ },
22
+ schema: [],
23
+ type: "suggestion",
24
+ },
25
+ name: "disallow-stylelint-duplicate-plugins",
26
+ optionName: "plugins",
27
+ });
28
+ export default disallowStylelintDuplicatePluginsRule;
29
+ //# sourceMappingURL=disallow-stylelint-duplicate-plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-duplicate-plugins.js","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-duplicate-plugins.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sDAAsD,EAAE,MAAM,2DAA2D,CAAC;AAEnI,kFAAkF;AAClF,MAAM,qCAAqC,GAGvC,sDAAsD,CAAC;IACvD,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,gCAAgC;gBAChC,kCAAkC;gBAClC,wBAAwB;aAC3B;YACD,WAAW,EACP,2EAA2E;YAC/E,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,oBAAoB,EAAE,KAAK;YAC3B,GAAG,EAAE,wGAAwG;SAChH;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACN,kBAAkB,EACd,2FAA2F;SAClG;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,sCAAsC;IAC5C,UAAU,EAAE,SAAS;CACxB,CAAC,CAAC;AAEH,eAAe,qCAAqC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { RuleModuleWithDocs } from "../_internal/typed-rule.js";
2
+ type MessageIds = "disallowDuplicateRuleOptionValues";
3
+ type Options = readonly [];
4
+ /**
5
+ * Rule module that removes duplicate scalar literals from array-valued
6
+ * Stylelint secondary option properties.
7
+ */
8
+ declare const disallowStylelintDuplicateRuleOptionValuesRule: RuleModuleWithDocs<MessageIds, Options>;
9
+ export default disallowStylelintDuplicateRuleOptionValuesRule;
10
+ //# sourceMappingURL=disallow-stylelint-duplicate-rule-option-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disallow-stylelint-duplicate-rule-option-values.d.ts","sourceRoot":"","sources":["../../src/rules/disallow-stylelint-duplicate-rule-option-values.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAarE,KAAK,UAAU,GAAG,mCAAmC,CAAC;AACtD,KAAK,OAAO,GAAG,SAAS,EAAE,CAAC;AA8L3B;;;GAGG;AACH,QAAA,MAAM,8CAA8C,EAAE,kBAAkB,CACpE,UAAU,EACV,OAAO,CAmET,CAAC;AAEH,eAAe,8CAA8C,CAAC"}