@memberjunction/react-test-harness 5.37.0 → 5.39.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 (342) hide show
  1. package/README.md +30 -0
  2. package/dist/cli/index.js +5 -1
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/index.d.ts +1 -5
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +10 -5
  7. package/dist/index.js.map +1 -1
  8. package/dist/lib/browser-context.d.ts +43 -0
  9. package/dist/lib/browser-context.d.ts.map +1 -1
  10. package/dist/lib/browser-context.js +87 -12
  11. package/dist/lib/browser-context.js.map +1 -1
  12. package/dist/lib/component-runner.d.ts +17 -22
  13. package/dist/lib/component-runner.d.ts.map +1 -1
  14. package/dist/lib/component-runner.js +46 -4
  15. package/dist/lib/component-runner.js.map +1 -1
  16. package/dist/lib/linter-test-tool.js +1 -1
  17. package/dist/lib/linter-test-tool.js.map +1 -1
  18. package/dist/lib/test-harness.d.ts +10 -0
  19. package/dist/lib/test-harness.d.ts.map +1 -1
  20. package/dist/lib/test-harness.js +10 -0
  21. package/dist/lib/test-harness.js.map +1 -1
  22. package/package.json +14 -13
  23. package/dist/lib/component-linter.d.ts +0 -77
  24. package/dist/lib/component-linter.d.ts.map +0 -1
  25. package/dist/lib/component-linter.js +0 -1205
  26. package/dist/lib/component-linter.js.map +0 -1
  27. package/dist/lib/control-flow-analyzer.d.ts +0 -184
  28. package/dist/lib/control-flow-analyzer.d.ts.map +0 -1
  29. package/dist/lib/control-flow-analyzer.js +0 -798
  30. package/dist/lib/control-flow-analyzer.js.map +0 -1
  31. package/dist/lib/library-lint-cache.d.ts +0 -50
  32. package/dist/lib/library-lint-cache.d.ts.map +0 -1
  33. package/dist/lib/library-lint-cache.js +0 -173
  34. package/dist/lib/library-lint-cache.js.map +0 -1
  35. package/dist/lib/lint-rule.d.ts +0 -70
  36. package/dist/lib/lint-rule.d.ts.map +0 -1
  37. package/dist/lib/lint-rule.js +0 -41
  38. package/dist/lib/lint-rule.js.map +0 -1
  39. package/dist/lib/lint-utils.d.ts +0 -131
  40. package/dist/lib/lint-utils.d.ts.map +0 -1
  41. package/dist/lib/lint-utils.js +0 -358
  42. package/dist/lib/lint-utils.js.map +0 -1
  43. package/dist/lib/prop-value-extractor.d.ts +0 -147
  44. package/dist/lib/prop-value-extractor.d.ts.map +0 -1
  45. package/dist/lib/prop-value-extractor.js +0 -472
  46. package/dist/lib/prop-value-extractor.js.map +0 -1
  47. package/dist/lib/runtime-rules/ai-tools-availability-check.d.ts +0 -9
  48. package/dist/lib/runtime-rules/ai-tools-availability-check.d.ts.map +0 -1
  49. package/dist/lib/runtime-rules/ai-tools-availability-check.js +0 -223
  50. package/dist/lib/runtime-rules/ai-tools-availability-check.js.map +0 -1
  51. package/dist/lib/runtime-rules/callback-event-validation.d.ts +0 -22
  52. package/dist/lib/runtime-rules/callback-event-validation.d.ts.map +0 -1
  53. package/dist/lib/runtime-rules/callback-event-validation.js +0 -561
  54. package/dist/lib/runtime-rules/callback-event-validation.js.map +0 -1
  55. package/dist/lib/runtime-rules/chart-field-validation.d.ts +0 -10
  56. package/dist/lib/runtime-rules/chart-field-validation.d.ts.map +0 -1
  57. package/dist/lib/runtime-rules/chart-field-validation.js +0 -270
  58. package/dist/lib/runtime-rules/chart-field-validation.js.map +0 -1
  59. package/dist/lib/runtime-rules/child-component-prop-validation.d.ts +0 -10
  60. package/dist/lib/runtime-rules/child-component-prop-validation.d.ts.map +0 -1
  61. package/dist/lib/runtime-rules/child-component-prop-validation.js +0 -443
  62. package/dist/lib/runtime-rules/child-component-prop-validation.js.map +0 -1
  63. package/dist/lib/runtime-rules/component-name-mismatch.d.ts +0 -19
  64. package/dist/lib/runtime-rules/component-name-mismatch.d.ts.map +0 -1
  65. package/dist/lib/runtime-rules/component-name-mismatch.js +0 -82
  66. package/dist/lib/runtime-rules/component-name-mismatch.js.map +0 -1
  67. package/dist/lib/runtime-rules/component-not-in-dependencies.d.ts +0 -20
  68. package/dist/lib/runtime-rules/component-not-in-dependencies.d.ts.map +0 -1
  69. package/dist/lib/runtime-rules/component-not-in-dependencies.js +0 -92
  70. package/dist/lib/runtime-rules/component-not-in-dependencies.js.map +0 -1
  71. package/dist/lib/runtime-rules/component-props-validation.d.ts +0 -25
  72. package/dist/lib/runtime-rules/component-props-validation.d.ts.map +0 -1
  73. package/dist/lib/runtime-rules/component-props-validation.js +0 -228
  74. package/dist/lib/runtime-rules/component-props-validation.js.map +0 -1
  75. package/dist/lib/runtime-rules/component-usage-without-destructuring.d.ts +0 -20
  76. package/dist/lib/runtime-rules/component-usage-without-destructuring.d.ts.map +0 -1
  77. package/dist/lib/runtime-rules/component-usage-without-destructuring.js +0 -124
  78. package/dist/lib/runtime-rules/component-usage-without-destructuring.js.map +0 -1
  79. package/dist/lib/runtime-rules/data-result-validation.d.ts +0 -9
  80. package/dist/lib/runtime-rules/data-result-validation.d.ts.map +0 -1
  81. package/dist/lib/runtime-rules/data-result-validation.js +0 -763
  82. package/dist/lib/runtime-rules/data-result-validation.js.map +0 -1
  83. package/dist/lib/runtime-rules/datagrid-field-validation.d.ts +0 -10
  84. package/dist/lib/runtime-rules/datagrid-field-validation.d.ts.map +0 -1
  85. package/dist/lib/runtime-rules/datagrid-field-validation.js +0 -249
  86. package/dist/lib/runtime-rules/datagrid-field-validation.js.map +0 -1
  87. package/dist/lib/runtime-rules/dependency-shadowing.d.ts +0 -20
  88. package/dist/lib/runtime-rules/dependency-shadowing.d.ts.map +0 -1
  89. package/dist/lib/runtime-rules/dependency-shadowing.js +0 -147
  90. package/dist/lib/runtime-rules/dependency-shadowing.js.map +0 -1
  91. package/dist/lib/runtime-rules/entity-field-access-validation.d.ts +0 -12
  92. package/dist/lib/runtime-rules/entity-field-access-validation.d.ts.map +0 -1
  93. package/dist/lib/runtime-rules/entity-field-access-validation.js +0 -304
  94. package/dist/lib/runtime-rules/entity-field-access-validation.js.map +0 -1
  95. package/dist/lib/runtime-rules/event-parameter-validation.d.ts +0 -22
  96. package/dist/lib/runtime-rules/event-parameter-validation.d.ts.map +0 -1
  97. package/dist/lib/runtime-rules/event-parameter-validation.js +0 -406
  98. package/dist/lib/runtime-rules/event-parameter-validation.js.map +0 -1
  99. package/dist/lib/runtime-rules/index.d.ts +0 -61
  100. package/dist/lib/runtime-rules/index.d.ts.map +0 -1
  101. package/dist/lib/runtime-rules/index.js +0 -62
  102. package/dist/lib/runtime-rules/index.js.map +0 -1
  103. package/dist/lib/runtime-rules/library-variable-names.d.ts +0 -24
  104. package/dist/lib/runtime-rules/library-variable-names.d.ts.map +0 -1
  105. package/dist/lib/runtime-rules/library-variable-names.js +0 -88
  106. package/dist/lib/runtime-rules/library-variable-names.js.map +0 -1
  107. package/dist/lib/runtime-rules/no-child-implementation.d.ts +0 -18
  108. package/dist/lib/runtime-rules/no-child-implementation.d.ts.map +0 -1
  109. package/dist/lib/runtime-rules/no-child-implementation.js +0 -57
  110. package/dist/lib/runtime-rules/no-child-implementation.js.map +0 -1
  111. package/dist/lib/runtime-rules/no-data-prop.d.ts +0 -22
  112. package/dist/lib/runtime-rules/no-data-prop.d.ts.map +0 -1
  113. package/dist/lib/runtime-rules/no-data-prop.js +0 -111
  114. package/dist/lib/runtime-rules/no-data-prop.js.map +0 -1
  115. package/dist/lib/runtime-rules/no-export-statements.d.ts +0 -18
  116. package/dist/lib/runtime-rules/no-export-statements.d.ts.map +0 -1
  117. package/dist/lib/runtime-rules/no-export-statements.js +0 -143
  118. package/dist/lib/runtime-rules/no-export-statements.js.map +0 -1
  119. package/dist/lib/runtime-rules/no-iife-wrapper.d.ts +0 -18
  120. package/dist/lib/runtime-rules/no-iife-wrapper.d.ts.map +0 -1
  121. package/dist/lib/runtime-rules/no-iife-wrapper.js +0 -217
  122. package/dist/lib/runtime-rules/no-iife-wrapper.js.map +0 -1
  123. package/dist/lib/runtime-rules/no-import-statements.d.ts +0 -18
  124. package/dist/lib/runtime-rules/no-import-statements.d.ts.map +0 -1
  125. package/dist/lib/runtime-rules/no-import-statements.js +0 -65
  126. package/dist/lib/runtime-rules/no-import-statements.js.map +0 -1
  127. package/dist/lib/runtime-rules/no-react-destructuring.d.ts +0 -18
  128. package/dist/lib/runtime-rules/no-react-destructuring.d.ts.map +0 -1
  129. package/dist/lib/runtime-rules/no-react-destructuring.js +0 -60
  130. package/dist/lib/runtime-rules/no-react-destructuring.js.map +0 -1
  131. package/dist/lib/runtime-rules/no-require-statements.d.ts +0 -18
  132. package/dist/lib/runtime-rules/no-require-statements.d.ts.map +0 -1
  133. package/dist/lib/runtime-rules/no-require-statements.js +0 -109
  134. package/dist/lib/runtime-rules/no-require-statements.js.map +0 -1
  135. package/dist/lib/runtime-rules/no-return-component.d.ts +0 -18
  136. package/dist/lib/runtime-rules/no-return-component.d.ts.map +0 -1
  137. package/dist/lib/runtime-rules/no-return-component.js +0 -106
  138. package/dist/lib/runtime-rules/no-return-component.js.map +0 -1
  139. package/dist/lib/runtime-rules/no-unwrap-utility-libs.d.ts +0 -20
  140. package/dist/lib/runtime-rules/no-unwrap-utility-libs.d.ts.map +0 -1
  141. package/dist/lib/runtime-rules/no-unwrap-utility-libs.js +0 -75
  142. package/dist/lib/runtime-rules/no-unwrap-utility-libs.js.map +0 -1
  143. package/dist/lib/runtime-rules/no-use-reducer.d.ts +0 -19
  144. package/dist/lib/runtime-rules/no-use-reducer.d.ts.map +0 -1
  145. package/dist/lib/runtime-rules/no-use-reducer.js +0 -78
  146. package/dist/lib/runtime-rules/no-use-reducer.js.map +0 -1
  147. package/dist/lib/runtime-rules/no-window-access.d.ts +0 -23
  148. package/dist/lib/runtime-rules/no-window-access.d.ts.map +0 -1
  149. package/dist/lib/runtime-rules/no-window-access.js +0 -136
  150. package/dist/lib/runtime-rules/no-window-access.js.map +0 -1
  151. package/dist/lib/runtime-rules/noisy-settings-updates.d.ts +0 -18
  152. package/dist/lib/runtime-rules/noisy-settings-updates.d.ts.map +0 -1
  153. package/dist/lib/runtime-rules/noisy-settings-updates.js +0 -110
  154. package/dist/lib/runtime-rules/noisy-settings-updates.js.map +0 -1
  155. package/dist/lib/runtime-rules/overflow-hidden-on-layout-container.d.ts +0 -30
  156. package/dist/lib/runtime-rules/overflow-hidden-on-layout-container.d.ts.map +0 -1
  157. package/dist/lib/runtime-rules/overflow-hidden-on-layout-container.js +0 -220
  158. package/dist/lib/runtime-rules/overflow-hidden-on-layout-container.js.map +0 -1
  159. package/dist/lib/runtime-rules/pass-standard-props.d.ts +0 -19
  160. package/dist/lib/runtime-rules/pass-standard-props.d.ts.map +0 -1
  161. package/dist/lib/runtime-rules/pass-standard-props.js +0 -82
  162. package/dist/lib/runtime-rules/pass-standard-props.js.map +0 -1
  163. package/dist/lib/runtime-rules/prefer-async-await.d.ts +0 -17
  164. package/dist/lib/runtime-rules/prefer-async-await.d.ts.map +0 -1
  165. package/dist/lib/runtime-rules/prefer-async-await.js +0 -52
  166. package/dist/lib/runtime-rules/prefer-async-await.js.map +0 -1
  167. package/dist/lib/runtime-rules/prefer-jsx-syntax.d.ts +0 -17
  168. package/dist/lib/runtime-rules/prefer-jsx-syntax.d.ts.map +0 -1
  169. package/dist/lib/runtime-rules/prefer-jsx-syntax.js +0 -51
  170. package/dist/lib/runtime-rules/prefer-jsx-syntax.js.map +0 -1
  171. package/dist/lib/runtime-rules/prop-state-sync.d.ts +0 -19
  172. package/dist/lib/runtime-rules/prop-state-sync.d.ts.map +0 -1
  173. package/dist/lib/runtime-rules/prop-state-sync.js +0 -76
  174. package/dist/lib/runtime-rules/prop-state-sync.js.map +0 -1
  175. package/dist/lib/runtime-rules/property-name-consistency.d.ts +0 -20
  176. package/dist/lib/runtime-rules/property-name-consistency.d.ts.map +0 -1
  177. package/dist/lib/runtime-rules/property-name-consistency.js +0 -172
  178. package/dist/lib/runtime-rules/property-name-consistency.js.map +0 -1
  179. package/dist/lib/runtime-rules/query-result-field-access-validation.d.ts +0 -10
  180. package/dist/lib/runtime-rules/query-result-field-access-validation.d.ts.map +0 -1
  181. package/dist/lib/runtime-rules/query-result-field-access-validation.js +0 -304
  182. package/dist/lib/runtime-rules/query-result-field-access-validation.js.map +0 -1
  183. package/dist/lib/runtime-rules/react-component-naming.d.ts +0 -19
  184. package/dist/lib/runtime-rules/react-component-naming.d.ts.map +0 -1
  185. package/dist/lib/runtime-rules/react-component-naming.js +0 -72
  186. package/dist/lib/runtime-rules/react-component-naming.js.map +0 -1
  187. package/dist/lib/runtime-rules/react-hooks-rules.d.ts +0 -27
  188. package/dist/lib/runtime-rules/react-hooks-rules.d.ts.map +0 -1
  189. package/dist/lib/runtime-rules/react-hooks-rules.js +0 -223
  190. package/dist/lib/runtime-rules/react-hooks-rules.js.map +0 -1
  191. package/dist/lib/runtime-rules/required-queries-not-called.d.ts +0 -19
  192. package/dist/lib/runtime-rules/required-queries-not-called.d.ts.map +0 -1
  193. package/dist/lib/runtime-rules/required-queries-not-called.js +0 -146
  194. package/dist/lib/runtime-rules/required-queries-not-called.js.map +0 -1
  195. package/dist/lib/runtime-rules/runquery-call-validation.d.ts +0 -11
  196. package/dist/lib/runtime-rules/runquery-call-validation.d.ts.map +0 -1
  197. package/dist/lib/runtime-rules/runquery-call-validation.js +0 -886
  198. package/dist/lib/runtime-rules/runquery-call-validation.js.map +0 -1
  199. package/dist/lib/runtime-rules/runview-call-validation.d.ts +0 -10
  200. package/dist/lib/runtime-rules/runview-call-validation.d.ts.map +0 -1
  201. package/dist/lib/runtime-rules/runview-call-validation.js +0 -336
  202. package/dist/lib/runtime-rules/runview-call-validation.js.map +0 -1
  203. package/dist/lib/runtime-rules/saved-user-settings-pattern.d.ts +0 -19
  204. package/dist/lib/runtime-rules/saved-user-settings-pattern.d.ts.map +0 -1
  205. package/dist/lib/runtime-rules/saved-user-settings-pattern.js +0 -90
  206. package/dist/lib/runtime-rules/saved-user-settings-pattern.js.map +0 -1
  207. package/dist/lib/runtime-rules/search-availability-check.d.ts +0 -9
  208. package/dist/lib/runtime-rules/search-availability-check.d.ts.map +0 -1
  209. package/dist/lib/runtime-rules/search-availability-check.js +0 -220
  210. package/dist/lib/runtime-rules/search-availability-check.js.map +0 -1
  211. package/dist/lib/runtime-rules/search-call-validation.d.ts +0 -9
  212. package/dist/lib/runtime-rules/search-call-validation.d.ts.map +0 -1
  213. package/dist/lib/runtime-rules/search-call-validation.js +0 -336
  214. package/dist/lib/runtime-rules/search-call-validation.js.map +0 -1
  215. package/dist/lib/runtime-rules/server-reload-on-client-operation.d.ts +0 -18
  216. package/dist/lib/runtime-rules/server-reload-on-client-operation.d.ts.map +0 -1
  217. package/dist/lib/runtime-rules/server-reload-on-client-operation.js +0 -107
  218. package/dist/lib/runtime-rules/server-reload-on-client-operation.js.map +0 -1
  219. package/dist/lib/runtime-rules/single-function-only.d.ts +0 -18
  220. package/dist/lib/runtime-rules/single-function-only.d.ts.map +0 -1
  221. package/dist/lib/runtime-rules/single-function-only.js +0 -103
  222. package/dist/lib/runtime-rules/single-function-only.js.map +0 -1
  223. package/dist/lib/runtime-rules/string-replace-all-occurrences.d.ts +0 -19
  224. package/dist/lib/runtime-rules/string-replace-all-occurrences.d.ts.map +0 -1
  225. package/dist/lib/runtime-rules/string-replace-all-occurrences.js +0 -109
  226. package/dist/lib/runtime-rules/string-replace-all-occurrences.js.map +0 -1
  227. package/dist/lib/runtime-rules/string-template-validation.d.ts +0 -22
  228. package/dist/lib/runtime-rules/string-template-validation.d.ts.map +0 -1
  229. package/dist/lib/runtime-rules/string-template-validation.js +0 -163
  230. package/dist/lib/runtime-rules/string-template-validation.js.map +0 -1
  231. package/dist/lib/runtime-rules/styles-validation.d.ts +0 -10
  232. package/dist/lib/runtime-rules/styles-validation.d.ts.map +0 -1
  233. package/dist/lib/runtime-rules/styles-validation.js +0 -153
  234. package/dist/lib/runtime-rules/styles-validation.js.map +0 -1
  235. package/dist/lib/runtime-rules/type-inference-errors.d.ts +0 -23
  236. package/dist/lib/runtime-rules/type-inference-errors.d.ts.map +0 -1
  237. package/dist/lib/runtime-rules/type-inference-errors.js +0 -53
  238. package/dist/lib/runtime-rules/type-inference-errors.js.map +0 -1
  239. package/dist/lib/runtime-rules/type-mismatch-operation.d.ts +0 -23
  240. package/dist/lib/runtime-rules/type-mismatch-operation.d.ts.map +0 -1
  241. package/dist/lib/runtime-rules/type-mismatch-operation.js +0 -141
  242. package/dist/lib/runtime-rules/type-mismatch-operation.js.map +0 -1
  243. package/dist/lib/runtime-rules/undefined-component-usage.d.ts +0 -20
  244. package/dist/lib/runtime-rules/undefined-component-usage.d.ts.map +0 -1
  245. package/dist/lib/runtime-rules/undefined-component-usage.js +0 -138
  246. package/dist/lib/runtime-rules/undefined-component-usage.js.map +0 -1
  247. package/dist/lib/runtime-rules/undefined-jsx-component.d.ts +0 -25
  248. package/dist/lib/runtime-rules/undefined-jsx-component.d.ts.map +0 -1
  249. package/dist/lib/runtime-rules/undefined-jsx-component.js +0 -269
  250. package/dist/lib/runtime-rules/undefined-jsx-component.js.map +0 -1
  251. package/dist/lib/runtime-rules/unsafe-array-operations.d.ts +0 -25
  252. package/dist/lib/runtime-rules/unsafe-array-operations.d.ts.map +0 -1
  253. package/dist/lib/runtime-rules/unsafe-array-operations.js +0 -347
  254. package/dist/lib/runtime-rules/unsafe-array-operations.js.map +0 -1
  255. package/dist/lib/runtime-rules/unsafe-formatting-methods.d.ts +0 -24
  256. package/dist/lib/runtime-rules/unsafe-formatting-methods.d.ts.map +0 -1
  257. package/dist/lib/runtime-rules/unsafe-formatting-methods.js +0 -277
  258. package/dist/lib/runtime-rules/unsafe-formatting-methods.js.map +0 -1
  259. package/dist/lib/runtime-rules/unused-component-dependencies.d.ts +0 -19
  260. package/dist/lib/runtime-rules/unused-component-dependencies.d.ts.map +0 -1
  261. package/dist/lib/runtime-rules/unused-component-dependencies.js +0 -90
  262. package/dist/lib/runtime-rules/unused-component-dependencies.js.map +0 -1
  263. package/dist/lib/runtime-rules/unused-libraries.d.ts +0 -19
  264. package/dist/lib/runtime-rules/unused-libraries.d.ts.map +0 -1
  265. package/dist/lib/runtime-rules/unused-libraries.js +0 -127
  266. package/dist/lib/runtime-rules/unused-libraries.js.map +0 -1
  267. package/dist/lib/runtime-rules/use-function-declaration.d.ts +0 -18
  268. package/dist/lib/runtime-rules/use-function-declaration.d.ts.map +0 -1
  269. package/dist/lib/runtime-rules/use-function-declaration.js +0 -127
  270. package/dist/lib/runtime-rules/use-function-declaration.js.map +0 -1
  271. package/dist/lib/runtime-rules/use-unwrap-components.d.ts +0 -19
  272. package/dist/lib/runtime-rules/use-unwrap-components.d.ts.map +0 -1
  273. package/dist/lib/runtime-rules/use-unwrap-components.js +0 -84
  274. package/dist/lib/runtime-rules/use-unwrap-components.js.map +0 -1
  275. package/dist/lib/runtime-rules/useeffect-unstable-dependencies.d.ts +0 -23
  276. package/dist/lib/runtime-rules/useeffect-unstable-dependencies.d.ts.map +0 -1
  277. package/dist/lib/runtime-rules/useeffect-unstable-dependencies.js +0 -215
  278. package/dist/lib/runtime-rules/useeffect-unstable-dependencies.js.map +0 -1
  279. package/dist/lib/runtime-rules/utilities-api-validation.d.ts +0 -24
  280. package/dist/lib/runtime-rules/utilities-api-validation.d.ts.map +0 -1
  281. package/dist/lib/runtime-rules/utilities-api-validation.js +0 -121
  282. package/dist/lib/runtime-rules/utilities-api-validation.js.map +0 -1
  283. package/dist/lib/runtime-rules/utilities-no-direct-instantiation.d.ts +0 -20
  284. package/dist/lib/runtime-rules/utilities-no-direct-instantiation.d.ts.map +0 -1
  285. package/dist/lib/runtime-rules/utilities-no-direct-instantiation.js +0 -58
  286. package/dist/lib/runtime-rules/utilities-no-direct-instantiation.js.map +0 -1
  287. package/dist/lib/runtime-rules/validate-component-references.d.ts +0 -19
  288. package/dist/lib/runtime-rules/validate-component-references.d.ts.map +0 -1
  289. package/dist/lib/runtime-rules/validate-component-references.js +0 -255
  290. package/dist/lib/runtime-rules/validate-component-references.js.map +0 -1
  291. package/dist/lib/schema-validation/component-prop-rule.d.ts +0 -125
  292. package/dist/lib/schema-validation/component-prop-rule.d.ts.map +0 -1
  293. package/dist/lib/schema-validation/component-prop-rule.js +0 -624
  294. package/dist/lib/schema-validation/component-prop-rule.js.map +0 -1
  295. package/dist/lib/schema-validation/index.d.ts +0 -26
  296. package/dist/lib/schema-validation/index.d.ts.map +0 -1
  297. package/dist/lib/schema-validation/index.js +0 -26
  298. package/dist/lib/schema-validation/index.js.map +0 -1
  299. package/dist/lib/schema-validation/semantic-validators/index.d.ts +0 -23
  300. package/dist/lib/schema-validation/semantic-validators/index.d.ts.map +0 -1
  301. package/dist/lib/schema-validation/semantic-validators/index.js +0 -23
  302. package/dist/lib/schema-validation/semantic-validators/index.js.map +0 -1
  303. package/dist/lib/schema-validation/semantic-validators/required-when-validator.d.ts +0 -43
  304. package/dist/lib/schema-validation/semantic-validators/required-when-validator.d.ts.map +0 -1
  305. package/dist/lib/schema-validation/semantic-validators/required-when-validator.js +0 -94
  306. package/dist/lib/schema-validation/semantic-validators/required-when-validator.js.map +0 -1
  307. package/dist/lib/schema-validation/semantic-validators/semantic-validator-registry.d.ts +0 -122
  308. package/dist/lib/schema-validation/semantic-validators/semantic-validator-registry.d.ts.map +0 -1
  309. package/dist/lib/schema-validation/semantic-validators/semantic-validator-registry.js +0 -166
  310. package/dist/lib/schema-validation/semantic-validators/semantic-validator-registry.js.map +0 -1
  311. package/dist/lib/schema-validation/semantic-validators/semantic-validator.d.ts +0 -260
  312. package/dist/lib/schema-validation/semantic-validators/semantic-validator.d.ts.map +0 -1
  313. package/dist/lib/schema-validation/semantic-validators/semantic-validator.js +0 -301
  314. package/dist/lib/schema-validation/semantic-validators/semantic-validator.js.map +0 -1
  315. package/dist/lib/schema-validation/semantic-validators/sql-where-clause-validator.d.ts +0 -115
  316. package/dist/lib/schema-validation/semantic-validators/sql-where-clause-validator.d.ts.map +0 -1
  317. package/dist/lib/schema-validation/semantic-validators/sql-where-clause-validator.js +0 -381
  318. package/dist/lib/schema-validation/semantic-validators/sql-where-clause-validator.js.map +0 -1
  319. package/dist/lib/schema-validation/semantic-validators/subset-of-entity-fields-validator.d.ts +0 -60
  320. package/dist/lib/schema-validation/semantic-validators/subset-of-entity-fields-validator.d.ts.map +0 -1
  321. package/dist/lib/schema-validation/semantic-validators/subset-of-entity-fields-validator.js +0 -195
  322. package/dist/lib/schema-validation/semantic-validators/subset-of-entity-fields-validator.js.map +0 -1
  323. package/dist/lib/schema-validation/semantic-validators/validation-context.d.ts +0 -335
  324. package/dist/lib/schema-validation/semantic-validators/validation-context.d.ts.map +0 -1
  325. package/dist/lib/schema-validation/semantic-validators/validation-context.js +0 -13
  326. package/dist/lib/schema-validation/semantic-validators/validation-context.js.map +0 -1
  327. package/dist/lib/styles-type-analyzer.d.ts +0 -64
  328. package/dist/lib/styles-type-analyzer.d.ts.map +0 -1
  329. package/dist/lib/styles-type-analyzer.js +0 -242
  330. package/dist/lib/styles-type-analyzer.js.map +0 -1
  331. package/dist/lib/type-context.d.ts +0 -184
  332. package/dist/lib/type-context.d.ts.map +0 -1
  333. package/dist/lib/type-context.js +0 -415
  334. package/dist/lib/type-context.js.map +0 -1
  335. package/dist/lib/type-inference-engine.d.ts +0 -181
  336. package/dist/lib/type-inference-engine.d.ts.map +0 -1
  337. package/dist/lib/type-inference-engine.js +0 -1151
  338. package/dist/lib/type-inference-engine.js.map +0 -1
  339. package/dist/lib/type-rules/type-compatibility-rule.d.ts +0 -79
  340. package/dist/lib/type-rules/type-compatibility-rule.d.ts.map +0 -1
  341. package/dist/lib/type-rules/type-compatibility-rule.js +0 -211
  342. package/dist/lib/type-rules/type-compatibility-rule.js.map +0 -1
