@swisspost/design-system-eslint 0.0.1 → 1.1.0-next.2

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 (191) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +91 -29
  3. package/dist/configs/html/all.d.ts +4 -0
  4. package/dist/configs/html/all.d.ts.map +1 -0
  5. package/dist/configs/html/all.js +46 -0
  6. package/dist/configs/html/all.js.map +1 -0
  7. package/dist/configs/html/base.d.ts +5 -0
  8. package/dist/configs/html/base.d.ts.map +1 -0
  9. package/dist/configs/html/base.js +15 -0
  10. package/dist/configs/html/base.js.map +1 -0
  11. package/dist/configs/html/migrations.d.ts +4 -0
  12. package/dist/configs/html/migrations.d.ts.map +1 -0
  13. package/dist/configs/html/migrations.js +17 -0
  14. package/dist/configs/html/migrations.js.map +1 -0
  15. package/dist/configs/html/recommended.d.ts +4 -0
  16. package/dist/configs/html/recommended.d.ts.map +1 -0
  17. package/dist/configs/html/recommended.js +46 -0
  18. package/dist/configs/html/recommended.js.map +1 -0
  19. package/dist/configs/stencil/recommended.d.ts +4 -0
  20. package/dist/configs/stencil/recommended.d.ts.map +1 -0
  21. package/dist/configs/stencil/recommended.js +25 -0
  22. package/dist/configs/stencil/recommended.js.map +1 -0
  23. package/dist/configs/ts/all.d.ts +4 -0
  24. package/dist/configs/ts/all.d.ts.map +1 -0
  25. package/dist/configs/ts/all.js +46 -0
  26. package/dist/configs/ts/all.js.map +1 -0
  27. package/dist/configs/ts/base.d.ts +5 -0
  28. package/dist/configs/ts/base.d.ts.map +1 -0
  29. package/dist/configs/ts/base.js +16 -0
  30. package/dist/configs/ts/base.js.map +1 -0
  31. package/dist/configs/ts/migrations.d.ts +4 -0
  32. package/dist/configs/ts/migrations.d.ts.map +1 -0
  33. package/dist/configs/ts/migrations.js +18 -0
  34. package/dist/configs/ts/migrations.js.map +1 -0
  35. package/dist/configs/ts/recommended.d.ts +4 -0
  36. package/dist/configs/ts/recommended.d.ts.map +1 -0
  37. package/dist/configs/ts/recommended.js +46 -0
  38. package/dist/configs/ts/recommended.js.map +1 -0
  39. package/dist/index.d.ts +31 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +50 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/migrations.d.ts +4 -0
  44. package/dist/migrations.d.ts.map +1 -0
  45. package/dist/migrations.js +28 -0
  46. package/dist/migrations.js.map +1 -0
  47. package/dist/parsers/html/html-node.d.ts +12 -0
  48. package/dist/parsers/html/html-node.d.ts.map +1 -0
  49. package/dist/parsers/html/html-node.js +3 -0
  50. package/dist/parsers/html/html-node.js.map +1 -0
  51. package/dist/parsers/html/index.d.ts +8 -0
  52. package/dist/parsers/html/index.d.ts.map +1 -0
  53. package/dist/parsers/html/index.js +11 -0
  54. package/dist/parsers/html/index.js.map +1 -0
  55. package/dist/parsers/html/parser.d.ts +29 -0
  56. package/dist/parsers/html/parser.d.ts.map +1 -0
  57. package/dist/parsers/html/parser.js +186 -0
  58. package/dist/parsers/html/parser.js.map +1 -0
  59. package/dist/rules/html/index.d.ts +2 -0
  60. package/dist/rules/html/index.d.ts.map +1 -0
  61. package/dist/rules/html/index.js +5 -0
  62. package/dist/rules/html/index.js.map +1 -0
  63. package/dist/rules/html/migrations/index.d.ts +20 -0
  64. package/dist/rules/html/migrations/index.d.ts.map +1 -0
  65. package/dist/rules/html/migrations/index.js +82 -0
  66. package/dist/rules/html/migrations/index.js.map +1 -0
  67. package/dist/rules/html/migrations/no-deprecated-alert.d.ts +4 -0
  68. package/dist/rules/html/migrations/no-deprecated-alert.d.ts.map +1 -0
  69. package/dist/rules/html/migrations/no-deprecated-alert.js +44 -0
  70. package/dist/rules/html/migrations/no-deprecated-alert.js.map +1 -0
  71. package/dist/rules/html/migrations/no-deprecated-breakpoints.d.ts +7 -0
  72. package/dist/rules/html/migrations/no-deprecated-breakpoints.d.ts.map +1 -0
  73. package/dist/rules/html/migrations/no-deprecated-breakpoints.js +179 -0
  74. package/dist/rules/html/migrations/no-deprecated-breakpoints.js.map +1 -0
  75. package/dist/rules/html/migrations/no-deprecated-btn-rg.d.ts +4 -0
  76. package/dist/rules/html/migrations/no-deprecated-btn-rg.d.ts.map +1 -0
  77. package/dist/rules/html/migrations/no-deprecated-btn-rg.js +17 -0
  78. package/dist/rules/html/migrations/no-deprecated-btn-rg.js.map +1 -0
  79. package/dist/rules/html/migrations/no-deprecated-chip-filter.d.ts +5 -0
  80. package/dist/rules/html/migrations/no-deprecated-chip-filter.d.ts.map +1 -0
  81. package/dist/rules/html/migrations/no-deprecated-chip-filter.js +19 -0
  82. package/dist/rules/html/migrations/no-deprecated-chip-filter.js.map +1 -0
  83. package/dist/rules/html/migrations/no-deprecated-elevation-utilities.d.ts +5 -0
  84. package/dist/rules/html/migrations/no-deprecated-elevation-utilities.d.ts.map +1 -0
  85. package/dist/rules/html/migrations/no-deprecated-elevation-utilities.js +23 -0
  86. package/dist/rules/html/migrations/no-deprecated-elevation-utilities.js.map +1 -0
  87. package/dist/rules/html/migrations/no-deprecated-font-curves.d.ts +5 -0
  88. package/dist/rules/html/migrations/no-deprecated-font-curves.d.ts.map +1 -0
  89. package/dist/rules/html/migrations/no-deprecated-font-curves.js +25 -0
  90. package/dist/rules/html/migrations/no-deprecated-font-curves.js.map +1 -0
  91. package/dist/rules/html/migrations/no-deprecated-font-sizes.d.ts +10 -0
  92. package/dist/rules/html/migrations/no-deprecated-font-sizes.d.ts.map +1 -0
  93. package/dist/rules/html/migrations/no-deprecated-font-sizes.js +78 -0
  94. package/dist/rules/html/migrations/no-deprecated-font-sizes.js.map +1 -0
  95. package/dist/rules/html/migrations/no-deprecated-font-weight.d.ts +4 -0
  96. package/dist/rules/html/migrations/no-deprecated-font-weight.d.ts.map +1 -0
  97. package/dist/rules/html/migrations/no-deprecated-font-weight.js +52 -0
  98. package/dist/rules/html/migrations/no-deprecated-font-weight.js.map +1 -0
  99. package/dist/rules/html/migrations/no-deprecated-gap-utilities.d.ts +7 -0
  100. package/dist/rules/html/migrations/no-deprecated-gap-utilities.d.ts.map +1 -0
  101. package/dist/rules/html/migrations/no-deprecated-gap-utilities.js +22 -0
  102. package/dist/rules/html/migrations/no-deprecated-gap-utilities.js.map +1 -0
  103. package/dist/rules/html/migrations/no-deprecated-gutter-utilities.d.ts +7 -0
  104. package/dist/rules/html/migrations/no-deprecated-gutter-utilities.d.ts.map +1 -0
  105. package/dist/rules/html/migrations/no-deprecated-gutter-utilities.js +22 -0
  106. package/dist/rules/html/migrations/no-deprecated-gutter-utilities.js.map +1 -0
  107. package/dist/rules/html/migrations/no-deprecated-h-clearfix.d.ts +5 -0
  108. package/dist/rules/html/migrations/no-deprecated-h-clearfix.d.ts.map +1 -0
  109. package/dist/rules/html/migrations/no-deprecated-h-clearfix.js +19 -0
  110. package/dist/rules/html/migrations/no-deprecated-h-clearfix.js.map +1 -0
  111. package/dist/rules/html/migrations/no-deprecated-h-visuallyhidden.d.ts +5 -0
  112. package/dist/rules/html/migrations/no-deprecated-h-visuallyhidden.d.ts.map +1 -0
  113. package/dist/rules/html/migrations/no-deprecated-h-visuallyhidden.js +19 -0
  114. package/dist/rules/html/migrations/no-deprecated-h-visuallyhidden.js.map +1 -0
  115. package/dist/rules/html/migrations/no-deprecated-loader.d.ts +5 -0
  116. package/dist/rules/html/migrations/no-deprecated-loader.d.ts.map +1 -0
  117. package/dist/rules/html/migrations/no-deprecated-loader.js +29 -0
  118. package/dist/rules/html/migrations/no-deprecated-loader.js.map +1 -0
  119. package/dist/rules/html/migrations/no-deprecated-position-helpers.d.ts +5 -0
  120. package/dist/rules/html/migrations/no-deprecated-position-helpers.d.ts.map +1 -0
  121. package/dist/rules/html/migrations/no-deprecated-position-helpers.js +22 -0
  122. package/dist/rules/html/migrations/no-deprecated-position-helpers.js.map +1 -0
  123. package/dist/rules/html/migrations/no-deprecated-shadow-utilities.d.ts +5 -0
  124. package/dist/rules/html/migrations/no-deprecated-shadow-utilities.d.ts.map +1 -0
  125. package/dist/rules/html/migrations/no-deprecated-shadow-utilities.js +22 -0
  126. package/dist/rules/html/migrations/no-deprecated-shadow-utilities.js.map +1 -0
  127. package/dist/rules/html/migrations/no-deprecated-sizing-utilities.d.ts +7 -0
  128. package/dist/rules/html/migrations/no-deprecated-sizing-utilities.d.ts.map +1 -0
  129. package/dist/rules/html/migrations/no-deprecated-sizing-utilities.js +49 -0
  130. package/dist/rules/html/migrations/no-deprecated-sizing-utilities.js.map +1 -0
  131. package/dist/rules/html/migrations/no-deprecated-spacing-utilities.d.ts +7 -0
  132. package/dist/rules/html/migrations/no-deprecated-spacing-utilities.d.ts.map +1 -0
  133. package/dist/rules/html/migrations/no-deprecated-spacing-utilities.js +56 -0
  134. package/dist/rules/html/migrations/no-deprecated-spacing-utilities.js.map +1 -0
  135. package/dist/rules/html/migrations/no-form-text.d.ts +4 -0
  136. package/dist/rules/html/migrations/no-form-text.d.ts.map +1 -0
  137. package/dist/rules/html/migrations/no-form-text.js +40 -0
  138. package/dist/rules/html/migrations/no-form-text.js.map +1 -0
  139. package/dist/rules/html/migrations/no-unnumbered-border-radius.d.ts +5 -0
  140. package/dist/rules/html/migrations/no-unnumbered-border-radius.d.ts.map +1 -0
  141. package/dist/rules/html/migrations/no-unnumbered-border-radius.js +23 -0
  142. package/dist/rules/html/migrations/no-unnumbered-border-radius.js.map +1 -0
  143. package/dist/rules/index.d.ts +4 -0
  144. package/dist/rules/index.d.ts.map +1 -0
  145. package/dist/rules/index.js +41 -0
  146. package/dist/rules/index.js.map +1 -0
  147. package/dist/rules/stencil-strict-props-initialization.d.ts +4 -0
  148. package/dist/rules/stencil-strict-props-initialization.d.ts.map +1 -0
  149. package/dist/rules/stencil-strict-props-initialization.js +57 -0
  150. package/dist/rules/stencil-strict-props-initialization.js.map +1 -0
  151. package/dist/rules/ts/index.d.ts +2 -0
  152. package/dist/rules/ts/index.d.ts.map +1 -0
  153. package/dist/rules/ts/index.js +5 -0
  154. package/dist/rules/ts/index.js.map +1 -0
  155. package/dist/rules/ts/migrations/index.d.ts +2 -0
  156. package/dist/rules/ts/migrations/index.d.ts.map +1 -0
  157. package/dist/rules/ts/migrations/index.js +5 -0
  158. package/dist/rules/ts/migrations/index.js.map +1 -0
  159. package/dist/utils/common-data.d.ts +2 -0
  160. package/dist/utils/common-data.d.ts.map +1 -0
  161. package/dist/utils/common-data.js +11 -0
  162. package/dist/utils/common-data.js.map +1 -0
  163. package/dist/utils/create-class-update-rule.d.ts +15 -0
  164. package/dist/utils/create-class-update-rule.d.ts.map +1 -0
  165. package/dist/utils/create-class-update-rule.js +43 -0
  166. package/dist/utils/create-class-update-rule.js.map +1 -0
  167. package/dist/utils/create-rule.d.ts +7 -0
  168. package/dist/utils/create-rule.d.ts.map +1 -0
  169. package/dist/utils/create-rule.js +28 -0
  170. package/dist/utils/create-rule.js.map +1 -0
  171. package/dist/utils/generate-messages.d.ts +5 -0
  172. package/dist/utils/generate-messages.d.ts.map +1 -0
  173. package/dist/utils/generate-messages.js +9 -0
  174. package/dist/utils/generate-messages.js.map +1 -0
  175. package/dist/utils/generate-mutations.d.ts +5 -0
  176. package/dist/utils/generate-mutations.d.ts.map +1 -0
  177. package/dist/utils/generate-mutations.js +9 -0
  178. package/dist/utils/generate-mutations.js.map +1 -0
  179. package/dist/utils/get-all-rules.d.ts +3 -0
  180. package/dist/utils/get-all-rules.d.ts.map +1 -0
  181. package/dist/utils/get-all-rules.js +12 -0
  182. package/dist/utils/get-all-rules.js.map +1 -0
  183. package/dist/utils/get-recommended-rules.d.ts +4 -0
  184. package/dist/utils/get-recommended-rules.d.ts.map +1 -0
  185. package/dist/utils/get-recommended-rules.js +13 -0
  186. package/dist/utils/get-recommended-rules.js.map +1 -0
  187. package/dist/utils/two-phases-classes-update.d.ts +24 -0
  188. package/dist/utils/two-phases-classes-update.d.ts.map +1 -0
  189. package/dist/utils/two-phases-classes-update.js +83 -0
  190. package/dist/utils/two-phases-classes-update.js.map +1 -0
  191. package/package.json +69 -7
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.name = void 0;
4
+ const create_rule_1 = require("../../../utils/create-rule");
5
+ exports.name = 'no-deprecated-font-weights';
6
+ exports.default = (0, create_rule_1.createRule)({
7
+ name: exports.name,
8
+ meta: {
9
+ docs: {
10
+ dir: 'html',
11
+ description: 'Flags "bold" and "regular" classes and replaces them with "fw-bold" and "fw-regular".',
12
+ },
13
+ messages: {
14
+ deprecatedRegular: 'The "regular" class has been deleted. Please replace it with "fw-regular".',
15
+ deprecatedBold: 'The "bold" class has been deleted. Please replace it with "fw-bold".',
16
+ },
17
+ type: 'problem',
18
+ fixable: 'code',
19
+ schema: [],
20
+ },
21
+ defaultOptions: [],
22
+ create(context) {
23
+ return {
24
+ tag(node) {
25
+ if (node.name) {
26
+ const $node = node.toCheerio();
27
+ if ($node.hasClass('regular')) {
28
+ context.report({
29
+ messageId: 'deprecatedRegular',
30
+ loc: node.loc,
31
+ fix(fixer) {
32
+ const fixedNode = $node.removeClass('regular').addClass('fw-regular');
33
+ return fixer.replaceTextRange(node.range, fixedNode.toString());
34
+ },
35
+ });
36
+ }
37
+ if ($node.hasClass('bold')) {
38
+ context.report({
39
+ messageId: 'deprecatedBold',
40
+ loc: node.loc,
41
+ fix(fixer) {
42
+ const fixedNode = $node.removeClass('bold').addClass('fw-bold');
43
+ return fixer.replaceTextRange(node.range, fixedNode.toString());
44
+ },
45
+ });
46
+ }
47
+ }
48
+ },
49
+ };
50
+ },
51
+ });
52
+ //# sourceMappingURL=no-deprecated-font-weight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-font-weight.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-font-weight.ts"],"names":[],"mappings":";;;AAAA,4DAAwD;AAG3C,QAAA,IAAI,GAAG,4BAA4B,CAAC;AAEjD,kBAAe,IAAA,wBAAU,EAAC;IACxB,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,GAAG,EAAE,MAAM;YACX,WAAW,EACT,uFAAuF;SAC1F;QACD,QAAQ,EAAE;YACR,iBAAiB,EACf,4EAA4E;YAC9E,cAAc,EAAE,sEAAsE;SACvF;QACD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,GAAG,CAAC,IAAc;gBAChB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;oBACd,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;oBAE/B,IAAI,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;wBAC9B,OAAO,CAAC,MAAM,CAAC;4BACb,SAAS,EAAE,mBAAmB;4BAC9B,GAAG,EAAE,IAAI,CAAC,GAAG;4BACb,GAAG,CAAC,KAAK;gCACP,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;gCACtE,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;4BAClE,CAAC;yBACF,CAAC,CAAC;oBACL,CAAC;oBAED,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;wBAC3B,OAAO,CAAC,MAAM,CAAC;4BACb,SAAS,EAAE,gBAAgB;4BAC3B,GAAG,EAAE,IAAI,CAAC,GAAG;4BACb,GAAG,CAAC,KAAK;gCACP,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;gCAChE,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;4BAClE,CAAC;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TwoPhasesData } from '../../../utils/two-phases-classes-update';
2
+ export declare const data: TwoPhasesData;
3
+ export declare const rules: {
4
+ name: string;
5
+ rule: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
6
+ }[];
7
+ //# sourceMappingURL=no-deprecated-gap-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-gap-utilities.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-gap-utilities.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,MAAM,0CAA0C,CAAC;AAKlD,eAAO,MAAM,IAAI,EAAE,aAIlB,CAAC;AAEF,eAAO,MAAM,KAAK;;;GAchB,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rules = exports.data = void 0;
4
+ const common_data_1 = require("../../../utils/common-data");
5
+ const two_phases_classes_update_1 = require("../../../utils/two-phases-classes-update");
6
+ // Class names
7
+ const classNames = ['gap-', 'column-gap-', 'row-gap-'];
8
+ exports.data = (0, two_phases_classes_update_1.setUpClassesMutations)((0, two_phases_classes_update_1.arrayToMap)(classNames), common_data_1.bootstrapSizeMap, 'deprecatedGapUtilities');
9
+ exports.rules = (0, two_phases_classes_update_1.createTwoPhasesClassUpdateRule)({
10
+ name: 'no-deprecated-gap-utilities',
11
+ phases: [
12
+ {
13
+ ...exports.data.phases[0],
14
+ description: 'Flags deprecated bootstrap gap utility classes and replaces them with final ones with a temporary name (phase 1).',
15
+ },
16
+ {
17
+ ...exports.data.phases[1],
18
+ description: 'Flags deprecated bootstrap gap utility classes and replaces the temporary class names with the final ones.',
19
+ },
20
+ ],
21
+ });
22
+ //# sourceMappingURL=no-deprecated-gap-utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-gap-utilities.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-gap-utilities.ts"],"names":[],"mappings":";;;AAAA,4DAA8D;AAC9D,wFAKkD;AAElD,cAAc;AACd,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;AAE1C,QAAA,IAAI,GAAkB,IAAA,iDAAqB,EACtD,IAAA,sCAAU,EAAC,UAAU,CAAC,EACtB,8BAAgB,EAChB,wBAAwB,CACzB,CAAC;AAEW,QAAA,KAAK,GAAG,IAAA,0DAA8B,EAAC;IAClD,IAAI,EAAE,6BAA6B;IACnC,MAAM,EAAE;QACN;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,mHAAmH;SACtH;QACD;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,4GAA4G;SAC/G;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TwoPhasesData } from '../../../utils/two-phases-classes-update';
2
+ export declare const data: TwoPhasesData;
3
+ export declare const rules: {
4
+ name: string;
5
+ rule: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
6
+ }[];
7
+ //# sourceMappingURL=no-deprecated-gutter-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-gutter-utilities.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-gutter-utilities.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,MAAM,0CAA0C,CAAC;AAKlD,eAAO,MAAM,IAAI,EAAE,aAIlB,CAAC;AAEF,eAAO,MAAM,KAAK;;;GAchB,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rules = exports.data = void 0;
4
+ const common_data_1 = require("../../../utils/common-data");
5
+ const two_phases_classes_update_1 = require("../../../utils/two-phases-classes-update");
6
+ // Class names
7
+ const classNames = ['g-', 'gx-', 'gy-'];
8
+ exports.data = (0, two_phases_classes_update_1.setUpClassesMutations)((0, two_phases_classes_update_1.arrayToMap)(classNames), common_data_1.bootstrapSizeMap, 'deprecatedGutterUtilities');
9
+ exports.rules = (0, two_phases_classes_update_1.createTwoPhasesClassUpdateRule)({
10
+ name: 'no-deprecated-gutter-utilities',
11
+ phases: [
12
+ {
13
+ ...exports.data.phases[0],
14
+ description: 'Flags deprecated bootstrap gutter utility classes and replaces them with final ones with a temporary name (phase 1).',
15
+ },
16
+ {
17
+ ...exports.data.phases[1],
18
+ description: 'Flags deprecated bootstrap gutter utility classes and replaces the temporary class names with the final ones.',
19
+ },
20
+ ],
21
+ });
22
+ //# sourceMappingURL=no-deprecated-gutter-utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-gutter-utilities.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-gutter-utilities.ts"],"names":[],"mappings":";;;AAAA,4DAA8D;AAC9D,wFAKkD;AAElD,cAAc;AACd,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAE3B,QAAA,IAAI,GAAkB,IAAA,iDAAqB,EACtD,IAAA,sCAAU,EAAC,UAAU,CAAC,EACtB,8BAAgB,EAChB,2BAA2B,CAC5B,CAAC;AAEW,QAAA,KAAK,GAAG,IAAA,0DAA8B,EAAC;IAClD,IAAI,EAAE,gCAAgC;IACtC,MAAM,EAAE;QACN;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,sHAAsH;SACzH;QACD;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,+GAA+G;SAClH;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const name = "no-deprecated-h-clearfix";
2
+ export declare const messageId = "deprecatedHClearfix";
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=no-deprecated-h-clearfix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-h-clearfix.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-h-clearfix.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,6BAA6B,CAAC;AAC/C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAG/C,wBAUG"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messageId = exports.name = void 0;
4
+ const create_class_update_rule_1 = require("../../../utils/create-class-update-rule");
5
+ exports.name = 'no-deprecated-h-clearfix';
6
+ exports.messageId = 'deprecatedHClearfix';
7
+ // Type: RuleModule<"uppercase", ...>
8
+ exports.default = (0, create_class_update_rule_1.createClassUpdateRule)({
9
+ name: exports.name,
10
+ type: 'problem',
11
+ description: 'Flags deprecated "h-clearfix" class and replaces it with "clearfix".',
12
+ messages: {
13
+ [exports.messageId]: 'The "h-clearfix" class is deprecated. Please replace it with "clearfix".',
14
+ },
15
+ mutations: {
16
+ [exports.messageId]: ['h-clearfix', 'clearfix'],
17
+ },
18
+ });
19
+ //# sourceMappingURL=no-deprecated-h-clearfix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-h-clearfix.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-h-clearfix.ts"],"names":[],"mappings":";;;AAAA,sFAAgF;AAEnE,QAAA,IAAI,GAAG,0BAA0B,CAAC;AAClC,QAAA,SAAS,GAAG,qBAAqB,CAAC;AAE/C,qCAAqC;AACrC,kBAAe,IAAA,gDAAqB,EAAC;IACnC,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sEAAsE;IACnF,QAAQ,EAAE;QACR,CAAC,iBAAS,CAAC,EAAE,0EAA0E;KACxF;IACD,SAAS,EAAE;QACT,CAAC,iBAAS,CAAC,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const name = "no-deprecated-h-visuallyhidden";
2
+ export declare const messageId = "deprecatedHVisuallyhidden";
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=no-deprecated-h-visuallyhidden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-h-visuallyhidden.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-h-visuallyhidden.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,mCAAmC,CAAC;AACrD,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAGrD,wBAWG"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messageId = exports.name = void 0;
4
+ const create_class_update_rule_1 = require("../../../utils/create-class-update-rule");
5
+ exports.name = 'no-deprecated-h-visuallyhidden';
6
+ exports.messageId = 'deprecatedHVisuallyhidden';
7
+ // Type: RuleModule<"uppercase", ...>
8
+ exports.default = (0, create_class_update_rule_1.createClassUpdateRule)({
9
+ name: exports.name,
10
+ type: 'problem',
11
+ description: 'Flags deprecated "h-visuallyhidden" class and replaces it with "visually-hidden".',
12
+ messages: {
13
+ [exports.messageId]: 'The "h-visuallyhidden" class is deprecated. Please replace it with "visually-hidden".',
14
+ },
15
+ mutations: {
16
+ [exports.messageId]: ['h-visuallyhidden', 'visually-hidden'],
17
+ },
18
+ });
19
+ //# sourceMappingURL=no-deprecated-h-visuallyhidden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-h-visuallyhidden.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-h-visuallyhidden.ts"],"names":[],"mappings":";;;AAAA,sFAAgF;AAEnE,QAAA,IAAI,GAAG,gCAAgC,CAAC;AACxC,QAAA,SAAS,GAAG,2BAA2B,CAAC;AAErD,qCAAqC;AACrC,kBAAe,IAAA,gDAAqB,EAAC;IACnC,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,mFAAmF;IAChG,QAAQ,EAAE;QACR,CAAC,iBAAS,CAAC,EACT,uFAAuF;KAC1F;IACD,SAAS,EAAE;QACT,CAAC,iBAAS,CAAC,EAAE,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;KACrD;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const name = "no-deprecated-loader";
2
+ export declare const data: Record<string, [string, string]>;
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=no-deprecated-loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-loader.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-loader.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,yBAAyB,CAAC;AAgB3C,eAAO,MAAM,IAAI,kCAA6C,CAAC;;AAE/D,wBAMG"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.data = exports.name = void 0;
4
+ const create_class_update_rule_1 = require("../../../utils/create-class-update-rule");
5
+ const generate_mutations_1 = require("../../../utils/generate-mutations");
6
+ const generate_messages_1 = require("../../../utils/generate-messages");
7
+ exports.name = 'no-deprecated-loader';
8
+ const classesMap = [
9
+ { old: 'loader', new: 'spinner' },
10
+ { old: 'loading-modal', new: 'spinner-modal' },
11
+ { old: 'loader-xs', new: 'spinner-16' },
12
+ { old: 'loader-sm', new: 'spinner-40' },
13
+ { old: 'loader-12', new: 'spinner-12' },
14
+ { old: 'loader-16', new: 'spinner-16' },
15
+ { old: 'loader-24', new: 'spinner-24' },
16
+ { old: 'loader-32', new: 'spinner-32' },
17
+ { old: 'loader-40', new: 'spinner-40' },
18
+ { old: 'loader-48', new: 'spinner-48' },
19
+ { old: 'loader-80', new: 'spinner-80' },
20
+ ];
21
+ exports.data = (0, generate_mutations_1.generateReplacedClassMutations)(classesMap);
22
+ exports.default = (0, create_class_update_rule_1.createClassUpdateRule)({
23
+ name: exports.name,
24
+ type: 'problem',
25
+ description: 'Flags deprecated "loader-*" classes and replace them with "spinner-*" classes.',
26
+ messages: (0, generate_messages_1.generateReplacedClassMessages)(classesMap),
27
+ mutations: exports.data,
28
+ });
29
+ //# sourceMappingURL=no-deprecated-loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-loader.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-loader.ts"],"names":[],"mappings":";;;AAAA,sFAAgF;AAChF,0EAAmF;AACnF,wEAAiF;AAEpE,QAAA,IAAI,GAAG,sBAAsB,CAAC;AAE3C,MAAM,UAAU,GAAG;IACjB,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IACjC,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,EAAE;IAC9C,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE;CACxC,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,mDAA8B,EAAC,UAAU,CAAC,CAAC;AAE/D,kBAAe,IAAA,gDAAqB,EAAC;IACnC,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,gFAAgF;IAC7F,QAAQ,EAAE,IAAA,iDAA6B,EAAC,UAAU,CAAC;IACnD,SAAS,EAAE,YAAI;CAChB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const name = "no-deprecated-position-helpers";
2
+ export declare const data: Record<string, [string, string]>;
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=no-deprecated-position-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-position-helpers.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-position-helpers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,mCAAmC,CAAC;AASrD,eAAO,MAAM,IAAI,kCAA6C,CAAC;;AAE/D,wBAOG"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.data = exports.name = void 0;
4
+ const create_class_update_rule_1 = require("../../../utils/create-class-update-rule");
5
+ const generate_messages_1 = require("../../../utils/generate-messages");
6
+ const generate_mutations_1 = require("../../../utils/generate-mutations");
7
+ exports.name = 'no-deprecated-position-helpers';
8
+ const classesMap = [
9
+ { old: 'fixed-top', new: 'position-fixed top-0 start-0 end-0 z-fixed' },
10
+ { old: 'fixed-bottom', new: 'position-fixed bottom-0 start-0 end-0 z-fixed' },
11
+ { old: 'sticky-top', new: 'position-sticky top-0 z-header' },
12
+ { old: 'sticky-bottom', new: 'position-sticky bottom-0 z-header' },
13
+ ];
14
+ exports.data = (0, generate_mutations_1.generateReplacedClassMutations)(classesMap);
15
+ exports.default = (0, create_class_update_rule_1.createClassUpdateRule)({
16
+ name: exports.name,
17
+ type: 'problem',
18
+ description: 'Flags deprecated bootstrap position helpers "fixed-{top|bottom}" and "sticky-{top|bottom}" classes and replace them with a combination of other utility classes.',
19
+ messages: (0, generate_messages_1.generateReplacedClassMessages)(classesMap),
20
+ mutations: exports.data,
21
+ });
22
+ //# sourceMappingURL=no-deprecated-position-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-position-helpers.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-position-helpers.ts"],"names":[],"mappings":";;;AAAA,sFAAgF;AAChF,wEAAiF;AACjF,0EAAmF;AAEtE,QAAA,IAAI,GAAG,gCAAgC,CAAC;AAErD,MAAM,UAAU,GAAG;IACjB,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,4CAA4C,EAAE;IACvE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,+CAA+C,EAAE;IAC7E,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,gCAAgC,EAAE;IAC5D,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,mCAAmC,EAAE;CACnE,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,mDAA8B,EAAC,UAAU,CAAC,CAAC;AAE/D,kBAAe,IAAA,gDAAqB,EAAC;IACnC,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE,SAAS;IACf,WAAW,EACT,kKAAkK;IACpK,QAAQ,EAAE,IAAA,iDAA6B,EAAC,UAAU,CAAC;IACnD,SAAS,EAAE,YAAI;CAChB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const name = "no-deprecated-shadow-utilities";
2
+ export declare const data: Record<string, [string, string]>;
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=no-deprecated-shadow-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-shadow-utilities.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-shadow-utilities.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,mCAAmC,CAAC;AASrD,eAAO,MAAM,IAAI,kCAA6C,CAAC;;AAE/D,wBAOG"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.data = exports.name = void 0;
4
+ const create_class_update_rule_1 = require("../../../utils/create-class-update-rule");
5
+ const generate_messages_1 = require("../../../utils/generate-messages");
6
+ const generate_mutations_1 = require("../../../utils/generate-mutations");
7
+ exports.name = 'no-deprecated-shadow-utilities';
8
+ const classesMap = [
9
+ { old: 'shadow-none', new: 'elevation-none' },
10
+ { old: 'shadow-sm', new: 'elevation-200' },
11
+ { old: 'shadow', new: 'elevation-400' },
12
+ { old: 'shadow-lg', new: 'elevation-500' },
13
+ ];
14
+ exports.data = (0, generate_mutations_1.generateReplacedClassMutations)(classesMap);
15
+ exports.default = (0, create_class_update_rule_1.createClassUpdateRule)({
16
+ name: exports.name,
17
+ type: 'problem',
18
+ description: 'Flags deprecated "shadow" and "shadow-{none|sm|lg}" classes and replace them with equivalent elevation classes.',
19
+ messages: (0, generate_messages_1.generateReplacedClassMessages)(classesMap),
20
+ mutations: exports.data,
21
+ });
22
+ //# sourceMappingURL=no-deprecated-shadow-utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-shadow-utilities.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-shadow-utilities.ts"],"names":[],"mappings":";;;AAAA,sFAAgF;AAChF,wEAAiF;AACjF,0EAAmF;AAEtE,QAAA,IAAI,GAAG,gCAAgC,CAAC;AAErD,MAAM,UAAU,GAAG;IACjB,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,gBAAgB,EAAE;IAC7C,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,eAAe,EAAE;IAC1C,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,eAAe,EAAE;IACvC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,eAAe,EAAE;CAC3C,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,mDAA8B,EAAC,UAAU,CAAC,CAAC;AAE/D,kBAAe,IAAA,gDAAqB,EAAC;IACnC,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE,SAAS;IACf,WAAW,EACT,iHAAiH;IACnH,QAAQ,EAAE,IAAA,iDAA6B,EAAC,UAAU,CAAC;IACnD,SAAS,EAAE,YAAI;CAChB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TwoPhasesData } from '../../../utils/two-phases-classes-update';
2
+ export declare const data: TwoPhasesData;
3
+ export declare const rules: {
4
+ name: string;
5
+ rule: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
6
+ }[];
7
+ //# sourceMappingURL=no-deprecated-sizing-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-sizing-utilities.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-sizing-utilities.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACd,MAAM,0CAA0C,CAAC;AAiClD,eAAO,MAAM,IAAI,EAAE,aAIlB,CAAC;AAEF,eAAO,MAAM,KAAK;;;GAchB,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rules = exports.data = void 0;
4
+ const common_data_1 = require("../../../utils/common-data");
5
+ const two_phases_classes_update_1 = require("../../../utils/two-phases-classes-update");
6
+ // Class names
7
+ const classNamesMap = {
8
+ 'w-': 'w-',
9
+ 'mw-': 'max-w-',
10
+ 'h-': 'w-',
11
+ 'mh-': 'max-h-',
12
+ };
13
+ // Previous values mapped to the new values
14
+ const classValuesMap = {
15
+ ...common_data_1.bootstrapSizeMap,
16
+ 'hair': 1,
17
+ 'line': 2,
18
+ 'micro': 4,
19
+ 'mini': 8,
20
+ 'small-regular': 12,
21
+ 'regular': 16,
22
+ 'small-large': 24,
23
+ 'large': 24,
24
+ 'big': 32,
25
+ 'bigger-big': 40,
26
+ 'small-huge': 48,
27
+ 'huge': 56,
28
+ 'small-giant': 78,
29
+ 'giant': 80,
30
+ '25': 'quarter',
31
+ '50': 'half',
32
+ '75': 'three-quarters',
33
+ '100': 'full',
34
+ };
35
+ exports.data = (0, two_phases_classes_update_1.setUpClassesMutations)(classNamesMap, classValuesMap, 'deprecatedSizingUtilities');
36
+ exports.rules = (0, two_phases_classes_update_1.createTwoPhasesClassUpdateRule)({
37
+ name: 'no-deprecated-sizing-utilities',
38
+ phases: [
39
+ {
40
+ ...exports.data.phases[0],
41
+ description: 'Flags deprecated sizing utility classes and replaces them with the new ones with a temporary name (phase 1).',
42
+ },
43
+ {
44
+ ...exports.data.phases[1],
45
+ description: 'Flags deprecated sizing utility classes and replaces the temporary class names with the final ones.',
46
+ },
47
+ ],
48
+ });
49
+ //# sourceMappingURL=no-deprecated-sizing-utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-sizing-utilities.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-sizing-utilities.ts"],"names":[],"mappings":";;;AAAA,4DAA8D;AAC9D,wFAIkD;AAElD,cAAc;AACd,MAAM,aAAa,GAA2B;IAC5C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,2CAA2C;AAC3C,MAAM,cAAc,GAAoC;IACtD,GAAG,8BAAgB;IACnB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE;IACb,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,EAAE;IAChB,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,MAAM;CACd,CAAC;AAEW,QAAA,IAAI,GAAkB,IAAA,iDAAqB,EACtD,aAAa,EACb,cAAc,EACd,2BAA2B,CAC5B,CAAC;AAEW,QAAA,KAAK,GAAG,IAAA,0DAA8B,EAAC;IAClD,IAAI,EAAE,gCAAgC;IACtC,MAAM,EAAE;QACN;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,8GAA8G;SACjH;QACD;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,qGAAqG;SACxG;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TwoPhasesData } from '../../../utils/two-phases-classes-update';
2
+ export declare const data: TwoPhasesData;
3
+ export declare const rules: {
4
+ name: string;
5
+ rule: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
6
+ }[];
7
+ //# sourceMappingURL=no-deprecated-spacing-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-spacing-utilities.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-spacing-utilities.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,MAAM,0CAA0C,CAAC;AAwClD,eAAO,MAAM,IAAI,EAAE,aAIlB,CAAC;AAEF,eAAO,MAAM,KAAK;;;GAchB,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rules = exports.data = void 0;
4
+ const common_data_1 = require("../../../utils/common-data");
5
+ const two_phases_classes_update_1 = require("../../../utils/two-phases-classes-update");
6
+ // Class names
7
+ const classNames = [
8
+ 'm-',
9
+ 'mx-',
10
+ 'my-',
11
+ 'mt-',
12
+ 'mb-',
13
+ 'ms-',
14
+ 'me-',
15
+ 'p-',
16
+ 'px-',
17
+ 'py-',
18
+ 'pt-',
19
+ 'pb-',
20
+ 'ps-',
21
+ 'pe-',
22
+ ];
23
+ // Previous values mapped to the new values
24
+ const classValuesMap = {
25
+ ...common_data_1.bootstrapSizeMap,
26
+ 'hair': 1,
27
+ 'line': 2,
28
+ 'micro': 4,
29
+ 'mini': 8,
30
+ 'small-regular': 12,
31
+ 'regular': 16,
32
+ 'small-large': 24,
33
+ 'large': 24,
34
+ 'big': 32,
35
+ 'bigger-big': 40,
36
+ 'small-huge': 48,
37
+ 'huge': 56,
38
+ 'small-giant': 78,
39
+ 'giant': 80,
40
+ 'bigger-giant': 80,
41
+ };
42
+ exports.data = (0, two_phases_classes_update_1.setUpClassesMutations)((0, two_phases_classes_update_1.arrayToMap)(classNames), classValuesMap, 'deprecatedSpacingUtilities');
43
+ exports.rules = (0, two_phases_classes_update_1.createTwoPhasesClassUpdateRule)({
44
+ name: 'no-deprecated-spacing-utilities',
45
+ phases: [
46
+ {
47
+ ...exports.data.phases[0],
48
+ description: 'Flags deprecated named and numbered spacing utility classes and replaces them with pixel ones with a temporary name (phase 1).',
49
+ },
50
+ {
51
+ ...exports.data.phases[1],
52
+ description: 'Flags deprecated named and numbered spacing utility classes and replaces the temporary class names with the final ones.',
53
+ },
54
+ ],
55
+ });
56
+ //# sourceMappingURL=no-deprecated-spacing-utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-deprecated-spacing-utilities.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-deprecated-spacing-utilities.ts"],"names":[],"mappings":";;;AAAA,4DAA8D;AAC9D,wFAKkD;AAElD,cAAc;AACd,MAAM,UAAU,GAAG;IACjB,IAAI;IACJ,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,IAAI;IACJ,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACN,CAAC;AAEF,2CAA2C;AAC3C,MAAM,cAAc,GAA2B;IAC7C,GAAG,8BAAgB;IACnB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE;IACb,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,EAAE;IAChB,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,EAAE;IACX,cAAc,EAAE,EAAE;CACnB,CAAC;AAEW,QAAA,IAAI,GAAkB,IAAA,iDAAqB,EACtD,IAAA,sCAAU,EAAC,UAAU,CAAC,EACtB,cAAc,EACd,4BAA4B,CAC7B,CAAC;AAEW,QAAA,KAAK,GAAG,IAAA,0DAA8B,EAAC;IAClD,IAAI,EAAE,iCAAiC;IACvC,MAAM,EAAE;QACN;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,gIAAgI;SACnI;QACD;YACE,GAAG,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACjB,WAAW,EACT,yHAAyH;SAC5H;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const name = "no-form-text";
2
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"stopUsingFormText", [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
3
+ export default _default;
4
+ //# sourceMappingURL=no-form-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-form-text.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-form-text.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,iBAAiB,CAAC;;AAGnC,wBAgCG"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.name = void 0;
4
+ const create_rule_1 = require("../../../utils/create-rule");
5
+ exports.name = 'no-form-text';
6
+ // Type: RuleModule<"uppercase", ...>
7
+ exports.default = (0, create_rule_1.createRule)({
8
+ name: exports.name,
9
+ meta: {
10
+ docs: {
11
+ dir: 'html',
12
+ description: 'Replaces deprecated "form-text" class with "form-hint".',
13
+ },
14
+ messages: {
15
+ stopUsingFormText: 'The "form-text" class has been replaced by "form-hint.',
16
+ },
17
+ type: 'problem',
18
+ fixable: 'code',
19
+ schema: [],
20
+ },
21
+ defaultOptions: [],
22
+ create(context) {
23
+ return {
24
+ tag(node) {
25
+ const $node = node.toCheerio();
26
+ if ($node.hasClass('form-text')) {
27
+ context.report({
28
+ messageId: 'stopUsingFormText',
29
+ loc: node.loc,
30
+ fix(fixer) {
31
+ const fixedNode = $node.removeClass('form-text').addClass('form-hint');
32
+ return fixer.replaceTextRange(node.range, fixedNode.toString());
33
+ },
34
+ });
35
+ }
36
+ },
37
+ };
38
+ },
39
+ });
40
+ //# sourceMappingURL=no-form-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-form-text.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-form-text.ts"],"names":[],"mappings":";;;AAAA,4DAAwD;AAG3C,QAAA,IAAI,GAAG,cAAc,CAAC;AAEnC,qCAAqC;AACrC,kBAAe,IAAA,wBAAU,EAAC;IACxB,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,GAAG,EAAE,MAAM;YACX,WAAW,EAAE,yDAAyD;SACvE;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,wDAAwD;SAC5E;QACD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,GAAG,CAAC,IAAc;gBAChB,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC/B,IAAI,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;oBAChC,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,mBAAmB;wBAC9B,GAAG,EAAE,IAAI,CAAC,GAAG;wBACb,GAAG,CAAC,KAAK;4BACP,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;4BACvE,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;wBAClE,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const name = "no-unnumbered-border-radius";
2
+ export declare const data: Record<string, [string, string]>;
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, [], import("../../../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=no-unnumbered-border-radius.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-unnumbered-border-radius.d.ts","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-unnumbered-border-radius.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,gCAAgC,CAAC;AAUlD,eAAO,MAAM,IAAI,kCAA6C,CAAC;;AAE/D,wBAOG"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.data = exports.name = void 0;
4
+ const generate_messages_1 = require("../../../utils/generate-messages");
5
+ const generate_mutations_1 = require("../../../utils/generate-mutations");
6
+ const create_class_update_rule_1 = require("../../../utils/create-class-update-rule");
7
+ exports.name = 'no-unnumbered-border-radius';
8
+ const classesMap = [
9
+ { old: 'rounded', new: 'rounded-4' },
10
+ { old: 'rounded-top', new: 'rounded-top-4' },
11
+ { old: 'rounded-bottom', new: 'rounded-bottom-4' },
12
+ { old: 'rounded-start', new: 'rounded-start-4' },
13
+ { old: 'rounded-end', new: 'rounded-end-4' },
14
+ ];
15
+ exports.data = (0, generate_mutations_1.generateReplacedClassMutations)(classesMap);
16
+ exports.default = (0, create_class_update_rule_1.createClassUpdateRule)({
17
+ name: exports.name,
18
+ type: 'problem',
19
+ description: 'Flags "rounded" and "rounded-{top|bottom|start|end}" classes and replaces them with "rounded-4" and "rounded-{top|bottom|start|end}-4", respectively.',
20
+ messages: (0, generate_messages_1.generateReplacedClassMessages)(classesMap),
21
+ mutations: exports.data,
22
+ });
23
+ //# sourceMappingURL=no-unnumbered-border-radius.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-unnumbered-border-radius.js","sourceRoot":"","sources":["../../../../src/rules/html/migrations/no-unnumbered-border-radius.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AACjF,0EAAmF;AACnF,sFAAgF;AAEnE,QAAA,IAAI,GAAG,6BAA6B,CAAC;AAElD,MAAM,UAAU,GAAG;IACjB,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE;IACpC,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,eAAe,EAAE;IAC5C,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,kBAAkB,EAAE;IAClD,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,iBAAiB,EAAE;IAChD,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,eAAe,EAAE;CAC7C,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,mDAA8B,EAAC,UAAU,CAAC,CAAC;AAE/D,kBAAe,IAAA,gDAAqB,EAAC;IACnC,IAAI,EAAJ,YAAI;IACJ,IAAI,EAAE,SAAS;IACf,WAAW,EACT,uJAAuJ;IACzJ,QAAQ,EAAE,IAAA,iDAA6B,EAAC,UAAU,CAAC;IACnD,SAAS,EAAE,YAAI;CAChB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const dsLintingRules: {
2
+ "stencil-strict-props-initialization": import("@typescript-eslint/utils/ts-eslint").RuleModule<"propStrictInit", [], import("../utils/create-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
3
+ };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAE1B,CAAC"}