@atlaskit/eslint-plugin-design-system 14.3.2 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +80 -79
  3. package/dist/cjs/presets/all-flat.codegen.js +2 -1
  4. package/dist/cjs/presets/all.codegen.js +2 -1
  5. package/dist/cjs/presets/recommended-flat.codegen.js +2 -1
  6. package/dist/cjs/presets/recommended.codegen.js +2 -1
  7. package/dist/cjs/rules/index.codegen.js +3 -1
  8. package/dist/cjs/rules/use-heading-level-in-section-message/index.js +68 -0
  9. package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/create-no-tagged-template-expression-rule.js +23 -23
  10. package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/index.js +23 -23
  11. package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/to-arguments.js +1 -1
  12. package/dist/es2019/presets/all-flat.codegen.js +2 -1
  13. package/dist/es2019/presets/all.codegen.js +2 -1
  14. package/dist/es2019/presets/recommended-flat.codegen.js +2 -1
  15. package/dist/es2019/presets/recommended.codegen.js +2 -1
  16. package/dist/es2019/rules/index.codegen.js +3 -1
  17. package/dist/es2019/rules/use-heading-level-in-section-message/index.js +54 -0
  18. package/dist/esm/presets/all-flat.codegen.js +2 -1
  19. package/dist/esm/presets/all.codegen.js +2 -1
  20. package/dist/esm/presets/recommended-flat.codegen.js +2 -1
  21. package/dist/esm/presets/recommended.codegen.js +2 -1
  22. package/dist/esm/rules/index.codegen.js +3 -1
  23. package/dist/esm/rules/use-heading-level-in-section-message/index.js +62 -0
  24. package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/create-no-tagged-template-expression-rule.js +23 -23
  25. package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/index.js +23 -23
  26. package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/to-arguments.js +1 -1
  27. package/dist/types/presets/all-flat.codegen.d.ts +1 -1
  28. package/dist/types/presets/all.codegen.d.ts +1 -1
  29. package/dist/types/presets/recommended-flat.codegen.d.ts +1 -1
  30. package/dist/types/presets/recommended.codegen.d.ts +1 -1
  31. package/dist/types/rules/index.codegen.d.ts +1 -1
  32. package/package.json +7 -15
  33. package/dist/types-ts4.5/ast-nodes/function-call.d.ts +0 -21
  34. package/dist/types-ts4.5/ast-nodes/import.d.ts +0 -16
  35. package/dist/types-ts4.5/ast-nodes/jsx-attribute.d.ts +0 -29
  36. package/dist/types-ts4.5/ast-nodes/jsx-element-helper.d.ts +0 -23
  37. package/dist/types-ts4.5/ast-nodes/jsx-element.d.ts +0 -24
  38. package/dist/types-ts4.5/ast-nodes/object-entry.d.ts +0 -17
  39. package/dist/types-ts4.5/ast-nodes/object.d.ts +0 -53
  40. package/dist/types-ts4.5/ast-nodes/root.d.ts +0 -26
  41. package/dist/types-ts4.5/common/is-from-import-source.d.ts +0 -8
  42. package/dist/types-ts4.5/common/is-imported-jsx-element.d.ts +0 -8
  43. package/dist/types-ts4.5/common/token-maps.partial.d.ts +0 -65
  44. package/dist/types-ts4.5/index.codegen.d.ts +0 -15
  45. package/dist/types-ts4.5/index.d.ts +0 -2
  46. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +0 -8
  47. package/dist/types-ts4.5/presets/all.codegen.d.ts +0 -8
  48. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +0 -8
  49. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +0 -8
  50. package/dist/types-ts4.5/rules/consistent-css-prop-usage/index.d.ts +0 -3
  51. package/dist/types-ts4.5/rules/consistent-css-prop-usage/types.d.ts +0 -10
  52. package/dist/types-ts4.5/rules/enforce-inline-styles-in-select/index.d.ts +0 -3
  53. package/dist/types-ts4.5/rules/enforce-inline-styles-in-select/utils.d.ts +0 -2
  54. package/dist/types-ts4.5/rules/ensure-avatar-tag-avatar-props/index.d.ts +0 -3
  55. package/dist/types-ts4.5/rules/ensure-design-token-usage/border-width-value-to-token.d.ts +0 -1
  56. package/dist/types-ts4.5/rules/ensure-design-token-usage/clean-comments.d.ts +0 -5
  57. package/dist/types-ts4.5/rules/ensure-design-token-usage/convert-hyphenated-name-to-camel-case.d.ts +0 -1
  58. package/dist/types-ts4.5/rules/ensure-design-token-usage/em-to-pixels.d.ts +0 -1
  59. package/dist/types-ts4.5/rules/ensure-design-token-usage/find-parent-node-for-line.d.ts +0 -6
  60. package/dist/types-ts4.5/rules/ensure-design-token-usage/find-token-name-by-property-value.d.ts +0 -1
  61. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-domains-for-property.d.ts +0 -13
  62. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-elevation-token-example.d.ts +0 -2
  63. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-font-size-value-in-scope.d.ts +0 -2
  64. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-property-node-from-parent.d.ts +0 -3
  65. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-raw-expression.d.ts +0 -3
  66. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-token-node-for-value.d.ts +0 -12
  67. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-token-replacement.d.ts +0 -8
  68. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-token-suggestion.d.ts +0 -7
  69. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-for-property-node.d.ts +0 -3
  70. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-from-shorthand.d.ts +0 -1
  71. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-from-template-literal-raw.d.ts +0 -17
  72. package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value.d.ts +0 -3
  73. package/dist/types-ts4.5/rules/ensure-design-token-usage/includes-token-string.d.ts +0 -1
  74. package/dist/types-ts4.5/rules/ensure-design-token-usage/index.d.ts +0 -5
  75. package/dist/types-ts4.5/rules/ensure-design-token-usage/insert-tokens-import.d.ts +0 -2
  76. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-auto.d.ts +0 -1
  77. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-border-radius.d.ts +0 -2
  78. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-border-size-property.d.ts +0 -1
  79. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-calc.d.ts +0 -1
  80. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-radius-property.d.ts +0 -1
  81. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-shape-property.d.ts +0 -1
  82. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-spacing-property.d.ts +0 -1
  83. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-token-value-string.d.ts +0 -5
  84. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-valid-spacing-value.d.ts +0 -1
  85. package/dist/types-ts4.5/rules/ensure-design-token-usage/is-zero.d.ts +0 -1
  86. package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-jsx-identifier-for-color.d.ts +0 -3
  87. package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-jsx-literal-for-color.d.ts +0 -3
  88. package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-jsx-member-for-color.d.ts +0 -3
  89. package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-object-for-color.d.ts +0 -4
  90. package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-template-identifier-for-color.d.ts +0 -3
  91. package/dist/types-ts4.5/rules/ensure-design-token-usage/normalise-value.d.ts +0 -10
  92. package/dist/types-ts4.5/rules/ensure-design-token-usage/process-css-node.d.ts +0 -16
  93. package/dist/types-ts4.5/rules/ensure-design-token-usage/radius-value-to-token.d.ts +0 -1
  94. package/dist/types-ts4.5/rules/ensure-design-token-usage/remove-pixel-suffix.d.ts +0 -1
  95. package/dist/types-ts4.5/rules/ensure-design-token-usage/rule-meta.d.ts +0 -44
  96. package/dist/types-ts4.5/rules/ensure-design-token-usage/spacing.d.ts +0 -4
  97. package/dist/types-ts4.5/rules/ensure-design-token-usage/split-css-properties.d.ts +0 -6
  98. package/dist/types-ts4.5/rules/ensure-design-token-usage/split-shorthand-values.d.ts +0 -12
  99. package/dist/types-ts4.5/rules/ensure-design-token-usage/types.d.ts +0 -15
  100. package/dist/types-ts4.5/rules/ensure-design-token-usage-preview/index.d.ts +0 -3
  101. package/dist/types-ts4.5/rules/ensure-icon-color/index.d.ts +0 -3
  102. package/dist/types-ts4.5/rules/ensure-proper-xcss-usage/index.d.ts +0 -3
  103. package/dist/types-ts4.5/rules/icon-label/index.d.ts +0 -2
  104. package/dist/types-ts4.5/rules/index.codegen.d.ts +0 -7
  105. package/dist/types-ts4.5/rules/lozenge-badge-tag-labelling-system-migration/index.d.ts +0 -3
  106. package/dist/types-ts4.5/rules/no-banned-imports/index.d.ts +0 -2
  107. package/dist/types-ts4.5/rules/no-banned-imports/paths.d.ts +0 -4
  108. package/dist/types-ts4.5/rules/no-boolean-autofocus-on-modal-dialog/index.d.ts +0 -5
  109. package/dist/types-ts4.5/rules/no-css-tagged-template-expression/index.d.ts +0 -2
  110. package/dist/types-ts4.5/rules/no-dark-theme-vr-tests/index.d.ts +0 -3
  111. package/dist/types-ts4.5/rules/no-deprecated-apis/helpers/filter-actionable-deprecations.d.ts +0 -1
  112. package/dist/types-ts4.5/rules/no-deprecated-apis/helpers/validate-deprecated-apis-config.d.ts +0 -2
  113. package/dist/types-ts4.5/rules/no-deprecated-apis/index.d.ts +0 -5
  114. package/dist/types-ts4.5/rules/no-deprecated-design-token-usage/index.d.ts +0 -3
  115. package/dist/types-ts4.5/rules/no-deprecated-imports/checks.d.ts +0 -11
  116. package/dist/types-ts4.5/rules/no-deprecated-imports/constants.d.ts +0 -2
  117. package/dist/types-ts4.5/rules/no-deprecated-imports/handlers/icon.d.ts +0 -38
  118. package/dist/types-ts4.5/rules/no-deprecated-imports/index.d.ts +0 -29
  119. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-add-event-listener.d.ts +0 -2
  120. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind-all.d.ts +0 -3
  121. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind.d.ts +0 -3
  122. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-jsx-attribute.d.ts +0 -3
  123. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/index.d.ts +0 -2
  124. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/blocked-event-name-lookup.d.ts +0 -1
  125. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/blocked-jsx-attribute-lookup.d.ts +0 -1
  126. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/is-blocked-event-binding.d.ts +0 -2
  127. package/dist/types-ts4.5/rules/no-emotion-primitives/index.d.ts +0 -3
  128. package/dist/types-ts4.5/rules/no-empty-styled-expression/index.d.ts +0 -3
  129. package/dist/types-ts4.5/rules/no-exported-css/index.d.ts +0 -3
  130. package/dist/types-ts4.5/rules/no-exported-keyframes/index.d.ts +0 -3
  131. package/dist/types-ts4.5/rules/no-html-anchor/index.d.ts +0 -3
  132. package/dist/types-ts4.5/rules/no-html-anchor/node-types/jsx-element/index.d.ts +0 -8
  133. package/dist/types-ts4.5/rules/no-html-anchor/node-types/styled-component/index.d.ts +0 -8
  134. package/dist/types-ts4.5/rules/no-html-anchor/node-types/supported.d.ts +0 -7
  135. package/dist/types-ts4.5/rules/no-html-button/index.d.ts +0 -3
  136. package/dist/types-ts4.5/rules/no-html-button/node-types/jsx-element/index.d.ts +0 -8
  137. package/dist/types-ts4.5/rules/no-html-button/node-types/styled-component/index.d.ts +0 -8
  138. package/dist/types-ts4.5/rules/no-html-button/node-types/supported.d.ts +0 -7
  139. package/dist/types-ts4.5/rules/no-html-checkbox/index.d.ts +0 -3
  140. package/dist/types-ts4.5/rules/no-html-checkbox/node-types/jsx-element/index.d.ts +0 -8
  141. package/dist/types-ts4.5/rules/no-html-checkbox/node-types/supported.d.ts +0 -7
  142. package/dist/types-ts4.5/rules/no-html-code/index.d.ts +0 -3
  143. package/dist/types-ts4.5/rules/no-html-code/node-types/jsx-element/index.d.ts +0 -8
  144. package/dist/types-ts4.5/rules/no-html-code/node-types/styled-component/index.d.ts +0 -8
  145. package/dist/types-ts4.5/rules/no-html-code/node-types/supported.d.ts +0 -7
  146. package/dist/types-ts4.5/rules/no-html-heading/index.d.ts +0 -3
  147. package/dist/types-ts4.5/rules/no-html-heading/node-types/jsx-element/index.d.ts +0 -8
  148. package/dist/types-ts4.5/rules/no-html-heading/node-types/styled-component/index.d.ts +0 -8
  149. package/dist/types-ts4.5/rules/no-html-heading/node-types/supported.d.ts +0 -7
  150. package/dist/types-ts4.5/rules/no-html-image/index.d.ts +0 -3
  151. package/dist/types-ts4.5/rules/no-html-image/node-types/jsx-element/index.d.ts +0 -8
  152. package/dist/types-ts4.5/rules/no-html-image/node-types/styled-component/index.d.ts +0 -8
  153. package/dist/types-ts4.5/rules/no-html-image/node-types/supported.d.ts +0 -7
  154. package/dist/types-ts4.5/rules/no-html-image/utils/get-jsx-element-by-name.d.ts +0 -6
  155. package/dist/types-ts4.5/rules/no-html-radio/index.d.ts +0 -3
  156. package/dist/types-ts4.5/rules/no-html-radio/node-types/jsx-element/index.d.ts +0 -8
  157. package/dist/types-ts4.5/rules/no-html-radio/node-types/supported.d.ts +0 -7
  158. package/dist/types-ts4.5/rules/no-html-range/index.d.ts +0 -3
  159. package/dist/types-ts4.5/rules/no-html-range/node-types/jsx-element/index.d.ts +0 -8
  160. package/dist/types-ts4.5/rules/no-html-range/node-types/supported.d.ts +0 -7
  161. package/dist/types-ts4.5/rules/no-html-select/index.d.ts +0 -3
  162. package/dist/types-ts4.5/rules/no-html-select/node-types/jsx-element/index.d.ts +0 -8
  163. package/dist/types-ts4.5/rules/no-html-select/node-types/styled-component/index.d.ts +0 -8
  164. package/dist/types-ts4.5/rules/no-html-select/node-types/supported.d.ts +0 -7
  165. package/dist/types-ts4.5/rules/no-html-text-input/index.d.ts +0 -3
  166. package/dist/types-ts4.5/rules/no-html-text-input/node-types/jsx-element/index.d.ts +0 -8
  167. package/dist/types-ts4.5/rules/no-html-text-input/node-types/supported.d.ts +0 -7
  168. package/dist/types-ts4.5/rules/no-html-textarea/index.d.ts +0 -3
  169. package/dist/types-ts4.5/rules/no-html-textarea/node-types/jsx-element/index.d.ts +0 -8
  170. package/dist/types-ts4.5/rules/no-html-textarea/node-types/styled-component/index.d.ts +0 -8
  171. package/dist/types-ts4.5/rules/no-html-textarea/node-types/supported.d.ts +0 -7
  172. package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-css-map-key.d.ts +0 -5
  173. package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-icon-size.d.ts +0 -5
  174. package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-spacing-attribute.d.ts +0 -5
  175. package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-static-attribute-value.d.ts +0 -5
  176. package/dist/types-ts4.5/rules/no-icon-spacing-prop/has-spread-props.d.ts +0 -5
  177. package/dist/types-ts4.5/rules/no-icon-spacing-prop/index.d.ts +0 -3
  178. package/dist/types-ts4.5/rules/no-icon-spacing-prop/spacing-to-padding.d.ts +0 -5
  179. package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-css-map-import.d.ts +0 -8
  180. package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-css-map-variable.d.ts +0 -9
  181. package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-flex-import.d.ts +0 -8
  182. package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-token-import.d.ts +0 -8
  183. package/dist/types-ts4.5/rules/no-invalid-css-map/get-css-map-object.d.ts +0 -2
  184. package/dist/types-ts4.5/rules/no-invalid-css-map/index.d.ts +0 -3
  185. package/dist/types-ts4.5/rules/no-invalid-css-map/utils.d.ts +0 -12
  186. package/dist/types-ts4.5/rules/no-keyframes-tagged-template-expression/index.d.ts +0 -2
  187. package/dist/types-ts4.5/rules/no-margin/index.d.ts +0 -3
  188. package/dist/types-ts4.5/rules/no-nested-styles/index.d.ts +0 -3
  189. package/dist/types-ts4.5/rules/no-physical-properties/index.d.ts +0 -3
  190. package/dist/types-ts4.5/rules/no-physical-properties/logical-physical-map.d.ts +0 -72
  191. package/dist/types-ts4.5/rules/no-physical-properties/physical-logical-map.d.ts +0 -34
  192. package/dist/types-ts4.5/rules/no-placeholder/affected-atlaskit-packages.d.ts +0 -1
  193. package/dist/types-ts4.5/rules/no-placeholder/affected-html-elements.d.ts +0 -1
  194. package/dist/types-ts4.5/rules/no-placeholder/index.d.ts +0 -2
  195. package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/affected-atlaskit-packages.d.ts +0 -1
  196. package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/affected-html-elements.d.ts +0 -1
  197. package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/index.d.ts +0 -2
  198. package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/unwanted-atlaskit-attributes.d.ts +0 -4
  199. package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/unwanted-html-attributes.d.ts +0 -4
  200. package/dist/types-ts4.5/rules/no-separator-with-list-elements/index.d.ts +0 -3
  201. package/dist/types-ts4.5/rules/no-styled-tagged-template-expression/index.d.ts +0 -2
  202. package/dist/types-ts4.5/rules/no-to-match-snapshot/index.d.ts +0 -4
  203. package/dist/types-ts4.5/rules/no-unsafe-design-token-usage/index.d.ts +0 -3
  204. package/dist/types-ts4.5/rules/no-unsafe-inline-snapshot/index.d.ts +0 -4
  205. package/dist/types-ts4.5/rules/no-unsafe-style-overrides/index.d.ts +0 -2
  206. package/dist/types-ts4.5/rules/no-unsupported-drag-and-drop-libraries/index.d.ts +0 -2
  207. package/dist/types-ts4.5/rules/no-unsupported-drag-and-drop-libraries/paths.d.ts +0 -4
  208. package/dist/types-ts4.5/rules/no-unused-css-map/get-css-map-object.d.ts +0 -5
  209. package/dist/types-ts4.5/rules/no-unused-css-map/index.d.ts +0 -3
  210. package/dist/types-ts4.5/rules/no-unused-css-map/unused-css-map-checker.d.ts +0 -14
  211. package/dist/types-ts4.5/rules/no-unused-css-map/utils.d.ts +0 -15
  212. package/dist/types-ts4.5/rules/prefer-primitives/index.d.ts +0 -2
  213. package/dist/types-ts4.5/rules/prefer-primitives/utils.d.ts +0 -2
  214. package/dist/types-ts4.5/rules/prefer-primitives/valid-primitive-elements.d.ts +0 -1
  215. package/dist/types-ts4.5/rules/use-button-group-label/index.d.ts +0 -3
  216. package/dist/types-ts4.5/rules/use-character-counter-field/index.d.ts +0 -6
  217. package/dist/types-ts4.5/rules/use-correct-field/index.d.ts +0 -5
  218. package/dist/types-ts4.5/rules/use-cx-function-in-xcss/index.d.ts +0 -3
  219. package/dist/types-ts4.5/rules/use-datetime-picker-calendar-button/index.d.ts +0 -7
  220. package/dist/types-ts4.5/rules/use-drawer-label/index.d.ts +0 -3
  221. package/dist/types-ts4.5/rules/use-field-message-wrapper/index.d.ts +0 -3
  222. package/dist/types-ts4.5/rules/use-heading/config/index.d.ts +0 -9
  223. package/dist/types-ts4.5/rules/use-heading/index.d.ts +0 -3
  224. package/dist/types-ts4.5/rules/use-heading/transformers/allowed-attrs.d.ts +0 -1
  225. package/dist/types-ts4.5/rules/use-heading/transformers/common.d.ts +0 -6
  226. package/dist/types-ts4.5/rules/use-heading/transformers/native-elements.d.ts +0 -22
  227. package/dist/types-ts4.5/rules/use-heading/transformers/update-test-id-attribute-fix.d.ts +0 -3
  228. package/dist/types-ts4.5/rules/use-href-in-link-item/get-unique-button-item-name.d.ts +0 -2
  229. package/dist/types-ts4.5/rules/use-href-in-link-item/has-import-of-name.d.ts +0 -2
  230. package/dist/types-ts4.5/rules/use-href-in-link-item/index.d.ts +0 -4
  231. package/dist/types-ts4.5/rules/use-href-in-link-item/insert-button-item-default-import.d.ts +0 -3
  232. package/dist/types-ts4.5/rules/use-href-in-link-item/insert-button-item-import.d.ts +0 -3
  233. package/dist/types-ts4.5/rules/use-href-in-link-item/utils.d.ts +0 -3
  234. package/dist/types-ts4.5/rules/use-latest-xcss-syntax/index.d.ts +0 -4
  235. package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/index.d.ts +0 -18
  236. package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/style-map.d.ts +0 -1
  237. package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/supported.d.ts +0 -6
  238. package/dist/types-ts4.5/rules/use-latest-xcss-syntax/utils/is-string-or-number.d.ts +0 -1
  239. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/config/get-config.d.ts +0 -2
  240. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/config/patterns.d.ts +0 -6
  241. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/config/types.d.ts +0 -5
  242. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/index.d.ts +0 -3
  243. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/common.d.ts +0 -7
  244. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/restricted-capitalisation.d.ts +0 -6
  245. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/restricted-property.d.ts +0 -6
  246. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/wrapped-token-value.d.ts +0 -7
  247. package/dist/types-ts4.5/rules/use-menu-section-title/index.d.ts +0 -3
  248. package/dist/types-ts4.5/rules/use-modal-dialog-close-button/index.d.ts +0 -7
  249. package/dist/types-ts4.5/rules/use-onboarding-spotlight-label/index.d.ts +0 -3
  250. package/dist/types-ts4.5/rules/use-popup-label/index.d.ts +0 -3
  251. package/dist/types-ts4.5/rules/use-primitives/config/get-config.d.ts +0 -2
  252. package/dist/types-ts4.5/rules/use-primitives/config/index.d.ts +0 -7
  253. package/dist/types-ts4.5/rules/use-primitives/config/types.d.ts +0 -4
  254. package/dist/types-ts4.5/rules/use-primitives/config/valid-patterns.d.ts +0 -2
  255. package/dist/types-ts4.5/rules/use-primitives/index.d.ts +0 -3
  256. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/attributes.d.ts +0 -1
  257. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/convert-jsx-call-site.d.ts +0 -17
  258. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/convert-styled-component-call-to-jsx.d.ts +0 -17
  259. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/elements.d.ts +0 -1
  260. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/find-valid-jsx-usage-to-transform.d.ts +0 -9
  261. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/find-valid-styled-component-call.d.ts +0 -7
  262. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/index.d.ts +0 -25
  263. package/dist/types-ts4.5/rules/use-primitives/transformers/css-to-xcss-transformer.d.ts +0 -3
  264. package/dist/types-ts4.5/rules/use-primitives/transformers/dimensions-map.d.ts +0 -3
  265. package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/attributes.d.ts +0 -1
  266. package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/elements.d.ts +0 -1
  267. package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/index.d.ts +0 -15
  268. package/dist/types-ts4.5/rules/use-primitives/transformers/space-token-map.d.ts +0 -3
  269. package/dist/types-ts4.5/rules/use-primitives/transformers/space-token-positive-map.d.ts +0 -3
  270. package/dist/types-ts4.5/rules/use-primitives/transformers/styled-object-to-xcss-tokens.d.ts +0 -3
  271. package/dist/types-ts4.5/rules/use-primitives/transformers/supported-dimension-attributes-map.d.ts +0 -4
  272. package/dist/types-ts4.5/rules/use-primitives/transformers/supported-styles-map.d.ts +0 -4
  273. package/dist/types-ts4.5/rules/use-primitives/utils/convert-ast-object-expression-to-js-object.d.ts +0 -18
  274. package/dist/types-ts4.5/rules/use-primitives/utils/get-attribute-value-identifier.d.ts +0 -14
  275. package/dist/types-ts4.5/rules/use-primitives/utils/get-function-argument-at-pos.d.ts +0 -2
  276. package/dist/types-ts4.5/rules/use-primitives/utils/get-jsx-attribute-by-name.d.ts +0 -2
  277. package/dist/types-ts4.5/rules/use-primitives/utils/get-variable-definition-value.d.ts +0 -2
  278. package/dist/types-ts4.5/rules/use-primitives/utils/get-variable-usage-count.d.ts +0 -7
  279. package/dist/types-ts4.5/rules/use-primitives/utils/is-function-named.d.ts +0 -2
  280. package/dist/types-ts4.5/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +0 -4
  281. package/dist/types-ts4.5/rules/use-primitives/utils/spread-syntax.d.ts +0 -1
  282. package/dist/types-ts4.5/rules/use-primitives/utils/update-jsx-attribute-by-name.d.ts +0 -3
  283. package/dist/types-ts4.5/rules/use-primitives/utils/validate-styles.d.ts +0 -3
  284. package/dist/types-ts4.5/rules/use-primitives-text/config/get-config.d.ts +0 -2
  285. package/dist/types-ts4.5/rules/use-primitives-text/config/patterns.d.ts +0 -2
  286. package/dist/types-ts4.5/rules/use-primitives-text/config/types.d.ts +0 -8
  287. package/dist/types-ts4.5/rules/use-primitives-text/index.d.ts +0 -3
  288. package/dist/types-ts4.5/rules/use-primitives-text/transformers/add-color-inherit-attribute-fix.d.ts +0 -4
  289. package/dist/types-ts4.5/rules/use-primitives-text/transformers/allowed-attrs.d.ts +0 -1
  290. package/dist/types-ts4.5/rules/use-primitives-text/transformers/common.d.ts +0 -6
  291. package/dist/types-ts4.5/rules/use-primitives-text/transformers/emphasis-elements.d.ts +0 -13
  292. package/dist/types-ts4.5/rules/use-primitives-text/transformers/has-text-children-only.d.ts +0 -2
  293. package/dist/types-ts4.5/rules/use-primitives-text/transformers/paragraph-elements.d.ts +0 -25
  294. package/dist/types-ts4.5/rules/use-primitives-text/transformers/span-elements.d.ts +0 -13
  295. package/dist/types-ts4.5/rules/use-primitives-text/transformers/strong-elements.d.ts +0 -13
  296. package/dist/types-ts4.5/rules/use-primitives-text/transformers/update-test-id-attribute-fix.d.ts +0 -3
  297. package/dist/types-ts4.5/rules/use-should-render-to-parent/add-prop.d.ts +0 -1
  298. package/dist/types-ts4.5/rules/use-should-render-to-parent/index.d.ts +0 -6
  299. package/dist/types-ts4.5/rules/use-should-render-to-parent/set-prop-to-true.d.ts +0 -1
  300. package/dist/types-ts4.5/rules/use-simple-field/index.d.ts +0 -4
  301. package/dist/types-ts4.5/rules/use-simple-form/index.d.ts +0 -5
  302. package/dist/types-ts4.5/rules/use-simple-form/top-level-attribute-names.d.ts +0 -1
  303. package/dist/types-ts4.5/rules/use-spotlight-package/index.d.ts +0 -3
  304. package/dist/types-ts4.5/rules/use-spotlight-package/linters/import-declaration/index.d.ts +0 -16
  305. package/dist/types-ts4.5/rules/use-tag-group-label/index.d.ts +0 -3
  306. package/dist/types-ts4.5/rules/use-textfield-autocomplete/index.d.ts +0 -4
  307. package/dist/types-ts4.5/rules/use-tokens-shape/index.d.ts +0 -3
  308. package/dist/types-ts4.5/rules/use-tokens-shape/transformers/index.d.ts +0 -26
  309. package/dist/types-ts4.5/rules/use-tokens-shape/transformers/style-map.d.ts +0 -10
  310. package/dist/types-ts4.5/rules/use-tokens-shape/transformers/supported.d.ts +0 -6
  311. package/dist/types-ts4.5/rules/use-tokens-space/index.d.ts +0 -3
  312. package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/index.d.ts +0 -26
  313. package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/style-map.d.ts +0 -7
  314. package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/supported.d.ts +0 -6
  315. package/dist/types-ts4.5/rules/use-tokens-space/utils/is-string-or-number.d.ts +0 -1
  316. package/dist/types-ts4.5/rules/use-tokens-typography/config/get-config.d.ts +0 -2
  317. package/dist/types-ts4.5/rules/use-tokens-typography/config/rule-schema.d.ts +0 -2
  318. package/dist/types-ts4.5/rules/use-tokens-typography/config/types.d.ts +0 -7
  319. package/dist/types-ts4.5/rules/use-tokens-typography/convert-property-node-to-stringable-node.d.ts +0 -2
  320. package/dist/types-ts4.5/rules/use-tokens-typography/default-font-weight.d.ts +0 -1
  321. package/dist/types-ts4.5/rules/use-tokens-typography/find-font-family-token-for-value.d.ts +0 -1
  322. package/dist/types-ts4.5/rules/use-tokens-typography/find-font-weight-token-for-value.d.ts +0 -2
  323. package/dist/types-ts4.5/rules/use-tokens-typography/find-typography-token-for-values.d.ts +0 -2
  324. package/dist/types-ts4.5/rules/use-tokens-typography/font-weight-map.d.ts +0 -2
  325. package/dist/types-ts4.5/rules/use-tokens-typography/font-weight-tokens.d.ts +0 -2
  326. package/dist/types-ts4.5/rules/use-tokens-typography/get-literal-property.d.ts +0 -2
  327. package/dist/types-ts4.5/rules/use-tokens-typography/get-token-property.d.ts +0 -2
  328. package/dist/types-ts4.5/rules/use-tokens-typography/index.d.ts +0 -3
  329. package/dist/types-ts4.5/rules/use-tokens-typography/insert-tokens-import.d.ts +0 -3
  330. package/dist/types-ts4.5/rules/use-tokens-typography/is-code-font-family.d.ts +0 -2
  331. package/dist/types-ts4.5/rules/use-tokens-typography/is-font-family.d.ts +0 -2
  332. package/dist/types-ts4.5/rules/use-tokens-typography/is-font-size-small.d.ts +0 -2
  333. package/dist/types-ts4.5/rules/use-tokens-typography/is-font-size.d.ts +0 -2
  334. package/dist/types-ts4.5/rules/use-tokens-typography/is-typography-property.d.ts +0 -1
  335. package/dist/types-ts4.5/rules/use-tokens-typography/is-valid-property-node.d.ts +0 -2
  336. package/dist/types-ts4.5/rules/use-tokens-typography/is-valid-typography-token.d.ts +0 -36
  337. package/dist/types-ts4.5/rules/use-tokens-typography/not-undefined.d.ts +0 -1
  338. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/banned-properties.d.ts +0 -12
  339. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-family.d.ts +0 -13
  340. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-weight.d.ts +0 -13
  341. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/restricted-capitalisation.d.ts +0 -12
  342. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/style-object.d.ts +0 -33
  343. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/untokenized-properties.d.ts +0 -12
  344. package/dist/types-ts4.5/rules/use-tokens-typography/types.d.ts +0 -15
  345. package/dist/types-ts4.5/rules/use-tokens-typography/typography-properties.d.ts +0 -1
  346. package/dist/types-ts4.5/rules/use-tokens-typography/typography-value-to-token.d.ts +0 -2
  347. package/dist/types-ts4.5/rules/use-visually-hidden/constants.d.ts +0 -3
  348. package/dist/types-ts4.5/rules/use-visually-hidden/count-matching-key-values.d.ts +0 -6
  349. package/dist/types-ts4.5/rules/use-visually-hidden/fix-jsx.d.ts +0 -3
  350. package/dist/types-ts4.5/rules/use-visually-hidden/fix-vanilla.d.ts +0 -3
  351. package/dist/types-ts4.5/rules/use-visually-hidden/get-first-import.d.ts +0 -5
  352. package/dist/types-ts4.5/rules/use-visually-hidden/get-object-likeness.d.ts +0 -9
  353. package/dist/types-ts4.5/rules/use-visually-hidden/index.d.ts +0 -3
  354. package/dist/types-ts4.5/rules/use-visually-hidden/make-template-literal-into-entries.d.ts +0 -4
  355. package/dist/types-ts4.5/rules/use-visually-hidden/reference-object.d.ts +0 -11
  356. package/dist/types-ts4.5/rules/use-visually-hidden/utils.d.ts +0 -26
  357. package/dist/types-ts4.5/rules/utils/create-lint-rule.d.ts +0 -8
  358. package/dist/types-ts4.5/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +0 -15
  359. package/dist/types-ts4.5/rules/utils/create-no-exported-rule/is-styled-component.d.ts +0 -14
  360. package/dist/types-ts4.5/rules/utils/create-no-exported-rule/main.d.ts +0 -19
  361. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/create-no-tagged-template-expression-rule.d.ts +0 -5
  362. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/generate.d.ts +0 -2
  363. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/get-tagged-template-expression-offset.d.ts +0 -4
  364. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/index.d.ts +0 -7
  365. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/no-tagged-template-expression-rule-schema.d.ts +0 -2
  366. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/to-arguments.d.ts +0 -4
  367. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/types.d.ts +0 -28
  368. package/dist/types-ts4.5/rules/utils/create-rule.d.ts +0 -11
  369. package/dist/types-ts4.5/rules/utils/error-boundary.d.ts +0 -18
  370. package/dist/types-ts4.5/rules/utils/find-in-parent.d.ts +0 -9
  371. package/dist/types-ts4.5/rules/utils/find-prop.d.ts +0 -2
  372. package/dist/types-ts4.5/rules/utils/get-deprecated-config.d.ts +0 -2
  373. package/dist/types-ts4.5/rules/utils/get-first-supported-import.d.ts +0 -17
  374. package/dist/types-ts4.5/rules/utils/get-import-name.d.ts +0 -2
  375. package/dist/types-ts4.5/rules/utils/get-imported-node-by-source.d.ts +0 -8
  376. package/dist/types-ts4.5/rules/utils/get-is-exception.d.ts +0 -2
  377. package/dist/types-ts4.5/rules/utils/get-jsx-element-by-name.d.ts +0 -6
  378. package/dist/types-ts4.5/rules/utils/get-module-of-identifier.d.ts +0 -10
  379. package/dist/types-ts4.5/rules/utils/get-node-source.d.ts +0 -3
  380. package/dist/types-ts4.5/rules/utils/get-rule-url.d.ts +0 -1
  381. package/dist/types-ts4.5/rules/utils/get-styled-component-call.d.ts +0 -6
  382. package/dist/types-ts4.5/rules/utils/includes-hard-coded-color.d.ts +0 -1
  383. package/dist/types-ts4.5/rules/utils/is-child-of-type.d.ts +0 -2
  384. package/dist/types-ts4.5/rules/utils/is-color-css-property-name.d.ts +0 -1
  385. package/dist/types-ts4.5/rules/utils/is-css-in-js-call-node.d.ts +0 -2
  386. package/dist/types-ts4.5/rules/utils/is-css-in-js-object-node.d.ts +0 -2
  387. package/dist/types-ts4.5/rules/utils/is-css-in-js-template-node.d.ts +0 -2
  388. package/dist/types-ts4.5/rules/utils/is-current-surface-custom-property-name.d.ts +0 -1
  389. package/dist/types-ts4.5/rules/utils/is-decendant-of-global-token.d.ts +0 -2
  390. package/dist/types-ts4.5/rules/utils/is-decendant-of-primitive.d.ts +0 -2
  391. package/dist/types-ts4.5/rules/utils/is-decendant-of-style-block.d.ts +0 -2
  392. package/dist/types-ts4.5/rules/utils/is-decendant-of-style-jsx-attribute.d.ts +0 -2
  393. package/dist/types-ts4.5/rules/utils/is-decendant-of-svg-element.d.ts +0 -2
  394. package/dist/types-ts4.5/rules/utils/is-decendant-of-type.d.ts +0 -2
  395. package/dist/types-ts4.5/rules/utils/is-decendant-of-xcss-block.d.ts +0 -2
  396. package/dist/types-ts4.5/rules/utils/is-deprecated-import-config.d.ts +0 -2
  397. package/dist/types-ts4.5/rules/utils/is-deprecated-jsx-attribute-config.d.ts +0 -2
  398. package/dist/types-ts4.5/rules/utils/is-elevation.d.ts +0 -5
  399. package/dist/types-ts4.5/rules/utils/is-hard-coded-color.d.ts +0 -1
  400. package/dist/types-ts4.5/rules/utils/is-legacy-color.d.ts +0 -1
  401. package/dist/types-ts4.5/rules/utils/is-legacy-named-color.d.ts +0 -1
  402. package/dist/types-ts4.5/rules/utils/is-node.d.ts +0 -6
  403. package/dist/types-ts4.5/rules/utils/is-property-key.d.ts +0 -2
  404. package/dist/types-ts4.5/rules/utils/is-token.d.ts +0 -1
  405. package/dist/types-ts4.5/rules/utils/jsx.d.ts +0 -2
  406. package/dist/types-ts4.5/rules/utils/named-colors.d.ts +0 -1
  407. package/dist/types-ts4.5/rules/utils/types.d.ts +0 -28
  408. /package/dist/{types-ts4.5/rules/use-heading-level-in-spotlight-card → types/rules/use-heading-level-in-section-message}/index.d.ts +0 -0