@@ -1,406 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { traverse, findClosestMatch } from '../lint-utils.js';
8
- import * as t from '@babel/types';
9
- import { RegisterClass } from '@memberjunction/global';
10
- import { BaseLintRule } from '../lint-rule.js';
11
- const RULE_NAME = 'event-parameter-validation';
12
- /**
13
- * Rule: event-parameter-validation
14
- *
15
- * Validates that event callback handlers access the correct properties from the
16
- * event object, as defined by the component spec's event parameter types.
17
- *
18
- * Catches LLM mistakes like using `e.data` (AG Grid convention) instead of
19
- * `e.record` (MJ DataGrid convention).
20
- *
21
- * Severity: high
22
- * Applies to: all components
23
- */
24
- let EventParameterValidationRule = class EventParameterValidationRule extends BaseLintRule {
25
- get Name() { return RULE_NAME; }
26
- get AppliesTo() { return 'all'; }
27
- Test(ast, _componentName, componentSpec) {
28
- const violations = [];
29
- const eventTypeMap = buildEventTypeMap(componentSpec);
30
- if (eventTypeMap.size === 0)
31
- return violations;
32
- traverse(ast, {
33
- JSXOpeningElement: (path) => {
34
- checkJSXEventHandlers(path, eventTypeMap, violations);
35
- },
36
- CallExpression: (path) => {
37
- checkCreateElementEventHandlers(path, eventTypeMap, violations);
38
- },
39
- });
40
- return violations;
41
- }
42
- };
43
- EventParameterValidationRule = __decorate([
44
- RegisterClass(BaseLintRule, 'event-parameter-validation')
45
- ], EventParameterValidationRule);
46
- export { EventParameterValidationRule };
47
- // ---------------------------------------------------------------------------
48
- // Build event type map from componentSpec.dependencies
49
- // ---------------------------------------------------------------------------
50
- function buildEventTypeMap(componentSpec) {
51
- const result = new Map();
52
- if (!componentSpec?.dependencies)
53
- return result;
54
- for (const dep of componentSpec.dependencies) {
55
- if (!dep.name || !dep.events || dep.events.length === 0)
56
- continue;
57
- const eventMap = new Map();
58
- for (const event of dep.events) {
59
- const validProps = extractEventPropertyNames(event);
60
- if (validProps.size > 0) {
61
- eventMap.set(event.name, validProps);
62
- }
63
- }
64
- if (eventMap.size > 0) {
65
- result.set(dep.name, eventMap);
66
- }
67
- }
68
- return result;
69
- }
70
- /**
71
- * Extract top-level property names from an event's parameter type string.
72
- *
73
- * The first (and typically only) parameter has a type string like:
74
- * "{ record: object, cancel: boolean }"
75
- * "{ sortState: { column: string, direction: string } }"
76
- *
77
- * We extract property names at brace depth 0 (inside the outermost braces).
78
- */
79
- function extractEventPropertyNames(event) {
80
- const result = new Set();
81
- if (!event.parameters || event.parameters.length === 0)
82
- return result;
83
- const param = event.parameters[0];
84
- if (!param.type)
85
- return result;
86
- const typeStr = String(param.type);
87
- const props = parseTopLevelProperties(typeStr);
88
- for (const prop of props) {
89
- result.add(prop);
90
- }
91
- return result;
92
- }
93
- /**
94
- * Parse top-level property names from a type string like "{ a: T, b: U }".
95
- * Handles nested braces, semicolons, and commas as separators.
96
- */
97
- function parseTopLevelProperties(typeStr) {
98
- const result = [];
99
- // Find the outermost braces
100
- const firstBrace = typeStr.indexOf('{');
101
- const lastBrace = typeStr.lastIndexOf('}');
102
- if (firstBrace === -1 || lastBrace === -1 || lastBrace <= firstBrace)
103
- return result;
104
- const inner = typeStr.substring(firstBrace + 1, lastBrace);
105
- // Walk the string, tracking brace depth to find top-level "word:" patterns
106
- let depth = 0;
107
- let segmentStart = 0;
108
- for (let i = 0; i <= inner.length; i++) {
109
- const ch = inner[i];
110
- if (ch === '{' || ch === '<' || ch === '(') {
111
- depth++;
112
- }
113
- else if (ch === '}' || ch === '>' || ch === ')') {
114
- depth--;
115
- }
116
- else if (depth === 0 && (ch === ',' || ch === ';' || i === inner.length)) {
117
- const segment = inner.substring(segmentStart, i).trim();
118
- const propName = extractPropertyNameFromSegment(segment);
119
- if (propName) {
120
- result.push(propName);
121
- }
122
- segmentStart = i + 1;
123
- }
124
- }
125
- return result;
126
- }
127
- /**
128
- * Extract the property name from a segment like "record: object" or "sortState: { ... }".
129
- */
130
- function extractPropertyNameFromSegment(segment) {
131
- const match = segment.match(/^(\w+)\s*:/);
132
- return match ? match[1] : null;
133
- }
134
- // ---------------------------------------------------------------------------
135
- // JSX traversal
136
- // ---------------------------------------------------------------------------
137
- /**
138
- * Convert an event prop name (onRowClick) to the event name (rowClick).
139
- */
140
- function propNameToEventName(propName) {
141
- if (!propName.startsWith('on') || propName.length < 3)
142
- return null;
143
- return propName.charAt(2).toLowerCase() + propName.slice(3);
144
- }
145
- /**
146
- * Check JSX element event handler props against the event type map.
147
- */
148
- function checkJSXEventHandlers(path, eventTypeMap, violations) {
149
- const elementName = getJSXElementName(path.node.name);
150
- if (!elementName)
151
- return;
152
- const componentEventMap = eventTypeMap.get(elementName);
153
- if (!componentEventMap)
154
- return;
155
- for (const attr of path.node.attributes) {
156
- if (!t.isJSXAttribute(attr) || !t.isJSXIdentifier(attr.name))
157
- continue;
158
- const propName = attr.name.name;
159
- const eventName = propNameToEventName(propName);
160
- if (!eventName)
161
- continue;
162
- const validProperties = componentEventMap.get(eventName);
163
- if (!validProperties)
164
- continue;
165
- analyzeEventHandlerAttribute(attr, eventName, elementName, validProperties, path, violations);
166
- }
167
- }
168
- function getJSXElementName(name) {
169
- if (t.isJSXIdentifier(name))
170
- return name.name;
171
- return null;
172
- }
173
- // ---------------------------------------------------------------------------
174
- // React.createElement traversal
175
- // ---------------------------------------------------------------------------
176
- /**
177
- * Check React.createElement(ComponentName, { onEvent: handler }) calls
178
- * against the event type map.
179
- */
180
- function checkCreateElementEventHandlers(path, eventTypeMap, violations) {
181
- if (!isReactCreateElement(path.node.callee))
182
- return;
183
- const args = path.node.arguments;
184
- if (args.length < 2)
185
- return;
186
- // First arg is the component name (Identifier)
187
- const componentArg = args[0];
188
- if (!t.isIdentifier(componentArg))
189
- return;
190
- const componentEventMap = eventTypeMap.get(componentArg.name);
191
- if (!componentEventMap)
192
- return;
193
- // Second arg is the props object
194
- const propsArg = args[1];
195
- if (!t.isObjectExpression(propsArg))
196
- return;
197
- for (const prop of propsArg.properties) {
198
- if (!t.isObjectProperty(prop))
199
- continue;
200
- if (!t.isIdentifier(prop.key) && !t.isStringLiteral(prop.key))
201
- continue;
202
- const propName = t.isIdentifier(prop.key) ? prop.key.name : prop.key.value;
203
- const eventName = propNameToEventName(propName);
204
- if (!eventName)
205
- continue;
206
- const validProperties = componentEventMap.get(eventName);
207
- if (!validProperties)
208
- continue;
209
- analyzeCreateElementHandler(prop.value, eventName, componentArg.name, validProperties, path, violations);
210
- }
211
- }
212
- /**
213
- * Check if a callee is React.createElement.
214
- */
215
- function isReactCreateElement(callee) {
216
- return (t.isMemberExpression(callee) &&
217
- t.isIdentifier(callee.object) &&
218
- callee.object.name === 'React' &&
219
- t.isIdentifier(callee.property) &&
220
- callee.property.name === 'createElement');
221
- }
222
- /**
223
- * Analyze a prop value from React.createElement props object.
224
- */
225
- function analyzeCreateElementHandler(value, eventName, componentName, validProperties, callPath, violations) {
226
- if (t.isArrowFunctionExpression(value) || t.isFunctionExpression(value)) {
227
- analyzeCallbackFunction(value, eventName, componentName, validProperties, violations);
228
- }
229
- else if (t.isIdentifier(value)) {
230
- analyzeNamedHandlerFromScope(value, eventName, componentName, validProperties, callPath, violations);
231
- }
232
- // MemberExpression (e.g., props.handleClick) — skip
233
- }
234
- /**
235
- * Resolve a named handler reference from a CallExpression scope.
236
- */
237
- function analyzeNamedHandlerFromScope(identifier, eventName, componentName, validProperties, callPath, violations) {
238
- const binding = callPath.scope.getBinding(identifier.name);
239
- if (!binding)
240
- return;
241
- const bindingPath = binding.path;
242
- let fn = null;
243
- if (bindingPath.isFunctionDeclaration()) {
244
- fn = bindingPath.node;
245
- }
246
- else if (bindingPath.isVariableDeclarator()) {
247
- const init = bindingPath.node.init;
248
- if (t.isArrowFunctionExpression(init) || t.isFunctionExpression(init)) {
249
- fn = init;
250
- }
251
- }
252
- if (!fn || fn.params.length === 0)
253
- return;
254
- const firstParam = fn.params[0];
255
- if (t.isObjectPattern(firstParam)) {
256
- analyzeDestructuredParam(firstParam, eventName, componentName, validProperties, violations);
257
- }
258
- else if (t.isIdentifier(firstParam)) {
259
- const body = fn.body;
260
- if (t.isBlockStatement(body) || t.isExpression(body)) {
261
- analyzeParameterAccess(firstParam.name, body, eventName, componentName, validProperties, violations);
262
- }
263
- }
264
- }
265
- // ---------------------------------------------------------------------------
266
- // Handler analysis
267
- // ---------------------------------------------------------------------------
268
- /**
269
- * Analyze a JSX attribute that is an event handler prop.
270
- */
271
- function analyzeEventHandlerAttribute(attr, eventName, componentName, validProperties, jsxPath, violations) {
272
- if (!attr.value || !t.isJSXExpressionContainer(attr.value))
273
- return;
274
- const expr = attr.value.expression;
275
- if (t.isJSXEmptyExpression(expr))
276
- return;
277
- if (t.isArrowFunctionExpression(expr) || t.isFunctionExpression(expr)) {
278
- analyzeCallbackFunction(expr, eventName, componentName, validProperties, violations);
279
- }
280
- else if (t.isIdentifier(expr)) {
281
- analyzeNamedHandler(expr, eventName, componentName, validProperties, jsxPath, violations);
282
- }
283
- // MemberExpression (e.g., props.handleClick) — skip
284
- }
285
- /**
286
- * Analyze an inline arrow or function expression callback.
287
- */
288
- function analyzeCallbackFunction(fn, eventName, componentName, validProperties, violations) {
289
- if (fn.params.length === 0)
290
- return;
291
- const firstParam = fn.params[0];
292
- if (t.isObjectPattern(firstParam)) {
293
- analyzeDestructuredParam(firstParam, eventName, componentName, validProperties, violations);
294
- }
295
- else if (t.isIdentifier(firstParam)) {
296
- analyzeParameterAccess(firstParam.name, fn.body, eventName, componentName, validProperties, violations);
297
- }
298
- // RestElement or other patterns — skip
299
- }
300
- /**
301
- * Analyze destructured event parameter like ({ record, cancel }) or ({ data: row }).
302
- */
303
- function analyzeDestructuredParam(pattern, eventName, componentName, validProperties, violations) {
304
- for (const prop of pattern.properties) {
305
- if (t.isRestElement(prop))
306
- continue;
307
- if (!t.isObjectProperty(prop))
308
- continue;
309
- // Get the key name (the property being destructured from the event object)
310
- let keyName = null;
311
- if (t.isIdentifier(prop.key)) {
312
- keyName = prop.key.name;
313
- }
314
- else if (t.isStringLiteral(prop.key)) {
315
- keyName = prop.key.value;
316
- }
317
- if (!keyName)
318
- continue;
319
- if (validProperties.has(keyName))
320
- continue;
321
- const suggestion = findClosestMatch(keyName, validProperties);
322
- const validList = Array.from(validProperties).join(', ');
323
- violations.push({
324
- rule: RULE_NAME,
325
- severity: 'high',
326
- line: prop.loc?.start.line || 0,
327
- column: prop.loc?.start.column || 0,
328
- message: `Destructured property "${keyName}" does not exist on ${componentName} "${eventName}" event. Valid properties: ${validList}`,
329
- suggestion: suggestion
330
- ? { text: `Did you mean "${suggestion}"?`, example: `({ ${suggestion} }) => { ... }` }
331
- : { text: `Valid properties for ${eventName}: ${validList}` },
332
- });
333
- }
334
- }
335
- /**
336
- * Analyze member access on the event parameter (e.g., e.data, e.record).
337
- * Only checks first-level property access.
338
- */
339
- function analyzeParameterAccess(paramName, body, eventName, componentName, validProperties, violations) {
340
- // Wrap expression body in a temporary structure for uniform traversal
341
- const bodyNode = t.isBlockStatement(body) ? body : t.expressionStatement(body);
342
- const tempFile = t.file(t.program([t.isStatement(bodyNode) ? bodyNode : t.expressionStatement(bodyNode)]));
343
- const seen = new Set();
344
- traverse(tempFile, {
345
- MemberExpression(innerPath) {
346
- if (!t.isIdentifier(innerPath.node.object) || innerPath.node.object.name !== paramName)
347
- return;
348
- if (innerPath.node.computed)
349
- return;
350
- if (!t.isIdentifier(innerPath.node.property))
351
- return;
352
- const accessedProp = innerPath.node.property.name;
353
- if (validProperties.has(accessedProp))
354
- return;
355
- // Deduplicate: only report each wrong property once per handler
356
- const key = `${accessedProp}`;
357
- if (seen.has(key))
358
- return;
359
- seen.add(key);
360
- const suggestion = findClosestMatch(accessedProp, validProperties);
361
- const validList = Array.from(validProperties).join(', ');
362
- violations.push({
363
- rule: RULE_NAME,
364
- severity: 'high',
365
- line: innerPath.node.loc?.start.line || 0,
366
- column: innerPath.node.loc?.start.column || 0,
367
- message: `Property "${accessedProp}" does not exist on ${componentName} "${eventName}" event parameter. Valid properties: ${validList}`,
368
- suggestion: suggestion
369
- ? { text: `Did you mean "${suggestion}"?`, example: `${paramName}.${suggestion}` }
370
- : { text: `Valid properties for ${eventName}: ${validList}` },
371
- });
372
- },
373
- });
374
- }
375
- /**
376
- * Attempt to resolve a named function reference and analyze its parameters.
377
- */
378
- function analyzeNamedHandler(identifier, eventName, componentName, validProperties, jsxPath, violations) {
379
- const binding = jsxPath.scope.getBinding(identifier.name);
380
- if (!binding)
381
- return;
382
- const bindingPath = binding.path;
383
- let fn = null;
384
- if (bindingPath.isFunctionDeclaration()) {
385
- fn = bindingPath.node;
386
- }
387
- else if (bindingPath.isVariableDeclarator()) {
388
- const init = bindingPath.node.init;
389
- if (t.isArrowFunctionExpression(init) || t.isFunctionExpression(init)) {
390
- fn = init;
391
- }
392
- }
393
- if (!fn || fn.params.length === 0)
394
- return;
395
- const firstParam = fn.params[0];
396
- if (t.isObjectPattern(firstParam)) {
397
- analyzeDestructuredParam(firstParam, eventName, componentName, validProperties, violations);
398
- }
399
- else if (t.isIdentifier(firstParam)) {
400
- const body = fn.body;
401
- if (t.isBlockStatement(body) || t.isExpression(body)) {
402
- analyzeParameterAccess(firstParam.name, body, eventName, componentName, validProperties, violations);
403
- }
404
- }
405
- }
406
- //# sourceMappingURL=event-parameter-validation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-parameter-validation.js","sourceRoot":"","sources":["../../../src/lib/runtime-rules/event-parameter-validation.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAY,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,MAAM,SAAS,GAAG,4BAA4B,CAAC;AAE/C;;;;;;;;;;;GAWG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,YAAY;IAC5D,IAAI,IAAI,KAAK,OAAO,SAAS,CAAC,CAAC,CAAC;I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AI,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;YACrD,sBAAsB,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;QACvG,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,61 +0,0 @@
1
- import './ai-tools-availability-check.js';
2
- import './callback-event-validation.js';
3
- import './chart-field-validation.js';
4
- import './child-component-prop-validation.js';
5
- import './component-name-mismatch.js';
6
- import './component-not-in-dependencies.js';
7
- import './component-props-validation.js';
8
- import './component-usage-without-destructuring.js';
9
- import './data-result-validation.js';
10
- import './datagrid-field-validation.js';
11
- import './dependency-shadowing.js';
12
- import './entity-field-access-validation.js';
13
- import './event-parameter-validation.js';
14
- import './library-variable-names.js';
15
- import './no-child-implementation.js';
16
- import './no-data-prop.js';
17
- import './no-export-statements.js';
18
- import './no-iife-wrapper.js';
19
- import './no-import-statements.js';
20
- import './no-react-destructuring.js';
21
- import './no-require-statements.js';
22
- import './no-return-component.js';
23
- import './no-use-reducer.js';
24
- import './no-unwrap-utility-libs.js';
25
- import './no-window-access.js';
26
- import './overflow-hidden-on-layout-container.js';
27
- import './noisy-settings-updates.js';
28
- import './pass-standard-props.js';
29
- import './prefer-async-await.js';
30
- import './prefer-jsx-syntax.js';
31
- import './prop-state-sync.js';
32
- import './property-name-consistency.js';
33
- import './query-result-field-access-validation.js';
34
- import './react-component-naming.js';
35
- import './react-hooks-rules.js';
36
- import './required-queries-not-called.js';
37
- import './runquery-call-validation.js';
38
- import './runview-call-validation.js';
39
- import './saved-user-settings-pattern.js';
40
- import './search-availability-check.js';
41
- import './search-call-validation.js';
42
- import './server-reload-on-client-operation.js';
43
- import './single-function-only.js';
44
- import './string-replace-all-occurrences.js';
45
- import './string-template-validation.js';
46
- import './styles-validation.js';
47
- import './type-inference-errors.js';
48
- import './type-mismatch-operation.js';
49
- import './undefined-component-usage.js';
50
- import './undefined-jsx-component.js';
51
- import './unsafe-array-operations.js';
52
- import './unsafe-formatting-methods.js';
53
- import './unused-component-dependencies.js';
54
- import './unused-libraries.js';
55
- import './use-function-declaration.js';
56
- import './use-unwrap-components.js';
57
- import './useeffect-unstable-dependencies.js';
58
- import './utilities-api-validation.js';
59
- import './utilities-no-direct-instantiation.js';
60
- import './validate-component-references.js';
61
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/runtime-rules/index.ts"],"names":[],"mappings":"AACA,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2BAA2B,CAAC;AACnC,OAAO,iCAAiC,CAAC;AACzC,OAAO,8BAA8B,CAAC;AACtC,OAAO,yCAAyC,CAAC;AACjD,OAAO,0BAA0B,CAAC;AAClC,OAAO,6BAA6B,CAAC;AACrC,OAAO,wBAAwB,CAAC;AAChC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,8BAA8B,CAAC;AACtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,2BAA2B,CAAC;AACnC,OAAO,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAChC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0BAA0B,CAAC;AAClC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,6BAA6B,CAAC;AACrC,OAAO,wCAAwC,CAAC;AAChD,OAAO,0BAA0B,CAAC;AAClC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,+BAA+B,CAAC;AACvC,OAAO,4BAA4B,CAAC;AACpC,OAAO,2BAA2B,CAAC;AACnC,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,wBAAwB,CAAC;AAChC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,8BAA8B,CAAC;AACtC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,yBAAyB,CAAC;AACjC,OAAO,2BAA2B,CAAC;AACnC,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,6BAA6B,CAAC;AACrC,OAAO,iCAAiC,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,4BAA4B,CAAC;AACpC,OAAO,yBAAyB,CAAC;AACjC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,4BAA4B,CAAC;AACpC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC"}
@@ -1,62 +0,0 @@
1
- // Auto-import all rule files to trigger @RegisterClass decorators
2
- import './ai-tools-availability-check.js';
3
- import './callback-event-validation.js';
4
- import './chart-field-validation.js';
5
- import './child-component-prop-validation.js';
6
- import './component-name-mismatch.js';
7
- import './component-not-in-dependencies.js';
8
- import './component-props-validation.js';
9
- import './component-usage-without-destructuring.js';
10
- import './data-result-validation.js';
11
- import './datagrid-field-validation.js';
12
- import './dependency-shadowing.js';
13
- import './entity-field-access-validation.js';
14
- import './event-parameter-validation.js';
15
- import './library-variable-names.js';
16
- import './no-child-implementation.js';
17
- import './no-data-prop.js';
18
- import './no-export-statements.js';
19
- import './no-iife-wrapper.js';
20
- import './no-import-statements.js';
21
- import './no-react-destructuring.js';
22
- import './no-require-statements.js';
23
- import './no-return-component.js';
24
- import './no-use-reducer.js';
25
- import './no-unwrap-utility-libs.js';
26
- import './no-window-access.js';
27
- import './overflow-hidden-on-layout-container.js';
28
- import './noisy-settings-updates.js';
29
- import './pass-standard-props.js';
30
- import './prefer-async-await.js';
31
- import './prefer-jsx-syntax.js';
32
- import './prop-state-sync.js';
33
- import './property-name-consistency.js';
34
- import './query-result-field-access-validation.js';
35
- import './react-component-naming.js';
36
- import './react-hooks-rules.js';
37
- import './required-queries-not-called.js';
38
- import './runquery-call-validation.js';
39
- import './runview-call-validation.js';
40
- import './saved-user-settings-pattern.js';
41
- import './search-availability-check.js';
42
- import './search-call-validation.js';
43
- import './server-reload-on-client-operation.js';
44
- import './single-function-only.js';
45
- import './string-replace-all-occurrences.js';
46
- import './string-template-validation.js';
47
- import './styles-validation.js';
48
- import './type-inference-errors.js';
49
- import './type-mismatch-operation.js';
50
- import './undefined-component-usage.js';
51
- import './undefined-jsx-component.js';
52
- import './unsafe-array-operations.js';
53
- import './unsafe-formatting-methods.js';
54
- import './unused-component-dependencies.js';
55
- import './unused-libraries.js';
56
- import './use-function-declaration.js';
57
- import './use-unwrap-components.js';
58
- import './useeffect-unstable-dependencies.js';
59
- import './utilities-api-validation.js';
60
- import './utilities-no-direct-instantiation.js';
61
- import './validate-component-references.js';
62
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/runtime-rules/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2BAA2B,CAAC;AACnC,OAAO,iCAAiC,CAAC;AACzC,OAAO,8BAA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AAiC,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,4BAA4B,CAAC;AACpC,OAAO,yBAAyB,CAAC;AACjC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,4BAA4B,CAAC;AACpC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC"}
@@ -1,24 +0,0 @@
1
- import * as t from '@babel/types';
2
- import { BaseLintRule } from '../lint-rule.js';
3
- import { Violation } from '../component-linter.js';
4
- import { ComponentSpec } from '@memberjunction/interactive-component-types';
5
- /**
6
- * Rule: library-variable-names
7
- *
8
- * Ensures correct usage of library global variables. Libraries must be accessed
9
- * using unwrapComponents with the correct global variable name as specified in
10
- * the component spec.
11
- *
12
- * Prevents:
13
- * - Using incorrect library global variable names
14
- * - Self-assignment of library globals (const chroma = chroma)
15
- *
16
- * Severity: critical
17
- * Applies to: all components
18
- */
19
- export declare class LibraryVariableNamesRule extends BaseLintRule {
20
- get Name(): string;
21
- get AppliesTo(): 'all' | 'child' | 'root';
22
- Test(ast: t.File, _componentName: string, componentSpec?: ComponentSpec): Violation[];
23
- }
24
- //# sourceMappingURL=library-variable-names.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"library-variable-names.d.ts","sourceRoot":"","sources":["../../../src/lib/runtime-rules/library-variable-names.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAE5E;;;;;;;;;;;;;GAaG;AACH,qBACa,wBAAyB,SAAQ,YAAY;IACxD,IAAI,IAAI,WAAuC;IAC/C,IAAI,SAAS,IAAI,KAAK,GAAG,OAAO,GAAG,MAAM,CAAkB;IAE3D,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,EAAE;CAiEtF"}