@memberjunction/react-linter 0.0.1 → 5.38.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.
- package/dist/component-linter.d.ts +77 -0
- package/dist/component-linter.d.ts.map +1 -0
- package/dist/component-linter.js +1206 -0
- package/dist/component-linter.js.map +1 -0
- package/dist/control-flow-analyzer.d.ts +184 -0
- package/dist/control-flow-analyzer.d.ts.map +1 -0
- package/dist/control-flow-analyzer.js +798 -0
- package/dist/control-flow-analyzer.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/library-lint-cache.d.ts +50 -0
- package/dist/library-lint-cache.d.ts.map +1 -0
- package/dist/library-lint-cache.js +173 -0
- package/dist/library-lint-cache.js.map +1 -0
- package/dist/lint-rule.d.ts +70 -0
- package/dist/lint-rule.d.ts.map +1 -0
- package/dist/lint-rule.js +30 -0
- package/dist/lint-rule.js.map +1 -0
- package/dist/lint-utils.d.ts +131 -0
- package/dist/lint-utils.d.ts.map +1 -0
- package/dist/lint-utils.js +358 -0
- package/dist/lint-utils.js.map +1 -0
- package/dist/linter-options.d.ts +51 -0
- package/dist/linter-options.d.ts.map +1 -0
- package/dist/linter-options.js +2 -0
- package/dist/linter-options.js.map +1 -0
- package/dist/prop-value-extractor.d.ts +147 -0
- package/dist/prop-value-extractor.d.ts.map +1 -0
- package/dist/prop-value-extractor.js +472 -0
- package/dist/prop-value-extractor.js.map +1 -0
- package/dist/runtime-rules/ai-tools-availability-check.d.ts +9 -0
- package/dist/runtime-rules/ai-tools-availability-check.d.ts.map +1 -0
- package/dist/runtime-rules/ai-tools-availability-check.js +223 -0
- package/dist/runtime-rules/ai-tools-availability-check.js.map +1 -0
- package/dist/runtime-rules/callback-event-validation.d.ts +22 -0
- package/dist/runtime-rules/callback-event-validation.d.ts.map +1 -0
- package/dist/runtime-rules/callback-event-validation.js +561 -0
- package/dist/runtime-rules/callback-event-validation.js.map +1 -0
- package/dist/runtime-rules/chart-field-validation.d.ts +10 -0
- package/dist/runtime-rules/chart-field-validation.d.ts.map +1 -0
- package/dist/runtime-rules/chart-field-validation.js +270 -0
- package/dist/runtime-rules/chart-field-validation.js.map +1 -0
- package/dist/runtime-rules/child-component-prop-validation.d.ts +11 -0
- package/dist/runtime-rules/child-component-prop-validation.d.ts.map +1 -0
- package/dist/runtime-rules/child-component-prop-validation.js +443 -0
- package/dist/runtime-rules/child-component-prop-validation.js.map +1 -0
- package/dist/runtime-rules/component-name-mismatch.d.ts +19 -0
- package/dist/runtime-rules/component-name-mismatch.d.ts.map +1 -0
- package/dist/runtime-rules/component-name-mismatch.js +82 -0
- package/dist/runtime-rules/component-name-mismatch.js.map +1 -0
- package/dist/runtime-rules/component-not-in-dependencies.d.ts +20 -0
- package/dist/runtime-rules/component-not-in-dependencies.d.ts.map +1 -0
- package/dist/runtime-rules/component-not-in-dependencies.js +92 -0
- package/dist/runtime-rules/component-not-in-dependencies.js.map +1 -0
- package/dist/runtime-rules/component-props-validation.d.ts +25 -0
- package/dist/runtime-rules/component-props-validation.d.ts.map +1 -0
- package/dist/runtime-rules/component-props-validation.js +228 -0
- package/dist/runtime-rules/component-props-validation.js.map +1 -0
- package/dist/runtime-rules/component-usage-without-destructuring.d.ts +20 -0
- package/dist/runtime-rules/component-usage-without-destructuring.d.ts.map +1 -0
- package/dist/runtime-rules/component-usage-without-destructuring.js +124 -0
- package/dist/runtime-rules/component-usage-without-destructuring.js.map +1 -0
- package/dist/runtime-rules/data-result-validation.d.ts +9 -0
- package/dist/runtime-rules/data-result-validation.d.ts.map +1 -0
- package/dist/runtime-rules/data-result-validation.js +763 -0
- package/dist/runtime-rules/data-result-validation.js.map +1 -0
- package/dist/runtime-rules/datagrid-field-validation.d.ts +10 -0
- package/dist/runtime-rules/datagrid-field-validation.d.ts.map +1 -0
- package/dist/runtime-rules/datagrid-field-validation.js +249 -0
- package/dist/runtime-rules/datagrid-field-validation.js.map +1 -0
- package/dist/runtime-rules/dependency-shadowing.d.ts +20 -0
- package/dist/runtime-rules/dependency-shadowing.d.ts.map +1 -0
- package/dist/runtime-rules/dependency-shadowing.js +147 -0
- package/dist/runtime-rules/dependency-shadowing.js.map +1 -0
- package/dist/runtime-rules/entity-field-access-validation.d.ts +12 -0
- package/dist/runtime-rules/entity-field-access-validation.d.ts.map +1 -0
- package/dist/runtime-rules/entity-field-access-validation.js +304 -0
- package/dist/runtime-rules/entity-field-access-validation.js.map +1 -0
- package/dist/runtime-rules/event-parameter-validation.d.ts +22 -0
- package/dist/runtime-rules/event-parameter-validation.d.ts.map +1 -0
- package/dist/runtime-rules/event-parameter-validation.js +406 -0
- package/dist/runtime-rules/event-parameter-validation.js.map +1 -0
- package/dist/runtime-rules/index.d.ts +61 -0
- package/dist/runtime-rules/index.d.ts.map +1 -0
- package/dist/runtime-rules/index.js +62 -0
- package/dist/runtime-rules/index.js.map +1 -0
- package/dist/runtime-rules/library-variable-names.d.ts +24 -0
- package/dist/runtime-rules/library-variable-names.d.ts.map +1 -0
- package/dist/runtime-rules/library-variable-names.js +88 -0
- package/dist/runtime-rules/library-variable-names.js.map +1 -0
- package/dist/runtime-rules/no-child-implementation.d.ts +18 -0
- package/dist/runtime-rules/no-child-implementation.d.ts.map +1 -0
- package/dist/runtime-rules/no-child-implementation.js +57 -0
- package/dist/runtime-rules/no-child-implementation.js.map +1 -0
- package/dist/runtime-rules/no-data-prop.d.ts +22 -0
- package/dist/runtime-rules/no-data-prop.d.ts.map +1 -0
- package/dist/runtime-rules/no-data-prop.js +111 -0
- package/dist/runtime-rules/no-data-prop.js.map +1 -0
- package/dist/runtime-rules/no-export-statements.d.ts +18 -0
- package/dist/runtime-rules/no-export-statements.d.ts.map +1 -0
- package/dist/runtime-rules/no-export-statements.js +143 -0
- package/dist/runtime-rules/no-export-statements.js.map +1 -0
- package/dist/runtime-rules/no-iife-wrapper.d.ts +18 -0
- package/dist/runtime-rules/no-iife-wrapper.d.ts.map +1 -0
- package/dist/runtime-rules/no-iife-wrapper.js +217 -0
- package/dist/runtime-rules/no-iife-wrapper.js.map +1 -0
- package/dist/runtime-rules/no-import-statements.d.ts +18 -0
- package/dist/runtime-rules/no-import-statements.d.ts.map +1 -0
- package/dist/runtime-rules/no-import-statements.js +65 -0
- package/dist/runtime-rules/no-import-statements.js.map +1 -0
- package/dist/runtime-rules/no-react-destructuring.d.ts +18 -0
- package/dist/runtime-rules/no-react-destructuring.d.ts.map +1 -0
- package/dist/runtime-rules/no-react-destructuring.js +60 -0
- package/dist/runtime-rules/no-react-destructuring.js.map +1 -0
- package/dist/runtime-rules/no-require-statements.d.ts +18 -0
- package/dist/runtime-rules/no-require-statements.d.ts.map +1 -0
- package/dist/runtime-rules/no-require-statements.js +109 -0
- package/dist/runtime-rules/no-require-statements.js.map +1 -0
- package/dist/runtime-rules/no-return-component.d.ts +18 -0
- package/dist/runtime-rules/no-return-component.d.ts.map +1 -0
- package/dist/runtime-rules/no-return-component.js +106 -0
- package/dist/runtime-rules/no-return-component.js.map +1 -0
- package/dist/runtime-rules/no-unwrap-utility-libs.d.ts +20 -0
- package/dist/runtime-rules/no-unwrap-utility-libs.d.ts.map +1 -0
- package/dist/runtime-rules/no-unwrap-utility-libs.js +75 -0
- package/dist/runtime-rules/no-unwrap-utility-libs.js.map +1 -0
- package/dist/runtime-rules/no-use-reducer.d.ts +19 -0
- package/dist/runtime-rules/no-use-reducer.d.ts.map +1 -0
- package/dist/runtime-rules/no-use-reducer.js +78 -0
- package/dist/runtime-rules/no-use-reducer.js.map +1 -0
- package/dist/runtime-rules/no-window-access.d.ts +23 -0
- package/dist/runtime-rules/no-window-access.d.ts.map +1 -0
- package/dist/runtime-rules/no-window-access.js +136 -0
- package/dist/runtime-rules/no-window-access.js.map +1 -0
- package/dist/runtime-rules/noisy-settings-updates.d.ts +18 -0
- package/dist/runtime-rules/noisy-settings-updates.d.ts.map +1 -0
- package/dist/runtime-rules/noisy-settings-updates.js +110 -0
- package/dist/runtime-rules/noisy-settings-updates.js.map +1 -0
- package/dist/runtime-rules/overflow-hidden-on-layout-container.d.ts +30 -0
- package/dist/runtime-rules/overflow-hidden-on-layout-container.d.ts.map +1 -0
- package/dist/runtime-rules/overflow-hidden-on-layout-container.js +220 -0
- package/dist/runtime-rules/overflow-hidden-on-layout-container.js.map +1 -0
- package/dist/runtime-rules/pass-standard-props.d.ts +19 -0
- package/dist/runtime-rules/pass-standard-props.d.ts.map +1 -0
- package/dist/runtime-rules/pass-standard-props.js +82 -0
- package/dist/runtime-rules/pass-standard-props.js.map +1 -0
- package/dist/runtime-rules/prefer-async-await.d.ts +17 -0
- package/dist/runtime-rules/prefer-async-await.d.ts.map +1 -0
- package/dist/runtime-rules/prefer-async-await.js +52 -0
- package/dist/runtime-rules/prefer-async-await.js.map +1 -0
- package/dist/runtime-rules/prefer-jsx-syntax.d.ts +17 -0
- package/dist/runtime-rules/prefer-jsx-syntax.d.ts.map +1 -0
- package/dist/runtime-rules/prefer-jsx-syntax.js +51 -0
- package/dist/runtime-rules/prefer-jsx-syntax.js.map +1 -0
- package/dist/runtime-rules/prop-state-sync.d.ts +19 -0
- package/dist/runtime-rules/prop-state-sync.d.ts.map +1 -0
- package/dist/runtime-rules/prop-state-sync.js +76 -0
- package/dist/runtime-rules/prop-state-sync.js.map +1 -0
- package/dist/runtime-rules/property-name-consistency.d.ts +20 -0
- package/dist/runtime-rules/property-name-consistency.d.ts.map +1 -0
- package/dist/runtime-rules/property-name-consistency.js +172 -0
- package/dist/runtime-rules/property-name-consistency.js.map +1 -0
- package/dist/runtime-rules/query-result-field-access-validation.d.ts +10 -0
- package/dist/runtime-rules/query-result-field-access-validation.d.ts.map +1 -0
- package/dist/runtime-rules/query-result-field-access-validation.js +304 -0
- package/dist/runtime-rules/query-result-field-access-validation.js.map +1 -0
- package/dist/runtime-rules/react-component-naming.d.ts +19 -0
- package/dist/runtime-rules/react-component-naming.d.ts.map +1 -0
- package/dist/runtime-rules/react-component-naming.js +72 -0
- package/dist/runtime-rules/react-component-naming.js.map +1 -0
- package/dist/runtime-rules/react-hooks-rules.d.ts +27 -0
- package/dist/runtime-rules/react-hooks-rules.d.ts.map +1 -0
- package/dist/runtime-rules/react-hooks-rules.js +223 -0
- package/dist/runtime-rules/react-hooks-rules.js.map +1 -0
- package/dist/runtime-rules/required-queries-not-called.d.ts +19 -0
- package/dist/runtime-rules/required-queries-not-called.d.ts.map +1 -0
- package/dist/runtime-rules/required-queries-not-called.js +146 -0
- package/dist/runtime-rules/required-queries-not-called.js.map +1 -0
- package/dist/runtime-rules/runquery-call-validation.d.ts +11 -0
- package/dist/runtime-rules/runquery-call-validation.d.ts.map +1 -0
- package/dist/runtime-rules/runquery-call-validation.js +886 -0
- package/dist/runtime-rules/runquery-call-validation.js.map +1 -0
- package/dist/runtime-rules/runview-call-validation.d.ts +10 -0
- package/dist/runtime-rules/runview-call-validation.d.ts.map +1 -0
- package/dist/runtime-rules/runview-call-validation.js +336 -0
- package/dist/runtime-rules/runview-call-validation.js.map +1 -0
- package/dist/runtime-rules/saved-user-settings-pattern.d.ts +19 -0
- package/dist/runtime-rules/saved-user-settings-pattern.d.ts.map +1 -0
- package/dist/runtime-rules/saved-user-settings-pattern.js +90 -0
- package/dist/runtime-rules/saved-user-settings-pattern.js.map +1 -0
- package/dist/runtime-rules/search-availability-check.d.ts +9 -0
- package/dist/runtime-rules/search-availability-check.d.ts.map +1 -0
- package/dist/runtime-rules/search-availability-check.js +220 -0
- package/dist/runtime-rules/search-availability-check.js.map +1 -0
- package/dist/runtime-rules/search-call-validation.d.ts +9 -0
- package/dist/runtime-rules/search-call-validation.d.ts.map +1 -0
- package/dist/runtime-rules/search-call-validation.js +336 -0
- package/dist/runtime-rules/search-call-validation.js.map +1 -0
- package/dist/runtime-rules/server-reload-on-client-operation.d.ts +18 -0
- package/dist/runtime-rules/server-reload-on-client-operation.d.ts.map +1 -0
- package/dist/runtime-rules/server-reload-on-client-operation.js +107 -0
- package/dist/runtime-rules/server-reload-on-client-operation.js.map +1 -0
- package/dist/runtime-rules/single-function-only.d.ts +18 -0
- package/dist/runtime-rules/single-function-only.d.ts.map +1 -0
- package/dist/runtime-rules/single-function-only.js +103 -0
- package/dist/runtime-rules/single-function-only.js.map +1 -0
- package/dist/runtime-rules/string-replace-all-occurrences.d.ts +19 -0
- package/dist/runtime-rules/string-replace-all-occurrences.d.ts.map +1 -0
- package/dist/runtime-rules/string-replace-all-occurrences.js +109 -0
- package/dist/runtime-rules/string-replace-all-occurrences.js.map +1 -0
- package/dist/runtime-rules/string-template-validation.d.ts +22 -0
- package/dist/runtime-rules/string-template-validation.d.ts.map +1 -0
- package/dist/runtime-rules/string-template-validation.js +163 -0
- package/dist/runtime-rules/string-template-validation.js.map +1 -0
- package/dist/runtime-rules/styles-validation.d.ts +10 -0
- package/dist/runtime-rules/styles-validation.d.ts.map +1 -0
- package/dist/runtime-rules/styles-validation.js +153 -0
- package/dist/runtime-rules/styles-validation.js.map +1 -0
- package/dist/runtime-rules/type-inference-errors.d.ts +23 -0
- package/dist/runtime-rules/type-inference-errors.d.ts.map +1 -0
- package/dist/runtime-rules/type-inference-errors.js +53 -0
- package/dist/runtime-rules/type-inference-errors.js.map +1 -0
- package/dist/runtime-rules/type-mismatch-operation.d.ts +23 -0
- package/dist/runtime-rules/type-mismatch-operation.d.ts.map +1 -0
- package/dist/runtime-rules/type-mismatch-operation.js +145 -0
- package/dist/runtime-rules/type-mismatch-operation.js.map +1 -0
- package/dist/runtime-rules/undefined-component-usage.d.ts +20 -0
- package/dist/runtime-rules/undefined-component-usage.d.ts.map +1 -0
- package/dist/runtime-rules/undefined-component-usage.js +138 -0
- package/dist/runtime-rules/undefined-component-usage.js.map +1 -0
- package/dist/runtime-rules/undefined-jsx-component.d.ts +25 -0
- package/dist/runtime-rules/undefined-jsx-component.d.ts.map +1 -0
- package/dist/runtime-rules/undefined-jsx-component.js +269 -0
- package/dist/runtime-rules/undefined-jsx-component.js.map +1 -0
- package/dist/runtime-rules/unsafe-array-operations.d.ts +25 -0
- package/dist/runtime-rules/unsafe-array-operations.d.ts.map +1 -0
- package/dist/runtime-rules/unsafe-array-operations.js +347 -0
- package/dist/runtime-rules/unsafe-array-operations.js.map +1 -0
- package/dist/runtime-rules/unsafe-formatting-methods.d.ts +24 -0
- package/dist/runtime-rules/unsafe-formatting-methods.d.ts.map +1 -0
- package/dist/runtime-rules/unsafe-formatting-methods.js +277 -0
- package/dist/runtime-rules/unsafe-formatting-methods.js.map +1 -0
- package/dist/runtime-rules/unused-component-dependencies.d.ts +19 -0
- package/dist/runtime-rules/unused-component-dependencies.d.ts.map +1 -0
- package/dist/runtime-rules/unused-component-dependencies.js +90 -0
- package/dist/runtime-rules/unused-component-dependencies.js.map +1 -0
- package/dist/runtime-rules/unused-libraries.d.ts +19 -0
- package/dist/runtime-rules/unused-libraries.d.ts.map +1 -0
- package/dist/runtime-rules/unused-libraries.js +127 -0
- package/dist/runtime-rules/unused-libraries.js.map +1 -0
- package/dist/runtime-rules/use-function-declaration.d.ts +18 -0
- package/dist/runtime-rules/use-function-declaration.d.ts.map +1 -0
- package/dist/runtime-rules/use-function-declaration.js +127 -0
- package/dist/runtime-rules/use-function-declaration.js.map +1 -0
- package/dist/runtime-rules/use-unwrap-components.d.ts +19 -0
- package/dist/runtime-rules/use-unwrap-components.d.ts.map +1 -0
- package/dist/runtime-rules/use-unwrap-components.js +84 -0
- package/dist/runtime-rules/use-unwrap-components.js.map +1 -0
- package/dist/runtime-rules/useeffect-unstable-dependencies.d.ts +23 -0
- package/dist/runtime-rules/useeffect-unstable-dependencies.d.ts.map +1 -0
- package/dist/runtime-rules/useeffect-unstable-dependencies.js +215 -0
- package/dist/runtime-rules/useeffect-unstable-dependencies.js.map +1 -0
- package/dist/runtime-rules/utilities-api-validation.d.ts +24 -0
- package/dist/runtime-rules/utilities-api-validation.d.ts.map +1 -0
- package/dist/runtime-rules/utilities-api-validation.js +121 -0
- package/dist/runtime-rules/utilities-api-validation.js.map +1 -0
- package/dist/runtime-rules/utilities-no-direct-instantiation.d.ts +20 -0
- package/dist/runtime-rules/utilities-no-direct-instantiation.d.ts.map +1 -0
- package/dist/runtime-rules/utilities-no-direct-instantiation.js +58 -0
- package/dist/runtime-rules/utilities-no-direct-instantiation.js.map +1 -0
- package/dist/runtime-rules/validate-component-references.d.ts +19 -0
- package/dist/runtime-rules/validate-component-references.d.ts.map +1 -0
- package/dist/runtime-rules/validate-component-references.js +255 -0
- package/dist/runtime-rules/validate-component-references.js.map +1 -0
- package/dist/schema-validation/component-prop-rule.d.ts +131 -0
- package/dist/schema-validation/component-prop-rule.d.ts.map +1 -0
- package/dist/schema-validation/component-prop-rule.js +625 -0
- package/dist/schema-validation/component-prop-rule.js.map +1 -0
- package/dist/schema-validation/index.d.ts +26 -0
- package/dist/schema-validation/index.d.ts.map +1 -0
- package/dist/schema-validation/index.js +26 -0
- package/dist/schema-validation/index.js.map +1 -0
- package/dist/schema-validation/semantic-validators/index.d.ts +23 -0
- package/dist/schema-validation/semantic-validators/index.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/index.js +23 -0
- package/dist/schema-validation/semantic-validators/index.js.map +1 -0
- package/dist/schema-validation/semantic-validators/required-when-validator.d.ts +43 -0
- package/dist/schema-validation/semantic-validators/required-when-validator.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/required-when-validator.js +94 -0
- package/dist/schema-validation/semantic-validators/required-when-validator.js.map +1 -0
- package/dist/schema-validation/semantic-validators/semantic-validator-registry.d.ts +122 -0
- package/dist/schema-validation/semantic-validators/semantic-validator-registry.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/semantic-validator-registry.js +166 -0
- package/dist/schema-validation/semantic-validators/semantic-validator-registry.js.map +1 -0
- package/dist/schema-validation/semantic-validators/semantic-validator.d.ts +260 -0
- package/dist/schema-validation/semantic-validators/semantic-validator.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/semantic-validator.js +301 -0
- package/dist/schema-validation/semantic-validators/semantic-validator.js.map +1 -0
- package/dist/schema-validation/semantic-validators/sql-where-clause-validator.d.ts +115 -0
- package/dist/schema-validation/semantic-validators/sql-where-clause-validator.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/sql-where-clause-validator.js +381 -0
- package/dist/schema-validation/semantic-validators/sql-where-clause-validator.js.map +1 -0
- package/dist/schema-validation/semantic-validators/subset-of-entity-fields-validator.d.ts +60 -0
- package/dist/schema-validation/semantic-validators/subset-of-entity-fields-validator.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/subset-of-entity-fields-validator.js +195 -0
- package/dist/schema-validation/semantic-validators/subset-of-entity-fields-validator.js.map +1 -0
- package/dist/schema-validation/semantic-validators/validation-context.d.ts +335 -0
- package/dist/schema-validation/semantic-validators/validation-context.d.ts.map +1 -0
- package/dist/schema-validation/semantic-validators/validation-context.js +13 -0
- package/dist/schema-validation/semantic-validators/validation-context.js.map +1 -0
- package/dist/styles-type-analyzer.d.ts +64 -0
- package/dist/styles-type-analyzer.d.ts.map +1 -0
- package/dist/styles-type-analyzer.js +242 -0
- package/dist/styles-type-analyzer.js.map +1 -0
- package/dist/type-context.d.ts +184 -0
- package/dist/type-context.d.ts.map +1 -0
- package/dist/type-context.js +415 -0
- package/dist/type-context.js.map +1 -0
- package/dist/type-inference-engine.d.ts +181 -0
- package/dist/type-inference-engine.d.ts.map +1 -0
- package/dist/type-inference-engine.js +1151 -0
- package/dist/type-inference-engine.js.map +1 -0
- package/dist/type-rules/type-compatibility-rule.d.ts +85 -0
- package/dist/type-rules/type-compatibility-rule.d.ts.map +1 -0
- package/dist/type-rules/type-compatibility-rule.js +211 -0
- package/dist/type-rules/type-compatibility-rule.js.map +1 -0
- package/package.json +35 -7
- package/README.md +0 -45
|
@@ -0,0 +1,406 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-parameter-validation.js","sourceRoot":"","sources":["../../src/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;IAChC,IAAI,SAAS,KAA+B,OAAO,KAAK,CAAC,CAAC,CAAC;IAE3D,IAAI,CAAC,GAAW,EAAE,cAAsB,EAAE,aAA6B;QACrE,MAAM,UAAU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,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"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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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AAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/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,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,O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'../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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-variable-names.d.ts","sourceRoot":"","sources":["../../src/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"}
|