@@ -1,15 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import type { CallExpression as ESCallExpression, ObjectExpression } from 'estree';
3
- type CallExpression = ESCallExpression & Rule.NodeParentExtension;
4
- export declare const getCssMapObject: (node: CallExpression) => ObjectExpression | undefined;
5
- export declare class UnusedCssMapChecker {
6
- private readonly cssMapObject;
7
- private readonly cssMapCallNode;
8
- private readonly report;
9
- private readonly context;
10
- constructor(cssMapObject: ObjectExpression, context: Rule.RuleContext, cssMapCallNode: CallExpression);
11
- private checkForUnusedStyles;
12
- private findCssMapVariable;
13
- run(): void;
14
- }
15
- export {};
@@ -1,2 +0,0 @@
1
- declare const rule: import('eslint').Rule.RuleModule;
2
- export default rule;
@@ -1,2 +0,0 @@
1
- import { type JSXElement } from 'eslint-codemod-utils';
2
- export declare const shouldSuggest: (node: JSXElement) => boolean;
@@ -1 +0,0 @@
1
- export declare const validPrimitiveElements: Set<string>;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,6 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- export declare const messageInsideForm = "When using `maxLength` or `minLength` props with Textfield/Textarea inside a Form, use `CharacterCounterField` from `@atlaskit/form` instead of Field and remove the props from the Textfield/Textarea. This ensures accessibility through real time feedback and aligns with the design system. Read more about [character counter fields](https://atlassian.design/components/form/examples#charactercounterfield)";
3
- export declare const messageOutsideForm = "When using `maxLength` or `minLength` props with Textfield/Textarea, use `CharacterCounter` from `@atlaskit/form` alongside your input for real-time character count feedback. This ensures accessibility through screen reader announcements and visual feedback. Read more about [standalone character counter](https://atlassian.design/components/form/examples#standalone-charactercounter)";
4
- export declare const ruleName: string;
5
- declare const rule: Rule.RuleModule;
6
- export default rule;
@@ -1,5 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- export declare const useCheckboxFieldMessage = "Convert Field to CheckboxField";
3
- export declare const useRangeFieldMessage = "Convert Field to RangeField";
4
- declare const rule: Rule.RuleModule;
5
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,7 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- export declare const addCalendarButtonProp = "Add `shouldShowCalendarButton` prop.";
3
- export declare const setCalendarButtonPropToTrue = "Set `shouldShowCalendarButton` prop to `true`.";
4
- export declare const addCalendarButtonProperty = "Add `shouldShowCalendarButton: true` to `datePickerProps`.";
5
- export declare const setCalendarButtonPropertyToTrue = "Set `shouldShowCalendarButton` property in `datePickerProps` to `true`.";
6
- declare const rule: Rule.RuleModule;
7
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,9 +0,0 @@
1
- type Pattern = 'native-elements';
2
- export interface RuleConfig {
3
- failSilently: boolean;
4
- patterns: Pattern[];
5
- enableUnsafeAutofix: boolean;
6
- enableUnsafeReport: boolean;
7
- }
8
- export declare const getConfig: (overrides: Partial<RuleConfig>) => RuleConfig;
9
- export {};
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1 +0,0 @@
1
- export declare const allowedAttrs: string[];
@@ -1,6 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import type { RuleConfig } from '../config';
3
- export type MetaData = {
4
- context: Rule.RuleContext;
5
- config: RuleConfig;
6
- };
@@ -1,22 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement, type JSXIdentifier, type JSXOpeningElement } from 'eslint-codemod-utils';
3
- import type { MetaData } from './common';
4
- type ValidTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
- interface ValidHeadingElement extends JSXElement {
6
- parent: Rule.Node;
7
- openingElement: {
8
- name: JSXIdentifier & {
9
- name: ValidTags;
10
- };
11
- } & JSXOpeningElement;
12
- }
13
- type CheckResult = {
14
- success: boolean;
15
- autoFixable?: boolean;
16
- };
17
- export declare const NativeElements: {
18
- lint(node: Rule.Node, { context, config }: MetaData): void;
19
- _check(node: Rule.Node, { config }: MetaData): CheckResult;
20
- _fix(node: ValidHeadingElement, { context }: MetaData): Rule.ReportFixer;
21
- };
22
- export {};
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import type { JSXElement } from 'eslint-codemod-utils';
3
- export declare function updateTestIdAttributeFix(node: JSXElement, fixer: Rule.RuleFixer): Rule.Fix | undefined;
@@ -1,2 +0,0 @@
1
- import { type ImportDeclaration } from 'eslint-codemod-utils';
2
- export declare const getUniqueButtonItemName: (menuNode: ImportDeclaration | null, importDeclarations: ImportDeclaration[]) => string;
@@ -1,2 +0,0 @@
1
- import { type ImportDeclaration } from 'eslint-codemod-utils';
2
- export declare const hasImportOfName: (node: ImportDeclaration, name: string) => boolean;
@@ -1,4 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- export declare const hrefRequiredSuggestionText = "Convert LinkItem to ButtonItem";
3
- declare const rule: Rule.RuleModule;
4
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type ImportDeclaration } from 'eslint-codemod-utils';
3
- export declare const insertButtonItemDefaultImport: (fixer: Rule.RuleFixer, node: ImportDeclaration) => Rule.Fix;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type ImportDeclaration } from 'eslint-codemod-utils';
3
- export declare const insertButtonItemImport: (fixer: Rule.RuleFixer, node: ImportDeclaration, uniqueButtonItemName: string) => Rule.Fix;
@@ -1,3 +0,0 @@
1
- import type { Scope } from 'eslint';
2
- import { type JSXAttribute } from 'eslint-codemod-utils';
3
- export declare const hrefHasInvalidValue: (scope: Scope.Scope, href: JSXAttribute | undefined) => boolean;
@@ -1,4 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- export declare const noRawSpacingValues = "Don't use non-token values in padding or margin. There is ongoing work to make this a TypeScript error. Once that happens, you will have to delete/refactor anyway. Atlassians: See https://go.atlassian.com/xcss-spacing for details.";
3
- declare const rule: Rule.RuleModule;
4
- export default rule;
@@ -1,18 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type Property as ObjectEntry } from 'eslint-codemod-utils';
3
- type Check = {
4
- success: false;
5
- ref: undefined;
6
- } | {
7
- success: true;
8
- ref: ObjectEntry;
9
- };
10
- export declare const StyleProperty: {
11
- lint(node: Rule.Node, { context }: {
12
- context: Rule.RuleContext;
13
- }): void;
14
- _check(node: Rule.Node, { context }: {
15
- context: Rule.RuleContext;
16
- }): Check;
17
- };
18
- export {};
@@ -1 +0,0 @@
1
- export declare const styleMap: string[];
@@ -1,6 +0,0 @@
1
- declare const supported: {
2
- values: {
3
- ignore: string[];
4
- };
5
- };
6
- export default supported;
@@ -1 +0,0 @@
1
- export declare const isStringOrNumber: (value: string | number | bigint | true | RegExp | undefined) => value is string | number;
@@ -1,2 +0,0 @@
1
- import type { RuleConfig } from './types';
2
- export declare const getConfig: (overrides: Partial<RuleConfig>) => RuleConfig;
@@ -1,6 +0,0 @@
1
- export declare const PATTERNS: readonly [
2
- "restricted-property",
3
- "wrapped-token-value",
4
- "restricted-capitalisation"
5
- ];
6
- export type Pattern = (typeof PATTERNS)[number];
@@ -1,5 +0,0 @@
1
- import type { Pattern } from './patterns';
2
- export interface RuleConfig {
3
- failSilently: boolean;
4
- patterns: Pattern[];
5
- }
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,7 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import type { RuleConfig } from '../config/types';
3
- export type MetaData = {
4
- context: Rule.RuleContext;
5
- config: RuleConfig;
6
- };
7
- export declare function isPropertyName(node: Rule.Node, name: string): boolean;
@@ -1,6 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type MetaData } from './common';
3
- export declare const RestrictedCapitalisation: {
4
- lint(node: Rule.Node, { context, config }: MetaData): void;
5
- _check(node: Rule.Node, { config }: MetaData): boolean;
6
- };
@@ -1,6 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type MetaData } from './common';
3
- export declare const RestrictedProperty: {
4
- lint(node: Rule.Node, { context, config }: MetaData): void;
5
- _check(node: Rule.Node, { config }: MetaData): boolean;
6
- };
@@ -1,7 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import type { MetaData } from './common';
3
- export declare const WrappedTokenValue: {
4
- lint(node: Rule.Node, { context, config }: MetaData): void;
5
- _check(node: Rule.Node, { config }: MetaData): boolean;
6
- _fix(node: Rule.Node): Rule.ReportFixer;
7
- };
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,7 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- export declare const addHasCloseButtonProp = "Add `hasCloseButton` prop.";
3
- export declare const setHasCloseButtonPropToTrue = "Set `hasCloseButton` prop to `true`.";
4
- export declare const useCloseButtonOrNewProp = "Set `hasCloseButton` prop to `true` in `ModalHeader` or use `CloseButton` export if customization is desired.";
5
- export declare const ruleName: string;
6
- declare const rule: Rule.RuleModule;
7
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,2 +0,0 @@
1
- import type { RuleConfig } from './types';
2
- export declare const getConfig: (overrides: Partial<RuleConfig>) => RuleConfig;
@@ -1,7 +0,0 @@
1
- export declare const VALID_PATTERNS: string[];
2
- type Pattern = (typeof VALID_PATTERNS)[number];
3
- export interface RuleConfig {
4
- patterns: Pattern[];
5
- }
6
- export declare const getConfig: (overrides: Partial<RuleConfig>) => RuleConfig;
7
- export {};
@@ -1,4 +0,0 @@
1
- import type { Pattern } from './valid-patterns';
2
- export interface RuleConfig {
3
- patterns: Pattern[];
4
- }
@@ -1,2 +0,0 @@
1
- export declare const VALID_PATTERNS: string[];
2
- export type Pattern = (typeof VALID_PATTERNS)[number];
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1 +0,0 @@
1
- export declare const attributes: string[];
@@ -1,17 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- /**
4
- * Transforms a JSXElement from:
5
- * ```
6
- * <div>
7
- * // ...
8
- * </div>
9
- * ```
10
- * to
11
- * ```
12
- * <Box xcss={myStyles}>
13
- * // ...
14
- * </Box>
15
- * ```
16
- */
17
- export declare const convertJsxCallSite: (jsxElement: JSXElement, newStylesVariableName: string, fixer: Rule.RuleFixer) => Rule.Fix[];
@@ -1,17 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type VariableDeclarator } from 'eslint-codemod-utils';
3
- /**
4
- * Transforms a variable like:
5
- * ```
6
- * const MyComponent = styled.div({
7
- * padding: '8px',
8
- * })
9
- * ```
10
- * to
11
- * ```
12
- * const myComponentStyles = xcss({
13
- * padding: 'space.100',
14
- * })
15
- * ```
16
- */
17
- export declare const convertStyledComponentToXcss: (styles: VariableDeclarator, newStylesVariableName: string, fixer: Rule.RuleFixer) => (Rule.Fix | undefined)[];
@@ -1 +0,0 @@
1
- export declare const elements: string[];
@@ -1,9 +0,0 @@
1
- import type { Rule, Scope } from 'eslint';
2
- import { type JSXOpeningElement } from 'eslint-codemod-utils';
3
- /**
4
- * Given a component name finds its JSX usages and performs some
5
- * additional validations to ensure transformation can be done correctly
6
- *
7
- * anyOrder: if true, the order of the references doesn't matter (JSX or style declaration)
8
- */
9
- export declare const findValidJsxUsageToTransform: (componentName: string, scope: Scope.Scope, anyOrder?: boolean) => (JSXOpeningElement & Rule.NodeParentExtension) | undefined;
@@ -1,7 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type VariableDeclarator } from 'eslint-codemod-utils';
3
- /**
4
- * returns a variable reference if preconditions are favourable for
5
- * the transformation to proceed, undefined otherwise.
6
- */
7
- export declare const findValidStyledComponentCall: (node: Rule.Node) => (VariableDeclarator & Rule.NodeParentExtension) | undefined;
@@ -1,25 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement, type VariableDeclarator } from 'eslint-codemod-utils';
3
- import type { RuleConfig } from '../../config/types';
4
- interface MetaData {
5
- context: Rule.RuleContext;
6
- config: RuleConfig;
7
- }
8
- interface Refs {
9
- styles: VariableDeclarator;
10
- jsxElement: JSXElement;
11
- }
12
- type Check = {
13
- success: boolean;
14
- refs?: Refs;
15
- };
16
- export declare const CompiledStyled: {
17
- lint(node: Rule.Node, { context, config }: MetaData): void;
18
- _check(node: Rule.Node, { context, config }: MetaData): Check;
19
- /**
20
- * All required validation steps have been taken care of before this
21
- * transformer is called, so it just goes ahead providing all necessary fixes
22
- */
23
- _fix(refs: Refs, context: Rule.RuleContext): Rule.ReportFixer;
24
- };
25
- export {};
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- export declare const cssToXcssTransformer: (node: JSXElement, context: Rule.RuleContext, fixer: Rule.RuleFixer) => (Rule.Fix | undefined)[];
@@ -1,3 +0,0 @@
1
- export declare const dimensionsMap: {
2
- [key: string]: string;
3
- };
@@ -1 +0,0 @@
1
- export declare const attributes: string[];
@@ -1 +0,0 @@
1
- export declare const elements: string[];
@@ -1,15 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- import type { RuleConfig } from '../../config/types';
4
- interface MetaData {
5
- context: Rule.RuleContext;
6
- config: RuleConfig;
7
- }
8
- export declare const EmotionCSS: {
9
- lint(node: Rule.Node, { context, config }: MetaData): void;
10
- _check(node: Rule.Node, { context, config }: MetaData): boolean;
11
- _fix(node: JSXElement, { context }: {
12
- context: Rule.RuleContext;
13
- }): Rule.ReportFixer;
14
- };
15
- export {};
@@ -1,3 +0,0 @@
1
- export declare const spaceTokenMap: {
2
- [key: string]: string;
3
- };
@@ -1,3 +0,0 @@
1
- export declare const spaceTokenPositiveMap: {
2
- [key: string]: string;
3
- };
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type ObjectExpression } from 'eslint-codemod-utils';
3
- export declare const styledObjectToXcssTokens: (styles: ObjectExpression & Partial<Rule.NodeParentExtension>, fixer: Rule.RuleFixer) => (Rule.Fix | undefined)[];
@@ -1,4 +0,0 @@
1
- import type { spaceTokenMap } from './space-token-map';
2
- export declare const supportedDimensionAttributesMap: {
3
- [key: string]: typeof spaceTokenMap;
4
- };
@@ -1,4 +0,0 @@
1
- import { spaceTokenMap } from './space-token-map';
2
- export declare const supportedStylesMap: {
3
- [key: string]: typeof spaceTokenMap;
4
- };
@@ -1,18 +0,0 @@
1
- import type { CSSProperties } from 'react';
2
- import type { Rule } from 'eslint';
3
- import { type ObjectExpression } from 'eslint-codemod-utils';
4
- import { SPREAD_SYNTAX } from './spread-syntax';
5
- type Token = {
6
- tokenName: string;
7
- fallbackValue: string | undefined;
8
- };
9
- export type CSSPropStyleObject = {
10
- [key in keyof CSSProperties]: string | number | Token;
11
- } & {
12
- unsupported: (keyof CSSProperties | typeof SPREAD_SYNTAX)[];
13
- };
14
- /**
15
- * Note: Not recursive. Only handles top level key/value pairs
16
- */
17
- export declare const convertASTObjectExpressionToJSObject: (styles: ObjectExpression & Partial<Rule.NodeParentExtension>) => CSSPropStyleObject;
18
- export {};
@@ -1,14 +0,0 @@
1
- import { type JSXAttribute } from 'eslint-codemod-utils';
2
- /**
3
- * Bit of a weird name, but the functionality is quite specific, so this is the best I could do.
4
- * This function looks at a JSXAttribute, and returns the string representation
5
- * of the value if it's an identifier, e.g. `css={someStyles}` would return `'someStyles'`
6
- *
7
- * It returns undefined if it finds anything else, like:
8
- * - `css={[styles1, styles2]}`
9
- * - `css={...styles}`
10
- * - `css={styleMap[key]}`
11
- * - `css='what even is this'`
12
- * - etc
13
- */
14
- export declare const getAttributeValueIdentifier: (attr: JSXAttribute | undefined) => string | undefined;
@@ -1,2 +0,0 @@
1
- import type { Scope } from 'eslint';
2
- export declare const getFunctionArgumentAtPos: (node: Scope.Definition | undefined, pos: number) => any;
@@ -1,2 +0,0 @@
1
- import { type JSXAttribute, type JSXOpeningElement } from 'eslint-codemod-utils';
2
- export declare const getJSXAttributeByName: (node: JSXOpeningElement, attrName: string) => JSXAttribute | undefined;
@@ -1,2 +0,0 @@
1
- import type { Scope } from 'eslint';
2
- export declare const getVariableDefinitionValue: (variableDefinition: Scope.Variable | null) => Scope.Definition | undefined;
@@ -1,7 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- /**
3
- * TODO: Update this logic: https://product-fabric.atlassian.net/browse/DSP-16059
4
- * Using Regex here because otherwise we'd need to traverse the entire AST
5
- * We should harden this logic as we go.
6
- */
7
- export declare const getVariableUsagesCount: (variableName: string | undefined, context: Rule.RuleContext) => number;
@@ -1,2 +0,0 @@
1
- import type { Scope } from 'eslint';
2
- export declare const isFunctionNamed: (node: Scope.Definition | undefined, name: string) => boolean;
@@ -1,4 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type SimpleCallExpression } from 'eslint-codemod-utils';
3
- import type { RuleConfig } from '../config/types';
4
- export declare const isValidCssPropertiesToTransform: (node: SimpleCallExpression & Rule.NodeParentExtension, config: RuleConfig) => boolean;
@@ -1 +0,0 @@
1
- export declare const SPREAD_SYNTAX: unique symbol;
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- export declare const updateJSXAttributeByName: (oldName: string, newName: string, node: JSXElement, fixer: Rule.RuleFixer) => Rule.Fix | never[];
@@ -1,3 +0,0 @@
1
- import { type CallExpression } from 'eslint-codemod-utils';
2
- import type { RuleConfig } from '../config/types';
3
- export declare const validateStyles: (node: CallExpression, config: RuleConfig) => boolean;
@@ -1,2 +0,0 @@
1
- import type { RuleConfig } from './types';
2
- export declare const getConfig: (overrides: Partial<RuleConfig>) => RuleConfig;
@@ -1,2 +0,0 @@
1
- export type Pattern = (typeof PATTERNS)[number];
2
- export declare const PATTERNS: string[];
@@ -1,8 +0,0 @@
1
- import { type Pattern } from './patterns';
2
- export interface RuleConfig {
3
- failSilently: boolean;
4
- patterns: Pattern[];
5
- inheritColor: boolean;
6
- enableUnsafeAutofix: boolean;
7
- enableUnsafeReport: boolean;
8
- }
@@ -1,3 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- declare const rule: Rule.RuleModule;
3
- export default rule;
@@ -1,4 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- import type { RuleConfig } from '../config/types';
4
- export declare function addColorInheritAttributeFix(node: JSXElement, config: RuleConfig, fixer: Rule.RuleFixer): Rule.Fix | undefined;
@@ -1 +0,0 @@
1
- export declare const allowedAttrs: string[];
@@ -1,6 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import type { RuleConfig } from '../config/types';
3
- export type MetaData = {
4
- context: Rule.RuleContext;
5
- config: RuleConfig;
6
- };
@@ -1,13 +0,0 @@
1
- import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- import type { MetaData } from './common';
4
- type CheckResult = {
5
- success: boolean;
6
- autoFixable?: boolean;
7
- };
8
- export declare const EmphasisElements: {
9
- lint(node: Rule.Node, { context, config }: MetaData): void;
10
- _check(node: JSXElement, { context, config }: MetaData): CheckResult;
11
- _fix(node: JSXElement, { context, config }: MetaData): Rule.ReportFixer;
12
- };
13
- export {};
@@ -1,2 +0,0 @@
1
- import { type JSXElement } from 'eslint-codemod-utils';
2
- export declare function hasTextChildrenOnly(node: JSXElement): boolean;