@empline/preflight 1.1.11 → 1.1.13
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/checks/consolidated/auth-storage-state.d.ts +3 -0
- package/dist/checks/consolidated/auth-storage-state.d.ts.map +1 -0
- package/dist/checks/consolidated/auth-storage-state.js +146 -0
- package/dist/checks/consolidated/auth-storage-state.js.map +1 -0
- package/dist/checks/consolidated/business.d.ts +50 -0
- package/dist/checks/consolidated/business.d.ts.map +1 -0
- package/dist/checks/consolidated/business.js +252 -0
- package/dist/checks/consolidated/business.js.map +1 -0
- package/dist/checks/consolidated/caching-strategy.d.ts +104 -0
- package/dist/checks/consolidated/caching-strategy.d.ts.map +1 -0
- package/dist/checks/consolidated/caching-strategy.js +725 -0
- package/dist/checks/consolidated/caching-strategy.js.map +1 -0
- package/dist/checks/consolidated/code-quality.d.ts +83 -0
- package/dist/checks/consolidated/code-quality.d.ts.map +1 -0
- package/dist/checks/consolidated/code-quality.js +445 -0
- package/dist/checks/consolidated/code-quality.js.map +1 -0
- package/dist/checks/consolidated/console-statements.d.ts +32 -0
- package/dist/checks/consolidated/console-statements.d.ts.map +1 -0
- package/dist/checks/consolidated/console-statements.js +304 -0
- package/dist/checks/consolidated/console-statements.js.map +1 -0
- package/dist/checks/consolidated/css-advanced-validation.d.ts +24 -0
- package/dist/checks/consolidated/css-advanced-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-advanced-validation.js +415 -0
- package/dist/checks/consolidated/css-advanced-validation.js.map +1 -0
- package/dist/checks/consolidated/css-organization.d.ts +14 -0
- package/dist/checks/consolidated/css-organization.d.ts.map +1 -0
- package/dist/checks/consolidated/css-organization.js +432 -0
- package/dist/checks/consolidated/css-organization.js.map +1 -0
- package/dist/checks/consolidated/css-runtime-validation.d.ts +22 -0
- package/dist/checks/consolidated/css-runtime-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-runtime-validation.js +330 -0
- package/dist/checks/consolidated/css-runtime-validation.js.map +1 -0
- package/dist/checks/consolidated/css-variable-validation.d.ts +17 -0
- package/dist/checks/consolidated/css-variable-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-variable-validation.js +412 -0
- package/dist/checks/consolidated/css-variable-validation.js.map +1 -0
- package/dist/checks/consolidated/dark-mode-consistency.d.ts +23 -0
- package/dist/checks/consolidated/dark-mode-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/dark-mode-consistency.js +291 -0
- package/dist/checks/consolidated/dark-mode-consistency.js.map +1 -0
- package/dist/checks/consolidated/database.d.ts +95 -0
- package/dist/checks/consolidated/database.d.ts.map +1 -0
- package/dist/checks/consolidated/database.js +427 -0
- package/dist/checks/consolidated/database.js.map +1 -0
- package/dist/checks/consolidated/e2e-checks.d.ts +52 -0
- package/dist/checks/consolidated/e2e-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-checks.js +157 -0
- package/dist/checks/consolidated/e2e-checks.js.map +1 -0
- package/dist/checks/consolidated/e2e-regression-coverage.d.ts +14 -0
- package/dist/checks/consolidated/e2e-regression-coverage.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-regression-coverage.js +151 -0
- package/dist/checks/consolidated/e2e-regression-coverage.js.map +1 -0
- package/dist/checks/consolidated/e2e-validation.d.ts +137 -0
- package/dist/checks/consolidated/e2e-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-validation.js +1001 -0
- package/dist/checks/consolidated/e2e-validation.js.map +1 -0
- package/dist/checks/consolidated/enterprise-baseline.d.ts +9 -0
- package/dist/checks/consolidated/enterprise-baseline.d.ts.map +1 -0
- package/dist/checks/consolidated/enterprise-baseline.js +277 -0
- package/dist/checks/consolidated/enterprise-baseline.js.map +1 -0
- package/dist/checks/consolidated/generate-pageload-config.d.ts +6 -0
- package/dist/checks/consolidated/generate-pageload-config.d.ts.map +1 -0
- package/dist/checks/consolidated/generate-pageload-config.js +161 -0
- package/dist/checks/consolidated/generate-pageload-config.js.map +1 -0
- package/dist/checks/consolidated/hardened-checks.d.ts +276 -0
- package/dist/checks/consolidated/hardened-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/hardened-checks.js +3056 -0
- package/dist/checks/consolidated/hardened-checks.js.map +1 -0
- package/dist/checks/consolidated/homepage-ux.d.ts +12 -0
- package/dist/checks/consolidated/homepage-ux.d.ts.map +1 -0
- package/dist/checks/consolidated/homepage-ux.js +242 -0
- package/dist/checks/consolidated/homepage-ux.js.map +1 -0
- package/dist/checks/consolidated/images.d.ts +76 -0
- package/dist/checks/consolidated/images.d.ts.map +1 -0
- package/dist/checks/consolidated/images.js +311 -0
- package/dist/checks/consolidated/images.js.map +1 -0
- package/dist/checks/consolidated/import-cycles.d.ts +63 -0
- package/dist/checks/consolidated/import-cycles.d.ts.map +1 -0
- package/dist/checks/consolidated/import-cycles.js +291 -0
- package/dist/checks/consolidated/import-cycles.js.map +1 -0
- package/dist/checks/consolidated/imports.d.ts +112 -0
- package/dist/checks/consolidated/imports.d.ts.map +1 -0
- package/dist/checks/consolidated/imports.js +977 -0
- package/dist/checks/consolidated/imports.js.map +1 -0
- package/dist/checks/consolidated/inline-style-conflicts.d.ts +21 -0
- package/dist/checks/consolidated/inline-style-conflicts.d.ts.map +1 -0
- package/dist/checks/consolidated/inline-style-conflicts.js +300 -0
- package/dist/checks/consolidated/inline-style-conflicts.js.map +1 -0
- package/dist/checks/consolidated/lib-organization.d.ts +12 -0
- package/dist/checks/consolidated/lib-organization.d.ts.map +1 -0
- package/dist/checks/consolidated/lib-organization.js +419 -0
- package/dist/checks/consolidated/lib-organization.js.map +1 -0
- package/dist/checks/consolidated/n-plus-one.d.ts +63 -0
- package/dist/checks/consolidated/n-plus-one.d.ts.map +1 -0
- package/dist/checks/consolidated/n-plus-one.js +331 -0
- package/dist/checks/consolidated/n-plus-one.js.map +1 -0
- package/dist/checks/consolidated/nextjs.d.ts +51 -0
- package/dist/checks/consolidated/nextjs.d.ts.map +1 -0
- package/dist/checks/consolidated/nextjs.js +205 -0
- package/dist/checks/consolidated/nextjs.js.map +1 -0
- package/dist/checks/consolidated/organization.d.ts +54 -0
- package/dist/checks/consolidated/organization.d.ts.map +1 -0
- package/dist/checks/consolidated/organization.js +158 -0
- package/dist/checks/consolidated/organization.js.map +1 -0
- package/dist/checks/consolidated/pageload.d.ts +12 -0
- package/dist/checks/consolidated/pageload.d.ts.map +1 -0
- package/dist/checks/consolidated/pageload.js +138 -0
- package/dist/checks/consolidated/pageload.js.map +1 -0
- package/dist/checks/consolidated/performance.d.ts +112 -0
- package/dist/checks/consolidated/performance.d.ts.map +1 -0
- package/dist/checks/consolidated/performance.js +1546 -0
- package/dist/checks/consolidated/performance.js.map +1 -0
- package/dist/checks/consolidated/quality.d.ts +52 -0
- package/dist/checks/consolidated/quality.d.ts.map +1 -0
- package/dist/checks/consolidated/quality.js +253 -0
- package/dist/checks/consolidated/quality.js.map +1 -0
- package/dist/checks/consolidated/react.d.ts +48 -0
- package/dist/checks/consolidated/react.d.ts.map +1 -0
- package/dist/checks/consolidated/react.js +203 -0
- package/dist/checks/consolidated/react.js.map +1 -0
- package/dist/checks/consolidated/regression-hygiene.d.ts +17 -0
- package/dist/checks/consolidated/regression-hygiene.d.ts.map +1 -0
- package/dist/checks/consolidated/regression-hygiene.js +242 -0
- package/dist/checks/consolidated/regression-hygiene.js.map +1 -0
- package/dist/checks/consolidated/regression.d.ts +20 -0
- package/dist/checks/consolidated/regression.d.ts.map +1 -0
- package/dist/checks/consolidated/regression.js +121 -0
- package/dist/checks/consolidated/regression.js.map +1 -0
- package/dist/checks/consolidated/runtime.d.ts +53 -0
- package/dist/checks/consolidated/runtime.d.ts.map +1 -0
- package/dist/checks/consolidated/runtime.js +160 -0
- package/dist/checks/consolidated/runtime.js.map +1 -0
- package/dist/checks/consolidated/script-performance.d.ts +17 -0
- package/dist/checks/consolidated/script-performance.d.ts.map +1 -0
- package/dist/checks/consolidated/script-performance.js +137 -0
- package/dist/checks/consolidated/script-performance.js.map +1 -0
- package/dist/checks/consolidated/security.d.ts +78 -0
- package/dist/checks/consolidated/security.d.ts.map +1 -0
- package/dist/checks/consolidated/security.js +404 -0
- package/dist/checks/consolidated/security.js.map +1 -0
- package/dist/checks/consolidated/seo.d.ts +31 -0
- package/dist/checks/consolidated/seo.d.ts.map +1 -0
- package/dist/checks/consolidated/seo.js +1438 -0
- package/dist/checks/consolidated/seo.js.map +1 -0
- package/dist/checks/consolidated/sx-prop-deprecation.d.ts +22 -0
- package/dist/checks/consolidated/sx-prop-deprecation.d.ts.map +1 -0
- package/dist/checks/consolidated/sx-prop-deprecation.js +280 -0
- package/dist/checks/consolidated/sx-prop-deprecation.js.map +1 -0
- package/dist/checks/consolidated/tailwind-class-validation.d.ts +25 -0
- package/dist/checks/consolidated/tailwind-class-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/tailwind-class-validation.js +533 -0
- package/dist/checks/consolidated/tailwind-class-validation.js.map +1 -0
- package/dist/checks/consolidated/testing.d.ts +54 -0
- package/dist/checks/consolidated/testing.d.ts.map +1 -0
- package/dist/checks/consolidated/testing.js +163 -0
- package/dist/checks/consolidated/testing.js.map +1 -0
- package/dist/checks/consolidated/typescript.d.ts +3 -0
- package/dist/checks/consolidated/typescript.d.ts.map +1 -0
- package/dist/checks/consolidated/typescript.js +31 -0
- package/dist/checks/consolidated/typescript.js.map +1 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.d.ts +104 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.js +689 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.js.map +1 -0
- package/dist/checks/consolidated/ui-accessibility.d.ts +121 -0
- package/dist/checks/consolidated/ui-accessibility.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-accessibility.js +776 -0
- package/dist/checks/consolidated/ui-accessibility.js.map +1 -0
- package/dist/checks/consolidated/ui-advanced-spacing.d.ts +142 -0
- package/dist/checks/consolidated/ui-advanced-spacing.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-advanced-spacing.js +1220 -0
- package/dist/checks/consolidated/ui-advanced-spacing.js.map +1 -0
- package/dist/checks/consolidated/ui-animation-duration.d.ts +108 -0
- package/dist/checks/consolidated/ui-animation-duration.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-animation-duration.js +531 -0
- package/dist/checks/consolidated/ui-animation-duration.js.map +1 -0
- package/dist/checks/consolidated/ui-border-radius.d.ts +90 -0
- package/dist/checks/consolidated/ui-border-radius.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-border-radius.js +519 -0
- package/dist/checks/consolidated/ui-border-radius.js.map +1 -0
- package/dist/checks/consolidated/ui-buttons.d.ts +32 -0
- package/dist/checks/consolidated/ui-buttons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-buttons.js +481 -0
- package/dist/checks/consolidated/ui-buttons.js.map +1 -0
- package/dist/checks/consolidated/ui-cards.d.ts +29 -0
- package/dist/checks/consolidated/ui-cards.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-cards.js +504 -0
- package/dist/checks/consolidated/ui-cards.js.map +1 -0
- package/dist/checks/consolidated/ui-checks.d.ts +48 -0
- package/dist/checks/consolidated/ui-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-checks.js +264 -0
- package/dist/checks/consolidated/ui-checks.js.map +1 -0
- package/dist/checks/consolidated/ui-cleanup.d.ts +81 -0
- package/dist/checks/consolidated/ui-cleanup.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-cleanup.js +650 -0
- package/dist/checks/consolidated/ui-cleanup.js.map +1 -0
- package/dist/checks/consolidated/ui-components.d.ts +255 -0
- package/dist/checks/consolidated/ui-components.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-components.js +2008 -0
- package/dist/checks/consolidated/ui-components.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-advanced.d.ts +130 -0
- package/dist/checks/consolidated/ui-consistency-advanced.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-advanced.js +982 -0
- package/dist/checks/consolidated/ui-consistency-advanced.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.d.ts +30 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.js +1018 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-extended.d.ts +26 -0
- package/dist/checks/consolidated/ui-consistency-extended.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-extended.js +606 -0
- package/dist/checks/consolidated/ui-consistency-extended.js.map +1 -0
- package/dist/checks/consolidated/ui-data-display.d.ts +103 -0
- package/dist/checks/consolidated/ui-data-display.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-data-display.js +740 -0
- package/dist/checks/consolidated/ui-data-display.js.map +1 -0
- package/dist/checks/consolidated/ui-deprecated.d.ts +22 -0
- package/dist/checks/consolidated/ui-deprecated.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-deprecated.js +336 -0
- package/dist/checks/consolidated/ui-deprecated.js.map +1 -0
- package/dist/checks/consolidated/ui-empty-null-states.d.ts +90 -0
- package/dist/checks/consolidated/ui-empty-null-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-empty-null-states.js +511 -0
- package/dist/checks/consolidated/ui-empty-null-states.js.map +1 -0
- package/dist/checks/consolidated/ui-error-states.d.ts +99 -0
- package/dist/checks/consolidated/ui-error-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-error-states.js +694 -0
- package/dist/checks/consolidated/ui-error-states.js.map +1 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.d.ts +90 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.js +596 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.js.map +1 -0
- package/dist/checks/consolidated/ui-forms.d.ts +32 -0
- package/dist/checks/consolidated/ui-forms.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-forms.js +568 -0
- package/dist/checks/consolidated/ui-forms.js.map +1 -0
- package/dist/checks/consolidated/ui-gradient-shadow.d.ts +90 -0
- package/dist/checks/consolidated/ui-gradient-shadow.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-gradient-shadow.js +568 -0
- package/dist/checks/consolidated/ui-gradient-shadow.js.map +1 -0
- package/dist/checks/consolidated/ui-grid-responsive.d.ts +27 -0
- package/dist/checks/consolidated/ui-grid-responsive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-grid-responsive.js +441 -0
- package/dist/checks/consolidated/ui-grid-responsive.js.map +1 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.d.ts +104 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.js +514 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.js.map +1 -0
- package/dist/checks/consolidated/ui-iconography.d.ts +90 -0
- package/dist/checks/consolidated/ui-iconography.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-iconography.js +565 -0
- package/dist/checks/consolidated/ui-iconography.js.map +1 -0
- package/dist/checks/consolidated/ui-interactive-states.d.ts +240 -0
- package/dist/checks/consolidated/ui-interactive-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-interactive-states.js +2474 -0
- package/dist/checks/consolidated/ui-interactive-states.js.map +1 -0
- package/dist/checks/consolidated/ui-layout.d.ts +256 -0
- package/dist/checks/consolidated/ui-layout.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-layout.js +1371 -0
- package/dist/checks/consolidated/ui-layout.js.map +1 -0
- package/dist/checks/consolidated/ui-loading-skeletons.d.ts +11 -0
- package/dist/checks/consolidated/ui-loading-skeletons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-loading-skeletons.js +145 -0
- package/dist/checks/consolidated/ui-loading-skeletons.js.map +1 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.d.ts +9 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.js +125 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.js.map +1 -0
- package/dist/checks/consolidated/ui-media.d.ts +74 -0
- package/dist/checks/consolidated/ui-media.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-media.js +408 -0
- package/dist/checks/consolidated/ui-media.js.map +1 -0
- package/dist/checks/consolidated/ui-micro-interactions.d.ts +107 -0
- package/dist/checks/consolidated/ui-micro-interactions.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-micro-interactions.js +825 -0
- package/dist/checks/consolidated/ui-micro-interactions.js.map +1 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.d.ts +114 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.js +566 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.js.map +1 -0
- package/dist/checks/consolidated/ui-mobile-ux.d.ts +251 -0
- package/dist/checks/consolidated/ui-mobile-ux.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-mobile-ux.js +2212 -0
- package/dist/checks/consolidated/ui-mobile-ux.js.map +1 -0
- package/dist/checks/consolidated/ui-motion-accessibility.d.ts +93 -0
- package/dist/checks/consolidated/ui-motion-accessibility.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-motion-accessibility.js +450 -0
- package/dist/checks/consolidated/ui-motion-accessibility.js.map +1 -0
- package/dist/checks/consolidated/ui-navigation.d.ts +85 -0
- package/dist/checks/consolidated/ui-navigation.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-navigation.js +673 -0
- package/dist/checks/consolidated/ui-navigation.js.map +1 -0
- package/dist/checks/consolidated/ui-patterns.d.ts +174 -0
- package/dist/checks/consolidated/ui-patterns.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-patterns.js +1532 -0
- package/dist/checks/consolidated/ui-patterns.js.map +1 -0
- package/dist/checks/consolidated/ui-responsive.d.ts +89 -0
- package/dist/checks/consolidated/ui-responsive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-responsive.js +588 -0
- package/dist/checks/consolidated/ui-responsive.js.map +1 -0
- package/dist/checks/consolidated/ui-spacing-standards.d.ts +43 -0
- package/dist/checks/consolidated/ui-spacing-standards.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-spacing-standards.js +874 -0
- package/dist/checks/consolidated/ui-spacing-standards.js.map +1 -0
- package/dist/checks/consolidated/ui-spacing.d.ts +751 -0
- package/dist/checks/consolidated/ui-spacing.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-spacing.js +4996 -0
- package/dist/checks/consolidated/ui-spacing.js.map +1 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.d.ts +70 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.js +429 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.js.map +1 -0
- package/dist/checks/consolidated/ui-standards-enforcement.d.ts +100 -0
- package/dist/checks/consolidated/ui-standards-enforcement.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-standards-enforcement.js +935 -0
- package/dist/checks/consolidated/ui-standards-enforcement.js.map +1 -0
- package/dist/checks/consolidated/ui-state-consistency.d.ts +90 -0
- package/dist/checks/consolidated/ui-state-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-state-consistency.js +659 -0
- package/dist/checks/consolidated/ui-state-consistency.js.map +1 -0
- package/dist/checks/consolidated/ui-style-validation.d.ts +74 -0
- package/dist/checks/consolidated/ui-style-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-style-validation.js +403 -0
- package/dist/checks/consolidated/ui-style-validation.js.map +1 -0
- package/dist/checks/consolidated/ui-tokens.d.ts +110 -0
- package/dist/checks/consolidated/ui-tokens.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-tokens.js +990 -0
- package/dist/checks/consolidated/ui-tokens.js.map +1 -0
- package/dist/checks/consolidated/ui-typography.d.ts +77 -0
- package/dist/checks/consolidated/ui-typography.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-typography.js +416 -0
- package/dist/checks/consolidated/ui-typography.js.map +1 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.d.ts +90 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.js +562 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.js.map +1 -0
- package/dist/checks/consolidated/woocommerce.d.ts +50 -0
- package/dist/checks/consolidated/woocommerce.d.ts.map +1 -0
- package/dist/checks/consolidated/woocommerce.js +198 -0
- package/dist/checks/consolidated/woocommerce.js.map +1 -0
- package/dist/checks/core/api-route-protection.d.ts +2 -0
- package/dist/checks/core/api-route-protection.d.ts.map +1 -0
- package/dist/checks/core/api-route-protection.js +101 -0
- package/dist/checks/core/api-route-protection.js.map +1 -0
- package/dist/checks/core/critical.d.ts +8 -0
- package/dist/checks/core/critical.d.ts.map +1 -0
- package/dist/checks/core/critical.js +200 -0
- package/dist/checks/core/critical.js.map +1 -0
- package/dist/checks/core/database.d.ts +8 -0
- package/dist/checks/core/database.d.ts.map +1 -0
- package/dist/checks/core/database.js +699 -0
- package/dist/checks/core/database.js.map +1 -0
- package/dist/checks/core/development.d.ts +8 -0
- package/dist/checks/core/development.d.ts.map +1 -0
- package/dist/checks/core/development.js +417 -0
- package/dist/checks/core/development.js.map +1 -0
- package/dist/checks/core/hydration-mismatch-check.d.ts +38 -0
- package/dist/checks/core/hydration-mismatch-check.d.ts.map +1 -0
- package/dist/checks/core/hydration-mismatch-check.js +411 -0
- package/dist/checks/core/hydration-mismatch-check.js.map +1 -0
- package/dist/checks/core/performance.d.ts +8 -0
- package/dist/checks/core/performance.d.ts.map +1 -0
- package/dist/checks/core/performance.js +474 -0
- package/dist/checks/core/performance.js.map +1 -0
- package/dist/checks/core/security.d.ts +8 -0
- package/dist/checks/core/security.d.ts.map +1 -0
- package/dist/checks/core/security.js +275 -0
- package/dist/checks/core/security.js.map +1 -0
- package/dist/checks/core/standardized-error-handling.d.ts +43 -0
- package/dist/checks/core/standardized-error-handling.d.ts.map +1 -0
- package/dist/checks/core/standardized-error-handling.js +384 -0
- package/dist/checks/core/standardized-error-handling.js.map +1 -0
- package/dist/checks/core/supercatch.d.ts +8 -0
- package/dist/checks/core/supercatch.d.ts.map +1 -0
- package/dist/checks/core/supercatch.js +750 -0
- package/dist/checks/core/supercatch.js.map +1 -0
- package/dist/checks/core/suppression-check.d.ts +2 -0
- package/dist/checks/core/suppression-check.d.ts.map +1 -0
- package/dist/checks/core/suppression-check.js +129 -0
- package/dist/checks/core/suppression-check.js.map +1 -0
- package/dist/checks/core/ui-quality.d.ts +8 -0
- package/dist/checks/core/ui-quality.d.ts.map +1 -0
- package/dist/checks/core/ui-quality.js +1736 -0
- package/dist/checks/core/ui-quality.js.map +1 -0
- package/dist/checks/core/unused-assets-check.d.ts +2 -0
- package/dist/checks/core/unused-assets-check.d.ts.map +1 -0
- package/dist/checks/core/unused-assets-check.js +112 -0
- package/dist/checks/core/unused-assets-check.js.map +1 -0
- package/dist/checks/core/use-status-ssr-safety.d.ts +34 -0
- package/dist/checks/core/use-status-ssr-safety.d.ts.map +1 -0
- package/dist/checks/core/use-status-ssr-safety.js +283 -0
- package/dist/checks/core/use-status-ssr-safety.js.map +1 -0
- package/dist/checks/email/email-flow-validation.d.ts +23 -0
- package/dist/checks/email/email-flow-validation.d.ts.map +1 -0
- package/dist/checks/email/email-flow-validation.js +468 -0
- package/dist/checks/email/email-flow-validation.js.map +1 -0
- package/dist/checks/email/email-template-db-verification.d.ts +20 -0
- package/dist/checks/email/email-template-db-verification.d.ts.map +1 -0
- package/dist/checks/email/email-template-db-verification.js +46 -0
- package/dist/checks/email/email-template-db-verification.js.map +1 -0
- package/dist/checks/email/email-template-validation.d.ts +24 -0
- package/dist/checks/email/email-template-validation.d.ts.map +1 -0
- package/dist/checks/email/email-template-validation.js +688 -0
- package/dist/checks/email/email-template-validation.js.map +1 -0
- package/dist/checks/jsx/comment-placement.d.ts +45 -0
- package/dist/checks/jsx/comment-placement.d.ts.map +1 -0
- package/dist/checks/jsx/comment-placement.js +316 -0
- package/dist/checks/jsx/comment-placement.js.map +1 -0
- package/dist/checks/specialized/admin-layout-check.d.ts +19 -0
- package/dist/checks/specialized/admin-layout-check.d.ts.map +1 -0
- package/dist/checks/specialized/admin-layout-check.js +166 -0
- package/dist/checks/specialized/admin-layout-check.js.map +1 -0
- package/dist/checks/specialized/client-server-separation.d.ts +14 -0
- package/dist/checks/specialized/client-server-separation.d.ts.map +1 -0
- package/dist/checks/specialized/client-server-separation.js +197 -0
- package/dist/checks/specialized/client-server-separation.js.map +1 -0
- package/dist/checks/specialized/cost-optimization.d.ts +18 -0
- package/dist/checks/specialized/cost-optimization.d.ts.map +1 -0
- package/dist/checks/specialized/cost-optimization.js +78 -0
- package/dist/checks/specialized/cost-optimization.js.map +1 -0
- package/dist/checks/specialized/database-migration-sync.d.ts +21 -0
- package/dist/checks/specialized/database-migration-sync.d.ts.map +1 -0
- package/dist/checks/specialized/database-migration-sync.js +150 -0
- package/dist/checks/specialized/database-migration-sync.js.map +1 -0
- package/dist/checks/specialized/database-model-validation.d.ts +15 -0
- package/dist/checks/specialized/database-model-validation.d.ts.map +1 -0
- package/dist/checks/specialized/database-model-validation.js +35 -0
- package/dist/checks/specialized/database-model-validation.js.map +1 -0
- package/dist/checks/specialized/database-schema-migrations-diff.d.ts +27 -0
- package/dist/checks/specialized/database-schema-migrations-diff.d.ts.map +1 -0
- package/dist/checks/specialized/database-schema-migrations-diff.js +177 -0
- package/dist/checks/specialized/database-schema-migrations-diff.js.map +1 -0
- package/dist/checks/specialized/database-schema-sync.d.ts +23 -0
- package/dist/checks/specialized/database-schema-sync.d.ts.map +1 -0
- package/dist/checks/specialized/database-schema-sync.js +77 -0
- package/dist/checks/specialized/database-schema-sync.js.map +1 -0
- package/dist/checks/specialized/decimal-serialization.d.ts +24 -0
- package/dist/checks/specialized/decimal-serialization.d.ts.map +1 -0
- package/dist/checks/specialized/decimal-serialization.js +400 -0
- package/dist/checks/specialized/decimal-serialization.js.map +1 -0
- package/dist/checks/specialized/detect-router-issues.d.ts +14 -0
- package/dist/checks/specialized/detect-router-issues.d.ts.map +1 -0
- package/dist/checks/specialized/detect-router-issues.js +96 -0
- package/dist/checks/specialized/detect-router-issues.js.map +1 -0
- package/dist/checks/specialized/enum-validation.d.ts +15 -0
- package/dist/checks/specialized/enum-validation.d.ts.map +1 -0
- package/dist/checks/specialized/enum-validation.js +35 -0
- package/dist/checks/specialized/enum-validation.js.map +1 -0
- package/dist/checks/specialized/hash-collision.d.ts +18 -0
- package/dist/checks/specialized/hash-collision.d.ts.map +1 -0
- package/dist/checks/specialized/hash-collision.js +78 -0
- package/dist/checks/specialized/hash-collision.js.map +1 -0
- package/dist/checks/specialized/id-generation-enforcement.d.ts +16 -0
- package/dist/checks/specialized/id-generation-enforcement.d.ts.map +1 -0
- package/dist/checks/specialized/id-generation-enforcement.js +307 -0
- package/dist/checks/specialized/id-generation-enforcement.js.map +1 -0
- package/dist/checks/specialized/image-data-integrity.d.ts +15 -0
- package/dist/checks/specialized/image-data-integrity.d.ts.map +1 -0
- package/dist/checks/specialized/image-data-integrity.js +79 -0
- package/dist/checks/specialized/image-data-integrity.js.map +1 -0
- package/dist/checks/specialized/image-health.d.ts +14 -0
- package/dist/checks/specialized/image-health.d.ts.map +1 -0
- package/dist/checks/specialized/image-health.js +122 -0
- package/dist/checks/specialized/image-health.js.map +1 -0
- package/dist/checks/specialized/image-metadata-validation.d.ts +14 -0
- package/dist/checks/specialized/image-metadata-validation.d.ts.map +1 -0
- package/dist/checks/specialized/image-metadata-validation.js +95 -0
- package/dist/checks/specialized/image-metadata-validation.js.map +1 -0
- package/dist/checks/specialized/image-optimization.d.ts +16 -0
- package/dist/checks/specialized/image-optimization.d.ts.map +1 -0
- package/dist/checks/specialized/image-optimization.js +86 -0
- package/dist/checks/specialized/image-optimization.js.map +1 -0
- package/dist/checks/specialized/invalid-module-imports.d.ts +24 -0
- package/dist/checks/specialized/invalid-module-imports.d.ts.map +1 -0
- package/dist/checks/specialized/invalid-module-imports.js +209 -0
- package/dist/checks/specialized/invalid-module-imports.js.map +1 -0
- package/dist/checks/specialized/lint-validation.d.ts +26 -0
- package/dist/checks/specialized/lint-validation.d.ts.map +1 -0
- package/dist/checks/specialized/lint-validation.js +193 -0
- package/dist/checks/specialized/lint-validation.js.map +1 -0
- package/dist/checks/specialized/listing-workflow.d.ts +19 -0
- package/dist/checks/specialized/listing-workflow.d.ts.map +1 -0
- package/dist/checks/specialized/listing-workflow.js +89 -0
- package/dist/checks/specialized/listing-workflow.js.map +1 -0
- package/dist/checks/specialized/mui-imports-validation.d.ts +18 -0
- package/dist/checks/specialized/mui-imports-validation.d.ts.map +1 -0
- package/dist/checks/specialized/mui-imports-validation.js +134 -0
- package/dist/checks/specialized/mui-imports-validation.js.map +1 -0
- package/dist/checks/specialized/nextauth-v5-compliance.d.ts +16 -0
- package/dist/checks/specialized/nextauth-v5-compliance.d.ts.map +1 -0
- package/dist/checks/specialized/nextauth-v5-compliance.js +164 -0
- package/dist/checks/specialized/nextauth-v5-compliance.js.map +1 -0
- package/dist/checks/specialized/nextjs-params-check.d.ts +14 -0
- package/dist/checks/specialized/nextjs-params-check.d.ts.map +1 -0
- package/dist/checks/specialized/nextjs-params-check.js +140 -0
- package/dist/checks/specialized/nextjs-params-check.js.map +1 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.d.ts +16 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.d.ts.map +1 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.js +36 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.js.map +1 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.d.ts +22 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.d.ts.map +1 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.js +97 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.js.map +1 -0
- package/dist/checks/specialized/parameter-consistency-check.d.ts +20 -0
- package/dist/checks/specialized/parameter-consistency-check.d.ts.map +1 -0
- package/dist/checks/specialized/parameter-consistency-check.js +115 -0
- package/dist/checks/specialized/parameter-consistency-check.js.map +1 -0
- package/dist/checks/specialized/prisma-field-names-validation.d.ts +15 -0
- package/dist/checks/specialized/prisma-field-names-validation.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-field-names-validation.js +35 -0
- package/dist/checks/specialized/prisma-field-names-validation.js.map +1 -0
- package/dist/checks/specialized/prisma-null-syntax.d.ts +34 -0
- package/dist/checks/specialized/prisma-null-syntax.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-null-syntax.js +330 -0
- package/dist/checks/specialized/prisma-null-syntax.js.map +1 -0
- package/dist/checks/specialized/prisma-query-validation.d.ts +15 -0
- package/dist/checks/specialized/prisma-query-validation.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-query-validation.js +35 -0
- package/dist/checks/specialized/prisma-query-validation.js.map +1 -0
- package/dist/checks/specialized/product-type-validation.d.ts +17 -0
- package/dist/checks/specialized/product-type-validation.d.ts.map +1 -0
- package/dist/checks/specialized/product-type-validation.js +129 -0
- package/dist/checks/specialized/product-type-validation.js.map +1 -0
- package/dist/checks/specialized/responsive-image-validation.d.ts +14 -0
- package/dist/checks/specialized/responsive-image-validation.d.ts.map +1 -0
- package/dist/checks/specialized/responsive-image-validation.js +101 -0
- package/dist/checks/specialized/responsive-image-validation.js.map +1 -0
- package/dist/checks/specialized/root-cleanliness.d.ts +21 -0
- package/dist/checks/specialized/root-cleanliness.d.ts.map +1 -0
- package/dist/checks/specialized/root-cleanliness.js +251 -0
- package/dist/checks/specialized/root-cleanliness.js.map +1 -0
- package/dist/checks/specialized/rotation-detection-validation.d.ts +16 -0
- package/dist/checks/specialized/rotation-detection-validation.d.ts.map +1 -0
- package/dist/checks/specialized/rotation-detection-validation.js +113 -0
- package/dist/checks/specialized/rotation-detection-validation.js.map +1 -0
- package/dist/checks/specialized/script-organization.d.ts +17 -0
- package/dist/checks/specialized/script-organization.d.ts.map +1 -0
- package/dist/checks/specialized/script-organization.js +487 -0
- package/dist/checks/specialized/script-organization.js.map +1 -0
- package/dist/checks/specialized/shared-components-migration.d.ts +137 -0
- package/dist/checks/specialized/shared-components-migration.d.ts.map +1 -0
- package/dist/checks/specialized/shared-components-migration.js +1288 -0
- package/dist/checks/specialized/shared-components-migration.js.map +1 -0
- package/dist/checks/specialized/store-specialties-normalization.d.ts +10 -0
- package/dist/checks/specialized/store-specialties-normalization.d.ts.map +1 -0
- package/dist/checks/specialized/store-specialties-normalization.js +126 -0
- package/dist/checks/specialized/store-specialties-normalization.js.map +1 -0
- package/dist/checks/specialized/two-stage-trim-validation.d.ts +16 -0
- package/dist/checks/specialized/two-stage-trim-validation.d.ts.map +1 -0
- package/dist/checks/specialized/two-stage-trim-validation.js +115 -0
- package/dist/checks/specialized/two-stage-trim-validation.js.map +1 -0
- package/dist/checks/specialized/underscore-variable-audit.d.ts +26 -0
- package/dist/checks/specialized/underscore-variable-audit.d.ts.map +1 -0
- package/dist/checks/specialized/underscore-variable-audit.js +219 -0
- package/dist/checks/specialized/underscore-variable-audit.js.map +1 -0
- package/dist/checks/specialized/unified-badge-consistency.d.ts +16 -0
- package/dist/checks/specialized/unified-badge-consistency.d.ts.map +1 -0
- package/dist/checks/specialized/unified-badge-consistency.js +284 -0
- package/dist/checks/specialized/unified-badge-consistency.js.map +1 -0
- package/dist/checks/specialized/validate-integration-enums.d.ts +15 -0
- package/dist/checks/specialized/validate-integration-enums.d.ts.map +1 -0
- package/dist/checks/specialized/validate-integration-enums.js +131 -0
- package/dist/checks/specialized/validate-integration-enums.js.map +1 -0
- package/dist/checks/testing/action-regression.d.ts +23 -0
- package/dist/checks/testing/action-regression.d.ts.map +1 -0
- package/dist/checks/testing/action-regression.js +192 -0
- package/dist/checks/testing/action-regression.js.map +1 -0
- package/dist/checks/testing/critical-api-coverage.d.ts +21 -0
- package/dist/checks/testing/critical-api-coverage.d.ts.map +1 -0
- package/dist/checks/testing/critical-api-coverage.js +158 -0
- package/dist/checks/testing/critical-api-coverage.js.map +1 -0
- package/dist/checks/testing/data-entry-regression-required.d.ts +24 -0
- package/dist/checks/testing/data-entry-regression-required.d.ts.map +1 -0
- package/dist/checks/testing/data-entry-regression-required.js +378 -0
- package/dist/checks/testing/data-entry-regression-required.js.map +1 -0
- package/dist/checks/testing/e2e-best-practices.d.ts +24 -0
- package/dist/checks/testing/e2e-best-practices.d.ts.map +1 -0
- package/dist/checks/testing/e2e-best-practices.js +791 -0
- package/dist/checks/testing/e2e-best-practices.js.map +1 -0
- package/dist/checks/testing/e2e-flake-patterns.d.ts +26 -0
- package/dist/checks/testing/e2e-flake-patterns.d.ts.map +1 -0
- package/dist/checks/testing/e2e-flake-patterns.js +305 -0
- package/dist/checks/testing/e2e-flake-patterns.js.map +1 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.d.ts +25 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.d.ts.map +1 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.js +613 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.js.map +1 -0
- package/dist/checks/testing/e2e-slow-tests.d.ts +9 -0
- package/dist/checks/testing/e2e-slow-tests.d.ts.map +1 -0
- package/dist/checks/testing/e2e-slow-tests.js +142 -0
- package/dist/checks/testing/e2e-slow-tests.js.map +1 -0
- package/dist/checks/testing/e2e-timeouts.d.ts +9 -0
- package/dist/checks/testing/e2e-timeouts.d.ts.map +1 -0
- package/dist/checks/testing/e2e-timeouts.js +82 -0
- package/dist/checks/testing/e2e-timeouts.js.map +1 -0
- package/dist/checks/testing/integration-e2e-depth.d.ts +20 -0
- package/dist/checks/testing/integration-e2e-depth.d.ts.map +1 -0
- package/dist/checks/testing/integration-e2e-depth.js +575 -0
- package/dist/checks/testing/integration-e2e-depth.js.map +1 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.d.ts +31 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.d.ts.map +1 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.js +1582 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.js.map +1 -0
- package/dist/checks/testing/playwright-mock-inventory.d.ts +24 -0
- package/dist/checks/testing/playwright-mock-inventory.d.ts.map +1 -0
- package/dist/checks/testing/playwright-mock-inventory.js +380 -0
- package/dist/checks/testing/playwright-mock-inventory.js.map +1 -0
- package/dist/checks/testing/test-coverage-threshold.d.ts +25 -0
- package/dist/checks/testing/test-coverage-threshold.d.ts.map +1 -0
- package/dist/checks/testing/test-coverage-threshold.js +166 -0
- package/dist/checks/testing/test-coverage-threshold.js.map +1 -0
- package/dist/checks/testing/test-flakiness-score.d.ts +27 -0
- package/dist/checks/testing/test-flakiness-score.d.ts.map +1 -0
- package/dist/checks/testing/test-flakiness-score.js +358 -0
- package/dist/checks/testing/test-flakiness-score.js.map +1 -0
- package/dist/checks/testing/test-patterns.d.ts +16 -0
- package/dist/checks/testing/test-patterns.d.ts.map +1 -0
- package/dist/checks/testing/test-patterns.js +156 -0
- package/dist/checks/testing/test-patterns.js.map +1 -0
- package/dist/checks/workflows/a-plus-rating-validation.d.ts +42 -0
- package/dist/checks/workflows/a-plus-rating-validation.d.ts.map +1 -0
- package/dist/checks/workflows/a-plus-rating-validation.js +527 -0
- package/dist/checks/workflows/a-plus-rating-validation.js.map +1 -0
- package/dist/checks/workflows/affected.d.ts +14 -0
- package/dist/checks/workflows/affected.d.ts.map +1 -0
- package/dist/checks/workflows/affected.js +126 -0
- package/dist/checks/workflows/affected.js.map +1 -0
- package/dist/checks/workflows/ai.d.ts +6 -0
- package/dist/checks/workflows/ai.d.ts.map +1 -0
- package/dist/checks/workflows/ai.js +42 -0
- package/dist/checks/workflows/ai.js.map +1 -0
- package/dist/checks/workflows/all.d.ts +31 -0
- package/dist/checks/workflows/all.d.ts.map +1 -0
- package/dist/checks/workflows/all.js +2688 -0
- package/dist/checks/workflows/all.js.map +1 -0
- package/dist/checks/workflows/commit.d.ts +19 -0
- package/dist/checks/workflows/commit.d.ts.map +1 -0
- package/dist/checks/workflows/commit.js +207 -0
- package/dist/checks/workflows/commit.js.map +1 -0
- package/dist/checks/workflows/critical.d.ts +9 -0
- package/dist/checks/workflows/critical.d.ts.map +1 -0
- package/dist/checks/workflows/critical.js +213 -0
- package/dist/checks/workflows/critical.js.map +1 -0
- package/dist/checks/workflows/database-id-validation.d.ts +9 -0
- package/dist/checks/workflows/database-id-validation.d.ts.map +1 -0
- package/dist/checks/workflows/database-id-validation.js +13 -0
- package/dist/checks/workflows/database-id-validation.js.map +1 -0
- package/dist/checks/workflows/deploy.d.ts +20 -0
- package/dist/checks/workflows/deploy.d.ts.map +1 -0
- package/dist/checks/workflows/deploy.js +107 -0
- package/dist/checks/workflows/deploy.js.map +1 -0
- package/dist/checks/workflows/deployment-readiness.d.ts +12 -0
- package/dist/checks/workflows/deployment-readiness.d.ts.map +1 -0
- package/dist/checks/workflows/deployment-readiness.js +403 -0
- package/dist/checks/workflows/deployment-readiness.js.map +1 -0
- package/dist/checks/workflows/dev.d.ts +19 -0
- package/dist/checks/workflows/dev.d.ts.map +1 -0
- package/dist/checks/workflows/dev.js +88 -0
- package/dist/checks/workflows/dev.js.map +1 -0
- package/dist/checks/workflows/development.d.ts +9 -0
- package/dist/checks/workflows/development.d.ts.map +1 -0
- package/dist/checks/workflows/development.js +65 -0
- package/dist/checks/workflows/development.js.map +1 -0
- package/dist/checks/workflows/enterprise.d.ts +10 -0
- package/dist/checks/workflows/enterprise.d.ts.map +1 -0
- package/dist/checks/workflows/enterprise.js +359 -0
- package/dist/checks/workflows/enterprise.js.map +1 -0
- package/dist/checks/workflows/images.d.ts +6 -0
- package/dist/checks/workflows/images.d.ts.map +1 -0
- package/dist/checks/workflows/images.js +58 -0
- package/dist/checks/workflows/images.js.map +1 -0
- package/dist/checks/workflows/naming.d.ts +19 -0
- package/dist/checks/workflows/naming.d.ts.map +1 -0
- package/dist/checks/workflows/naming.js +42 -0
- package/dist/checks/workflows/naming.js.map +1 -0
- package/dist/checks/workflows/performance.d.ts +8 -0
- package/dist/checks/workflows/performance.d.ts.map +1 -0
- package/dist/checks/workflows/performance.js +77 -0
- package/dist/checks/workflows/performance.js.map +1 -0
- package/dist/checks/workflows/pre-deploy.d.ts +6 -0
- package/dist/checks/workflows/pre-deploy.d.ts.map +1 -0
- package/dist/checks/workflows/pre-deploy.js +41 -0
- package/dist/checks/workflows/pre-deploy.js.map +1 -0
- package/dist/checks/workflows/security.d.ts +8 -0
- package/dist/checks/workflows/security.d.ts.map +1 -0
- package/dist/checks/workflows/security.js +71 -0
- package/dist/checks/workflows/security.js.map +1 -0
- package/dist/checks/workflows/supercatch.d.ts +8 -0
- package/dist/checks/workflows/supercatch.d.ts.map +1 -0
- package/dist/checks/workflows/supercatch.js +127 -0
- package/dist/checks/workflows/supercatch.js.map +1 -0
- package/dist/checks/workflows/ui-quality.d.ts +9 -0
- package/dist/checks/workflows/ui-quality.d.ts.map +1 -0
- package/dist/checks/workflows/ui-quality.js +264 -0
- package/dist/checks/workflows/ui-quality.js.map +1 -0
- package/dist/checks/workflows/ui-uniformity.d.ts +18 -0
- package/dist/checks/workflows/ui-uniformity.d.ts.map +1 -0
- package/dist/checks/workflows/ui-uniformity.js +265 -0
- package/dist/checks/workflows/ui-uniformity.js.map +1 -0
- package/dist/checks/workflows/vercel.d.ts +16 -0
- package/dist/checks/workflows/vercel.d.ts.map +1 -0
- package/dist/checks/workflows/vercel.js +173 -0
- package/dist/checks/workflows/vercel.js.map +1 -0
- package/dist/utils/validation-helpers.d.ts +43 -0
- package/dist/utils/validation-helpers.d.ts.map +1 -0
- package/dist/utils/validation-helpers.js +370 -0
- package/dist/utils/validation-helpers.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* UI Data Display Preflight (NON-BLOCKING)
|
|
5
|
+
*
|
|
6
|
+
* Validates data presentation consistency across the application.
|
|
7
|
+
* Ensures numbers, dates, currencies, and text are formatted uniformly.
|
|
8
|
+
*
|
|
9
|
+
* Checks:
|
|
10
|
+
* 1. Number Formatting - Locale-aware number display
|
|
11
|
+
* 2. Currency Display - Consistent currency formatting
|
|
12
|
+
* 3. Date/Time Formatting - Consistent date display patterns
|
|
13
|
+
* 4. Percentage Display - 0.5 vs 50% consistency
|
|
14
|
+
* 5. Large Number Abbreviation - K, M, B patterns
|
|
15
|
+
* 6. Truncation Patterns - Ellipsis handling
|
|
16
|
+
* 7. Empty/Null Placeholders - Consistent N/A, — usage
|
|
17
|
+
* 8. Decimal Precision - Consistent decimal places
|
|
18
|
+
*
|
|
19
|
+
* Usage:
|
|
20
|
+
* pnpm preflight:ui-data-display # All checks
|
|
21
|
+
* pnpm preflight:ui-data-display numbers # Number formatting only
|
|
22
|
+
*/
|
|
23
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
27
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(o, k2, desc);
|
|
30
|
+
}) : (function(o, m, k, k2) {
|
|
31
|
+
if (k2 === undefined) k2 = k;
|
|
32
|
+
o[k2] = m[k];
|
|
33
|
+
}));
|
|
34
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
35
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
+
}) : function(o, v) {
|
|
37
|
+
o["default"] = v;
|
|
38
|
+
});
|
|
39
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
40
|
+
var ownKeys = function(o) {
|
|
41
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
42
|
+
var ar = [];
|
|
43
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
44
|
+
return ar;
|
|
45
|
+
};
|
|
46
|
+
return ownKeys(o);
|
|
47
|
+
};
|
|
48
|
+
return function (mod) {
|
|
49
|
+
if (mod && mod.__esModule) return mod;
|
|
50
|
+
var result = {};
|
|
51
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
52
|
+
__setModuleDefault(result, mod);
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
55
|
+
})();
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.UIDataDisplayModule = void 0;
|
|
58
|
+
const fs = __importStar(require("fs"));
|
|
59
|
+
const path = __importStar(require("path"));
|
|
60
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
61
|
+
const file_cache_1 = require("../../shared/file-cache");
|
|
62
|
+
class UIDataDisplayModule {
|
|
63
|
+
verbose;
|
|
64
|
+
constructor(options = {}) {
|
|
65
|
+
this.verbose = options.verbose || false;
|
|
66
|
+
}
|
|
67
|
+
async getTsxFiles() {
|
|
68
|
+
return file_cache_1.fileCache.getAppAndComponentsTSX();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 1. Number Formatting
|
|
72
|
+
* Check for consistent number formatting with locale support
|
|
73
|
+
*/
|
|
74
|
+
async checkNumberFormatting() {
|
|
75
|
+
const startTime = Date.now();
|
|
76
|
+
const issues = [];
|
|
77
|
+
const files = await this.getTsxFiles();
|
|
78
|
+
const numberFormatPatterns = new Map();
|
|
79
|
+
let hasIntlNumberFormat = false;
|
|
80
|
+
let hasToLocaleString = false;
|
|
81
|
+
for (const file of files) {
|
|
82
|
+
const content = fs.readFileSync(file, "utf8");
|
|
83
|
+
const lines = content.split("\n");
|
|
84
|
+
if (/Intl\.NumberFormat/.test(content)) {
|
|
85
|
+
hasIntlNumberFormat = true;
|
|
86
|
+
}
|
|
87
|
+
if (/\.toLocaleString\(/.test(content)) {
|
|
88
|
+
hasToLocaleString = true;
|
|
89
|
+
}
|
|
90
|
+
for (let i = 0; i < lines.length; i++) {
|
|
91
|
+
const line = lines[i];
|
|
92
|
+
// Check for raw number display without formatting
|
|
93
|
+
if (/\{[\s]*(?:item|data|row|record)\.(?:count|quantity|amount|total|price|value)[\s]*\}/.test(line)) {
|
|
94
|
+
const contextBlock = lines.slice(Math.max(0, i - 3), Math.min(i + 3, lines.length)).join("\n");
|
|
95
|
+
const hasFormatting = /toLocaleString|NumberFormat|formatNumber|formatCurrency|Intl\./i.test(contextBlock);
|
|
96
|
+
if (!hasFormatting) {
|
|
97
|
+
issues.push({
|
|
98
|
+
file,
|
|
99
|
+
line: i + 1,
|
|
100
|
+
type: "unformatted-number",
|
|
101
|
+
severity: "info",
|
|
102
|
+
message: "Number displayed without locale formatting",
|
|
103
|
+
suggestion: "Use .toLocaleString() or Intl.NumberFormat for consistent number display",
|
|
104
|
+
snippet: line.trim().substring(0, 80),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// Check for manual comma insertion (anti-pattern)
|
|
109
|
+
if (/\.replace\([^)]*,.*,/i.test(line) && /\d/.test(line)) {
|
|
110
|
+
issues.push({
|
|
111
|
+
file,
|
|
112
|
+
line: i + 1,
|
|
113
|
+
type: "manual-number-formatting",
|
|
114
|
+
severity: "info",
|
|
115
|
+
message: "Manual number formatting detected - may not be locale-aware",
|
|
116
|
+
suggestion: "Use Intl.NumberFormat for locale-aware formatting",
|
|
117
|
+
snippet: line.trim().substring(0, 80),
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
// Track formatting patterns used
|
|
121
|
+
if (/toLocaleString\(['"]([^'"]+)/.test(line)) {
|
|
122
|
+
const match = line.match(/toLocaleString\(['"]([^'"]+)/);
|
|
123
|
+
if (match) {
|
|
124
|
+
numberFormatPatterns.set(match[1], (numberFormatPatterns.get(match[1]) || 0) + 1);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// Check for inconsistent locale usage
|
|
130
|
+
if (numberFormatPatterns.size > 1) {
|
|
131
|
+
const sorted = [...numberFormatPatterns.entries()].sort((a, b) => b[1] - a[1]);
|
|
132
|
+
issues.push({
|
|
133
|
+
file: "codebase-wide",
|
|
134
|
+
line: 0,
|
|
135
|
+
type: "inconsistent-number-locale",
|
|
136
|
+
severity: "warning",
|
|
137
|
+
message: `Multiple number locales in use: ${sorted.map(([l, c]) => `${l}(${c})`).join(", ")}`,
|
|
138
|
+
suggestion: "Standardize on a single locale or use user's locale consistently",
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
name: "Number Formatting",
|
|
143
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
144
|
+
blocking: false,
|
|
145
|
+
issues,
|
|
146
|
+
duration: Date.now() - startTime,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* 2. Currency Display
|
|
151
|
+
* Check for consistent currency formatting
|
|
152
|
+
*/
|
|
153
|
+
async checkCurrencyDisplay() {
|
|
154
|
+
const startTime = Date.now();
|
|
155
|
+
const issues = [];
|
|
156
|
+
const files = await this.getTsxFiles();
|
|
157
|
+
const currencyPatterns = new Map();
|
|
158
|
+
let hasCurrencyFormatter = false;
|
|
159
|
+
for (const file of files) {
|
|
160
|
+
const content = fs.readFileSync(file, "utf8");
|
|
161
|
+
const lines = content.split("\n");
|
|
162
|
+
if (/style:\s*['"]currency|formatCurrency|Intl\.NumberFormat.*currency/i.test(content)) {
|
|
163
|
+
hasCurrencyFormatter = true;
|
|
164
|
+
}
|
|
165
|
+
for (let i = 0; i < lines.length; i++) {
|
|
166
|
+
const line = lines[i];
|
|
167
|
+
// Check for hardcoded $ without proper formatting
|
|
168
|
+
if (/\$\{.*\}|\$\s*\d|\{\s*['"]\$/.test(line)) {
|
|
169
|
+
const contextBlock = lines.slice(Math.max(0, i - 2), Math.min(i + 2, lines.length)).join("\n");
|
|
170
|
+
// Skip if it's a template literal for something else
|
|
171
|
+
if (/formatCurrency|toLocaleString|NumberFormat/.test(contextBlock))
|
|
172
|
+
continue;
|
|
173
|
+
// Check if it's actually a price display
|
|
174
|
+
if (/price|cost|amount|total|fee|charge/i.test(contextBlock)) {
|
|
175
|
+
issues.push({
|
|
176
|
+
file,
|
|
177
|
+
line: i + 1,
|
|
178
|
+
type: "hardcoded-currency-symbol",
|
|
179
|
+
severity: "info",
|
|
180
|
+
message: "Hardcoded $ symbol - may not work for other currencies",
|
|
181
|
+
suggestion: "Use Intl.NumberFormat with style: 'currency' for proper formatting",
|
|
182
|
+
snippet: line.trim().substring(0, 80),
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// Check for cents handling
|
|
187
|
+
if (/\/\s*100|\*\s*100|cents|Cents/.test(line)) {
|
|
188
|
+
const contextBlock = lines.slice(i, Math.min(i + 5, lines.length)).join("\n");
|
|
189
|
+
const hasProperConversion = /toFixed|Math\.round|NumberFormat/.test(contextBlock);
|
|
190
|
+
if (!hasProperConversion) {
|
|
191
|
+
issues.push({
|
|
192
|
+
file,
|
|
193
|
+
line: i + 1,
|
|
194
|
+
type: "cents-conversion-risk",
|
|
195
|
+
severity: "info",
|
|
196
|
+
message: "Cents conversion without rounding may cause floating point errors",
|
|
197
|
+
suggestion: "Use Math.round() or toFixed(2) when converting cents to dollars",
|
|
198
|
+
snippet: line.trim().substring(0, 80),
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
// Track currency format patterns
|
|
203
|
+
if (/\.toFixed\((\d)\)/.test(line)) {
|
|
204
|
+
const match = line.match(/\.toFixed\((\d)\)/);
|
|
205
|
+
if (match) {
|
|
206
|
+
currencyPatterns.set(`toFixed(${match[1]})`, (currencyPatterns.get(`toFixed(${match[1]})`) || 0) + 1);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
// Check for inconsistent decimal places
|
|
212
|
+
if (currencyPatterns.size > 1) {
|
|
213
|
+
const sorted = [...currencyPatterns.entries()].sort((a, b) => b[1] - a[1]);
|
|
214
|
+
issues.push({
|
|
215
|
+
file: "codebase-wide",
|
|
216
|
+
line: 0,
|
|
217
|
+
type: "inconsistent-decimal-places",
|
|
218
|
+
severity: "info",
|
|
219
|
+
message: `Multiple decimal patterns: ${sorted.map(([p, c]) => `${p}(${c})`).join(", ")}`,
|
|
220
|
+
suggestion: "Standardize decimal places for currency (usually 2)",
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
return {
|
|
224
|
+
name: "Currency Display",
|
|
225
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
226
|
+
blocking: false,
|
|
227
|
+
issues,
|
|
228
|
+
duration: Date.now() - startTime,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* 3. Date/Time Formatting
|
|
233
|
+
* Check for consistent date display patterns
|
|
234
|
+
*/
|
|
235
|
+
async checkDateTimeFormatting() {
|
|
236
|
+
const startTime = Date.now();
|
|
237
|
+
const issues = [];
|
|
238
|
+
const files = await this.getTsxFiles();
|
|
239
|
+
const dateFormatPatterns = new Map();
|
|
240
|
+
let hasDateFormatter = false;
|
|
241
|
+
let hasRelativeTime = false;
|
|
242
|
+
for (const file of files) {
|
|
243
|
+
const content = fs.readFileSync(file, "utf8");
|
|
244
|
+
const lines = content.split("\n");
|
|
245
|
+
if (/Intl\.DateTimeFormat|formatDate|date-fns|dayjs|moment/i.test(content)) {
|
|
246
|
+
hasDateFormatter = true;
|
|
247
|
+
}
|
|
248
|
+
if (/RelativeTimeFormat|formatRelative|fromNow|timeAgo/i.test(content)) {
|
|
249
|
+
hasRelativeTime = true;
|
|
250
|
+
}
|
|
251
|
+
for (let i = 0; i < lines.length; i++) {
|
|
252
|
+
const line = lines[i];
|
|
253
|
+
// Check for raw Date.toString() usage
|
|
254
|
+
if (/\.toString\(\)/.test(line) && /date|Date|time|Time/i.test(line)) {
|
|
255
|
+
issues.push({
|
|
256
|
+
file,
|
|
257
|
+
line: i + 1,
|
|
258
|
+
type: "raw-date-tostring",
|
|
259
|
+
severity: "warning",
|
|
260
|
+
message: "Date.toString() produces inconsistent output across locales",
|
|
261
|
+
suggestion: "Use Intl.DateTimeFormat or date-fns for consistent formatting",
|
|
262
|
+
snippet: line.trim().substring(0, 80),
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
// Check for toLocaleDateString with inconsistent options
|
|
266
|
+
if (/toLocaleDateString\(/.test(line)) {
|
|
267
|
+
const match = line.match(/toLocaleDateString\([^)]*\)/);
|
|
268
|
+
if (match) {
|
|
269
|
+
dateFormatPatterns.set("toLocaleDateString", (dateFormatPatterns.get("toLocaleDateString") || 0) + 1);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
// Check for date-fns format strings
|
|
273
|
+
if (/format\([^,]+,\s*['"]([^'"]+)['"]\)/.test(line)) {
|
|
274
|
+
const match = line.match(/format\([^,]+,\s*['"]([^'"]+)['"]\)/);
|
|
275
|
+
if (match) {
|
|
276
|
+
dateFormatPatterns.set(match[1], (dateFormatPatterns.get(match[1]) || 0) + 1);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
// Check for manual date string building
|
|
280
|
+
if (/getMonth\(\)|getDate\(\)|getFullYear\(\)/.test(line)) {
|
|
281
|
+
const contextBlock = lines.slice(i, Math.min(i + 3, lines.length)).join("\n");
|
|
282
|
+
if (/\+\s*['"]\/['"]|\+\s*['"]-['"]/.test(contextBlock)) {
|
|
283
|
+
issues.push({
|
|
284
|
+
file,
|
|
285
|
+
line: i + 1,
|
|
286
|
+
type: "manual-date-formatting",
|
|
287
|
+
severity: "info",
|
|
288
|
+
message: "Manual date string building - consider using formatter",
|
|
289
|
+
suggestion: "Use Intl.DateTimeFormat or date-fns for maintainable date formatting",
|
|
290
|
+
snippet: line.trim().substring(0, 80),
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// Check for too many date format patterns
|
|
297
|
+
if (dateFormatPatterns.size > 4) {
|
|
298
|
+
const sorted = [...dateFormatPatterns.entries()].sort((a, b) => b[1] - a[1]);
|
|
299
|
+
issues.push({
|
|
300
|
+
file: "codebase-wide",
|
|
301
|
+
line: 0,
|
|
302
|
+
type: "many-date-formats",
|
|
303
|
+
severity: "info",
|
|
304
|
+
message: `${dateFormatPatterns.size} different date formats in use`,
|
|
305
|
+
suggestion: "Standardize on 2-3 date formats (short, long, relative)",
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
name: "Date/Time Formatting",
|
|
310
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
311
|
+
blocking: false,
|
|
312
|
+
issues,
|
|
313
|
+
duration: Date.now() - startTime,
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* 4. Percentage Display
|
|
318
|
+
* Check for consistent percentage formatting
|
|
319
|
+
*/
|
|
320
|
+
async checkPercentageDisplay() {
|
|
321
|
+
const startTime = Date.now();
|
|
322
|
+
const issues = [];
|
|
323
|
+
const files = await this.getTsxFiles();
|
|
324
|
+
const percentPatterns = new Map();
|
|
325
|
+
for (const file of files) {
|
|
326
|
+
const content = fs.readFileSync(file, "utf8");
|
|
327
|
+
const lines = content.split("\n");
|
|
328
|
+
for (let i = 0; i < lines.length; i++) {
|
|
329
|
+
const line = lines[i];
|
|
330
|
+
// Check for percentage display patterns
|
|
331
|
+
if (/%/.test(line) && /\{.*\}/.test(line)) {
|
|
332
|
+
// Check for * 100 pattern
|
|
333
|
+
if (/\*\s*100\s*\}?\s*%/.test(line)) {
|
|
334
|
+
percentPatterns.set("multiply-100", (percentPatterns.get("multiply-100") || 0) + 1);
|
|
335
|
+
}
|
|
336
|
+
// Check for direct percentage (already 0-100)
|
|
337
|
+
else if (/\}\s*%/.test(line)) {
|
|
338
|
+
percentPatterns.set("direct", (percentPatterns.get("direct") || 0) + 1);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
// Check for Intl percent formatting
|
|
342
|
+
if (/style:\s*['"]percent/.test(line)) {
|
|
343
|
+
percentPatterns.set("intl-percent", (percentPatterns.get("intl-percent") || 0) + 1);
|
|
344
|
+
}
|
|
345
|
+
// Check for inconsistent decimal places in percentages
|
|
346
|
+
if (/toFixed\((\d)\).*%|%.*toFixed\((\d)\)/.test(line)) {
|
|
347
|
+
const match = line.match(/toFixed\((\d)\)/);
|
|
348
|
+
if (match) {
|
|
349
|
+
percentPatterns.set(`percent-${match[1]}dp`, (percentPatterns.get(`percent-${match[1]}dp`) || 0) + 1);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
// Check for mixed patterns
|
|
355
|
+
if (percentPatterns.has("multiply-100") && percentPatterns.has("direct")) {
|
|
356
|
+
issues.push({
|
|
357
|
+
file: "codebase-wide",
|
|
358
|
+
line: 0,
|
|
359
|
+
type: "mixed-percent-patterns",
|
|
360
|
+
severity: "warning",
|
|
361
|
+
message: "Mixed percentage patterns: some multiply by 100, some display directly",
|
|
362
|
+
suggestion: "Standardize: either store as 0-1 and multiply, or store as 0-100",
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
return {
|
|
366
|
+
name: "Percentage Display",
|
|
367
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
368
|
+
blocking: false,
|
|
369
|
+
issues,
|
|
370
|
+
duration: Date.now() - startTime,
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* 5. Large Number Abbreviation
|
|
375
|
+
* Check for consistent K, M, B abbreviation patterns
|
|
376
|
+
*/
|
|
377
|
+
async checkLargeNumberAbbreviation() {
|
|
378
|
+
const startTime = Date.now();
|
|
379
|
+
const issues = [];
|
|
380
|
+
const files = await this.getTsxFiles();
|
|
381
|
+
const abbreviationPatterns = new Map();
|
|
382
|
+
let hasCompactNotation = false;
|
|
383
|
+
for (const file of files) {
|
|
384
|
+
const content = fs.readFileSync(file, "utf8");
|
|
385
|
+
const lines = content.split("\n");
|
|
386
|
+
if (/notation:\s*['"]compact/.test(content)) {
|
|
387
|
+
hasCompactNotation = true;
|
|
388
|
+
}
|
|
389
|
+
for (let i = 0; i < lines.length; i++) {
|
|
390
|
+
const line = lines[i];
|
|
391
|
+
// Check for manual abbreviation functions
|
|
392
|
+
if (/formatNumber|abbreviate|compact|shorten/i.test(line)) {
|
|
393
|
+
const contextBlock = lines.slice(i, Math.min(i + 10, lines.length)).join("\n");
|
|
394
|
+
// Check patterns used
|
|
395
|
+
if (/['"]K['"]|\/\s*1000/.test(contextBlock)) {
|
|
396
|
+
abbreviationPatterns.set("K", (abbreviationPatterns.get("K") || 0) + 1);
|
|
397
|
+
}
|
|
398
|
+
if (/['"]M['"]|\/\s*1000000/.test(contextBlock)) {
|
|
399
|
+
abbreviationPatterns.set("M", (abbreviationPatterns.get("M") || 0) + 1);
|
|
400
|
+
}
|
|
401
|
+
if (/['"]k['"]/.test(contextBlock)) {
|
|
402
|
+
abbreviationPatterns.set("k-lowercase", (abbreviationPatterns.get("k-lowercase") || 0) + 1);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
// Check for hardcoded abbreviation logic
|
|
406
|
+
if (/>\s*1000000|>\s*1000000|>=\s*1000000/.test(line)) {
|
|
407
|
+
issues.push({
|
|
408
|
+
file,
|
|
409
|
+
line: i + 1,
|
|
410
|
+
type: "hardcoded-abbreviation-threshold",
|
|
411
|
+
severity: "info",
|
|
412
|
+
message: "Hardcoded number abbreviation threshold",
|
|
413
|
+
suggestion: "Use Intl.NumberFormat with notation: 'compact' for automatic abbreviation",
|
|
414
|
+
snippet: line.trim().substring(0, 80),
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
// Check for inconsistent casing
|
|
420
|
+
if (abbreviationPatterns.has("K") && abbreviationPatterns.has("k-lowercase")) {
|
|
421
|
+
issues.push({
|
|
422
|
+
file: "codebase-wide",
|
|
423
|
+
line: 0,
|
|
424
|
+
type: "inconsistent-abbreviation-case",
|
|
425
|
+
severity: "info",
|
|
426
|
+
message: "Mixed K/k casing in number abbreviations",
|
|
427
|
+
suggestion: "Standardize on uppercase K for thousands (1K, 1M, 1B)",
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
if (!hasCompactNotation && abbreviationPatterns.size > 0) {
|
|
431
|
+
issues.push({
|
|
432
|
+
file: "codebase-wide",
|
|
433
|
+
line: 0,
|
|
434
|
+
type: "manual-abbreviation",
|
|
435
|
+
severity: "info",
|
|
436
|
+
message: "Manual number abbreviation - consider using Intl compact notation",
|
|
437
|
+
suggestion: "Intl.NumberFormat with notation: 'compact' handles all cases automatically",
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
return {
|
|
441
|
+
name: "Large Number Abbreviation",
|
|
442
|
+
passed: true,
|
|
443
|
+
blocking: false,
|
|
444
|
+
issues,
|
|
445
|
+
duration: Date.now() - startTime,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* 6. Truncation Patterns
|
|
450
|
+
* Check for consistent text truncation handling
|
|
451
|
+
*/
|
|
452
|
+
async checkTruncationPatterns() {
|
|
453
|
+
const startTime = Date.now();
|
|
454
|
+
const issues = [];
|
|
455
|
+
const files = await this.getTsxFiles();
|
|
456
|
+
const truncationPatterns = new Map();
|
|
457
|
+
for (const file of files) {
|
|
458
|
+
const content = fs.readFileSync(file, "utf8");
|
|
459
|
+
const lines = content.split("\n");
|
|
460
|
+
for (let i = 0; i < lines.length; i++) {
|
|
461
|
+
const line = lines[i];
|
|
462
|
+
// Check for CSS truncation
|
|
463
|
+
if (/truncate|text-ellipsis|line-clamp/.test(line)) {
|
|
464
|
+
if (/truncate/.test(line)) {
|
|
465
|
+
truncationPatterns.set("truncate", (truncationPatterns.get("truncate") || 0) + 1);
|
|
466
|
+
}
|
|
467
|
+
if (/line-clamp-(\d)/.test(line)) {
|
|
468
|
+
const match = line.match(/line-clamp-(\d)/);
|
|
469
|
+
if (match) {
|
|
470
|
+
truncationPatterns.set(`line-clamp-${match[1]}`, (truncationPatterns.get(`line-clamp-${match[1]}`) || 0) + 1);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
// Check for JS truncation
|
|
475
|
+
if (/\.substring\(|\.slice\(|\.substr\(/.test(line)) {
|
|
476
|
+
const contextBlock = lines.slice(i, Math.min(i + 3, lines.length)).join("\n");
|
|
477
|
+
// Check for ellipsis addition
|
|
478
|
+
if (/\.\.\.|…|ellipsis/i.test(contextBlock)) {
|
|
479
|
+
truncationPatterns.set("js-truncate", (truncationPatterns.get("js-truncate") || 0) + 1);
|
|
480
|
+
// Check for proper ellipsis character
|
|
481
|
+
if (/['"]\.\.\.['"]/.test(contextBlock) && !/['"]…['"]/.test(contextBlock)) {
|
|
482
|
+
issues.push({
|
|
483
|
+
file,
|
|
484
|
+
line: i + 1,
|
|
485
|
+
type: "three-dots-not-ellipsis",
|
|
486
|
+
severity: "info",
|
|
487
|
+
message: "Using '...' instead of proper ellipsis character '…'",
|
|
488
|
+
suggestion: "Use the Unicode ellipsis character (…) or CSS text-overflow: ellipsis",
|
|
489
|
+
snippet: line.trim().substring(0, 80),
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
// Check for truncation without tooltip
|
|
495
|
+
if (/truncate|line-clamp|text-ellipsis/.test(line)) {
|
|
496
|
+
const contextBlock = lines.slice(Math.max(0, i - 5), Math.min(i + 5, lines.length)).join("\n");
|
|
497
|
+
const hasTooltip = /Tooltip|title=|aria-label/.test(contextBlock);
|
|
498
|
+
if (!hasTooltip) {
|
|
499
|
+
issues.push({
|
|
500
|
+
file,
|
|
501
|
+
line: i + 1,
|
|
502
|
+
type: "truncate-no-tooltip",
|
|
503
|
+
severity: "info",
|
|
504
|
+
message: "Truncated text without tooltip to show full content",
|
|
505
|
+
suggestion: "Add Tooltip or title attribute to show full text on hover",
|
|
506
|
+
snippet: line.trim().substring(0, 80),
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
// Report truncation pattern usage
|
|
513
|
+
if (truncationPatterns.size > 3) {
|
|
514
|
+
const sorted = [...truncationPatterns.entries()].sort((a, b) => b[1] - a[1]);
|
|
515
|
+
issues.push({
|
|
516
|
+
file: "codebase-wide",
|
|
517
|
+
line: 0,
|
|
518
|
+
type: "many-truncation-patterns",
|
|
519
|
+
severity: "info",
|
|
520
|
+
message: `${truncationPatterns.size} truncation patterns: ${sorted.slice(0, 4).map(([p, c]) => `${p}(${c})`).join(", ")}`,
|
|
521
|
+
suggestion: "Standardize on CSS truncation (truncate, line-clamp-2) over JS truncation",
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
return {
|
|
525
|
+
name: "Truncation Patterns",
|
|
526
|
+
passed: true,
|
|
527
|
+
blocking: false,
|
|
528
|
+
issues,
|
|
529
|
+
duration: Date.now() - startTime,
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* 7. Empty/Null Placeholders
|
|
534
|
+
* Check for consistent empty data display
|
|
535
|
+
*/
|
|
536
|
+
async checkEmptyNullPlaceholders() {
|
|
537
|
+
const startTime = Date.now();
|
|
538
|
+
const issues = [];
|
|
539
|
+
const files = await this.getTsxFiles();
|
|
540
|
+
const placeholderPatterns = new Map();
|
|
541
|
+
for (const file of files) {
|
|
542
|
+
const content = fs.readFileSync(file, "utf8");
|
|
543
|
+
const lines = content.split("\n");
|
|
544
|
+
for (let i = 0; i < lines.length; i++) {
|
|
545
|
+
const line = lines[i];
|
|
546
|
+
// Check for various empty placeholders
|
|
547
|
+
if (/\|\|\s*['"](-|—|N\/A|n\/a|None|none|Empty|empty|\?)['"]/.test(line)) {
|
|
548
|
+
const match = line.match(/\|\|\s*['"](-|—|N\/A|n\/a|None|none|Empty|empty|\?)['"]/);
|
|
549
|
+
if (match) {
|
|
550
|
+
const placeholder = match[1];
|
|
551
|
+
placeholderPatterns.set(placeholder, (placeholderPatterns.get(placeholder) || 0) + 1);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
// Check for ternary with empty placeholders
|
|
555
|
+
if (/\?\s*[^:]+\s*:\s*['"](-|—|N\/A|n\/a|None|none)['"]/i.test(line)) {
|
|
556
|
+
const match = line.match(/:\s*['"](-|—|N\/A|n\/a|None|none)['"]/i);
|
|
557
|
+
if (match) {
|
|
558
|
+
placeholderPatterns.set(match[1], (placeholderPatterns.get(match[1]) || 0) + 1);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
// Check for ?? operator placeholders
|
|
562
|
+
if (/\?\?\s*['"](-|—|N\/A|n\/a|None|none)['"]/i.test(line)) {
|
|
563
|
+
const match = line.match(/\?\?\s*['"](-|—|N\/A|n\/a|None|none)['"]/i);
|
|
564
|
+
if (match) {
|
|
565
|
+
placeholderPatterns.set(match[1], (placeholderPatterns.get(match[1]) || 0) + 1);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
// Check for inconsistent placeholders
|
|
571
|
+
if (placeholderPatterns.size > 2) {
|
|
572
|
+
const sorted = [...placeholderPatterns.entries()].sort((a, b) => b[1] - a[1]);
|
|
573
|
+
issues.push({
|
|
574
|
+
file: "codebase-wide",
|
|
575
|
+
line: 0,
|
|
576
|
+
type: "inconsistent-empty-placeholders",
|
|
577
|
+
severity: "warning",
|
|
578
|
+
message: `Multiple empty data placeholders: ${sorted.map(([p, c]) => `"${p}"(${c})`).join(", ")}`,
|
|
579
|
+
suggestion: "Standardize on one placeholder (recommended: '—' em dash or 'N/A')",
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
// Check for hyphen vs em-dash
|
|
583
|
+
if (placeholderPatterns.has("-") && !placeholderPatterns.has("—")) {
|
|
584
|
+
issues.push({
|
|
585
|
+
file: "codebase-wide",
|
|
586
|
+
line: 0,
|
|
587
|
+
type: "hyphen-not-emdash",
|
|
588
|
+
severity: "info",
|
|
589
|
+
message: "Using hyphen (-) instead of em dash (—) for empty placeholders",
|
|
590
|
+
suggestion: "Use em dash (—) for better visual distinction from data",
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
return {
|
|
594
|
+
name: "Empty/Null Placeholders",
|
|
595
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
596
|
+
blocking: false,
|
|
597
|
+
issues,
|
|
598
|
+
duration: Date.now() - startTime,
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* 8. Decimal Precision
|
|
603
|
+
* Check for consistent decimal place handling
|
|
604
|
+
*/
|
|
605
|
+
async checkDecimalPrecision() {
|
|
606
|
+
const startTime = Date.now();
|
|
607
|
+
const issues = [];
|
|
608
|
+
const files = await this.getTsxFiles();
|
|
609
|
+
const precisionByContext = new Map();
|
|
610
|
+
for (const file of files) {
|
|
611
|
+
const content = fs.readFileSync(file, "utf8");
|
|
612
|
+
const lines = content.split("\n");
|
|
613
|
+
for (let i = 0; i < lines.length; i++) {
|
|
614
|
+
const line = lines[i];
|
|
615
|
+
// Check for toFixed usage
|
|
616
|
+
if (/\.toFixed\((\d)\)/.test(line)) {
|
|
617
|
+
const match = line.match(/\.toFixed\((\d)\)/);
|
|
618
|
+
if (match) {
|
|
619
|
+
const precision = match[1];
|
|
620
|
+
const contextBlock = lines.slice(Math.max(0, i - 5), Math.min(i + 5, lines.length)).join("\n");
|
|
621
|
+
// Determine context
|
|
622
|
+
let context = "general";
|
|
623
|
+
if (/price|cost|amount|total|fee|dollar|currency/i.test(contextBlock)) {
|
|
624
|
+
context = "currency";
|
|
625
|
+
}
|
|
626
|
+
else if (/percent|rate|ratio/i.test(contextBlock)) {
|
|
627
|
+
context = "percentage";
|
|
628
|
+
}
|
|
629
|
+
else if (/weight|dimension|size|measure/i.test(contextBlock)) {
|
|
630
|
+
context = "measurement";
|
|
631
|
+
}
|
|
632
|
+
if (!precisionByContext.has(context)) {
|
|
633
|
+
precisionByContext.set(context, new Map());
|
|
634
|
+
}
|
|
635
|
+
const contextMap = precisionByContext.get(context);
|
|
636
|
+
contextMap.set(precision, (contextMap.get(precision) || 0) + 1);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
// Check for inconsistency within each context
|
|
642
|
+
for (const [context, precisions] of precisionByContext.entries()) {
|
|
643
|
+
if (precisions.size > 1) {
|
|
644
|
+
const sorted = [...precisions.entries()].sort((a, b) => b[1] - a[1]);
|
|
645
|
+
issues.push({
|
|
646
|
+
file: "codebase-wide",
|
|
647
|
+
line: 0,
|
|
648
|
+
type: `inconsistent-${context}-precision`,
|
|
649
|
+
severity: context === "currency" ? "warning" : "info",
|
|
650
|
+
message: `Inconsistent decimal precision for ${context}: ${sorted.map(([p, c]) => `${p}dp(${c})`).join(", ")}`,
|
|
651
|
+
suggestion: context === "currency" ? "Currency should consistently use 2 decimal places" : `Standardize ${context} precision`,
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return {
|
|
656
|
+
name: "Decimal Precision",
|
|
657
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
658
|
+
blocking: false,
|
|
659
|
+
issues,
|
|
660
|
+
duration: Date.now() - startTime,
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Run all checks
|
|
665
|
+
*/
|
|
666
|
+
async runAll(filter) {
|
|
667
|
+
const startTime = Date.now();
|
|
668
|
+
const checks = [];
|
|
669
|
+
const checkMap = {
|
|
670
|
+
numbers: () => this.checkNumberFormatting(),
|
|
671
|
+
currency: () => this.checkCurrencyDisplay(),
|
|
672
|
+
datetime: () => this.checkDateTimeFormatting(),
|
|
673
|
+
percent: () => this.checkPercentageDisplay(),
|
|
674
|
+
abbreviation: () => this.checkLargeNumberAbbreviation(),
|
|
675
|
+
truncation: () => this.checkTruncationPatterns(),
|
|
676
|
+
placeholder: () => this.checkEmptyNullPlaceholders(),
|
|
677
|
+
precision: () => this.checkDecimalPrecision(),
|
|
678
|
+
};
|
|
679
|
+
if (filter && checkMap[filter]) {
|
|
680
|
+
checks.push(await checkMap[filter]());
|
|
681
|
+
}
|
|
682
|
+
else {
|
|
683
|
+
for (const check of Object.values(checkMap)) {
|
|
684
|
+
checks.push(await check());
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
const errors = checks.reduce((sum, c) => sum + c.issues.filter((i) => i.severity === "error").length, 0);
|
|
688
|
+
const warnings = checks.reduce((sum, c) => sum + c.issues.filter((i) => i.severity === "warning").length, 0);
|
|
689
|
+
return {
|
|
690
|
+
module: "UI Data Display",
|
|
691
|
+
passed: errors === 0,
|
|
692
|
+
totalDuration: Date.now() - startTime,
|
|
693
|
+
checks,
|
|
694
|
+
summary: {
|
|
695
|
+
total: checks.length,
|
|
696
|
+
passed: checks.filter((c) => c.passed).length,
|
|
697
|
+
failed: checks.filter((c) => !c.passed).length,
|
|
698
|
+
errors,
|
|
699
|
+
warnings,
|
|
700
|
+
},
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
exports.UIDataDisplayModule = UIDataDisplayModule;
|
|
705
|
+
async function main() {
|
|
706
|
+
const args = process.argv.slice(2);
|
|
707
|
+
const filter = args.find((a) => !a.startsWith("-"));
|
|
708
|
+
const verbose = args.includes("--verbose") || args.includes("-v");
|
|
709
|
+
const module = new UIDataDisplayModule({ verbose });
|
|
710
|
+
const result = await module.runAll(filter);
|
|
711
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
712
|
+
console.log(`${console_chars_1.emoji.chart} UI DATA DISPLAY CHECK`);
|
|
713
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
714
|
+
console.log();
|
|
715
|
+
for (const check of result.checks) {
|
|
716
|
+
const icon = check.passed ? console_chars_1.emoji.success : check.issues.some((i) => i.severity === "error") ? console_chars_1.emoji.error : console_chars_1.emoji.warning;
|
|
717
|
+
console.log(`${icon} ${check.name} (${check.duration}ms)`);
|
|
718
|
+
if (check.issues.length > 0 && (verbose || check.issues.some((i) => i.severity !== "info"))) {
|
|
719
|
+
for (const issue of check.issues.slice(0, verbose ? 100 : 5)) {
|
|
720
|
+
const sevIcon = issue.severity === "error" ? console_chars_1.emoji.error : issue.severity === "warning" ? console_chars_1.emoji.warning : console_chars_1.emoji.info;
|
|
721
|
+
const relPath = path.relative(process.cwd(), issue.file).replace(/\\/g, "/");
|
|
722
|
+
console.log(` ${sevIcon} ${relPath}:${issue.line}`);
|
|
723
|
+
console.log(` ${issue.message}`);
|
|
724
|
+
console.log(` ${console_chars_1.emoji.hint} ${issue.suggestion}`);
|
|
725
|
+
}
|
|
726
|
+
if (!verbose && check.issues.length > 5) {
|
|
727
|
+
console.log(` ... and ${check.issues.length - 5} more issues`);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
console.log();
|
|
731
|
+
}
|
|
732
|
+
console.log((0, console_chars_1.createDivider)(80, "light"));
|
|
733
|
+
console.log(`Total: ${result.summary.total} checks | ${console_chars_1.emoji.error} ${result.summary.errors} errors | ${console_chars_1.emoji.warning} ${result.summary.warnings} warnings`);
|
|
734
|
+
console.log(`Duration: ${(result.totalDuration / 1000).toFixed(2)}s`);
|
|
735
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
736
|
+
process.exit(result.summary.errors > 0 ? 1 : 0);
|
|
737
|
+
}
|
|
738
|
+
if (require.main === module)
|
|
739
|
+
main();
|
|
740
|
+
//# sourceMappingURL=ui-data-display.js.map
|