@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,90 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
/**
|
|
3
|
+
* UI Visual Hierarchy Preflight (NON-BLOCKING)
|
|
4
|
+
*
|
|
5
|
+
* Validates visual hierarchy and content prioritization.
|
|
6
|
+
*
|
|
7
|
+
* Checks:
|
|
8
|
+
* 1. Heading Level Progression - h1→h2→h3 proper nesting
|
|
9
|
+
* 2. Primary Action Visual Weight - CTA prominence
|
|
10
|
+
* 3. Visual Grouping Consistency - Card vs section usage
|
|
11
|
+
* 4. White Space Rhythm - Consistent spacing patterns
|
|
12
|
+
* 5. Content Density Balance - Information overload detection
|
|
13
|
+
* 6. Z-Index Layer Hierarchy - Proper stacking context
|
|
14
|
+
* 7. Font Weight Hierarchy - Bold usage for emphasis
|
|
15
|
+
* 8. Size Hierarchy - Consistent sizing scales
|
|
16
|
+
*
|
|
17
|
+
* Usage:
|
|
18
|
+
* pnpm preflight:ui-visual-hierarchy
|
|
19
|
+
*/
|
|
20
|
+
interface Issue {
|
|
21
|
+
file: string;
|
|
22
|
+
line: number;
|
|
23
|
+
type: string;
|
|
24
|
+
severity: "error" | "warning" | "info";
|
|
25
|
+
message: string;
|
|
26
|
+
suggestion: string;
|
|
27
|
+
snippet?: string;
|
|
28
|
+
}
|
|
29
|
+
interface CheckResult {
|
|
30
|
+
name: string;
|
|
31
|
+
passed: boolean;
|
|
32
|
+
blocking: boolean;
|
|
33
|
+
issues: Issue[];
|
|
34
|
+
duration: number;
|
|
35
|
+
}
|
|
36
|
+
interface ModuleResult {
|
|
37
|
+
module: string;
|
|
38
|
+
passed: boolean;
|
|
39
|
+
totalDuration: number;
|
|
40
|
+
checks: CheckResult[];
|
|
41
|
+
summary: {
|
|
42
|
+
total: number;
|
|
43
|
+
passed: number;
|
|
44
|
+
failed: number;
|
|
45
|
+
errors: number;
|
|
46
|
+
warnings: number;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
declare class UIVisualHierarchyModule {
|
|
50
|
+
private verbose;
|
|
51
|
+
constructor(options?: {
|
|
52
|
+
verbose?: boolean;
|
|
53
|
+
});
|
|
54
|
+
private getTsxFiles;
|
|
55
|
+
/**
|
|
56
|
+
* 1. Heading Level Progression
|
|
57
|
+
*/
|
|
58
|
+
checkHeadingLevelProgression(): Promise<CheckResult>;
|
|
59
|
+
/**
|
|
60
|
+
* 2. Primary Action Visual Weight
|
|
61
|
+
*/
|
|
62
|
+
checkPrimaryActionWeight(): Promise<CheckResult>;
|
|
63
|
+
/**
|
|
64
|
+
* 3. Visual Grouping Consistency
|
|
65
|
+
*/
|
|
66
|
+
checkVisualGroupingConsistency(): Promise<CheckResult>;
|
|
67
|
+
/**
|
|
68
|
+
* 4. White Space Rhythm
|
|
69
|
+
*/
|
|
70
|
+
checkWhiteSpaceRhythm(): Promise<CheckResult>;
|
|
71
|
+
/**
|
|
72
|
+
* 5. Content Density Balance
|
|
73
|
+
*/
|
|
74
|
+
checkContentDensityBalance(): Promise<CheckResult>;
|
|
75
|
+
/**
|
|
76
|
+
* 6. Z-Index Layer Hierarchy
|
|
77
|
+
*/
|
|
78
|
+
checkZIndexHierarchy(): Promise<CheckResult>;
|
|
79
|
+
/**
|
|
80
|
+
* 7. Font Weight Hierarchy
|
|
81
|
+
*/
|
|
82
|
+
checkFontWeightHierarchy(): Promise<CheckResult>;
|
|
83
|
+
/**
|
|
84
|
+
* 8. Size Hierarchy
|
|
85
|
+
*/
|
|
86
|
+
checkSizeHierarchy(): Promise<CheckResult>;
|
|
87
|
+
runAll(filter?: string): Promise<ModuleResult>;
|
|
88
|
+
}
|
|
89
|
+
export { UIVisualHierarchyModule };
|
|
90
|
+
//# sourceMappingURL=ui-visual-hierarchy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-visual-hierarchy.d.ts","sourceRoot":"","sources":["../../../src/checks/consolidated/ui-visual-hierarchy.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;GAiBG;AAOH,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9F;AAED,cAAM,uBAAuB;IAC3B,OAAO,CAAC,OAAO,CAAU;gBAEb,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAO;YAIjC,WAAW;IAIzB;;OAEG;IACG,4BAA4B,IAAI,OAAO,CAAC,WAAW,CAAC;IA4D1D;;OAEG;IACG,wBAAwB,IAAI,OAAO,CAAC,WAAW,CAAC;IAoDtD;;OAEG;IACG,8BAA8B,IAAI,OAAO,CAAC,WAAW,CAAC;IAwD5D;;OAEG;IACG,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC;IA8DnD;;OAEG;IACG,0BAA0B,IAAI,OAAO,CAAC,WAAW,CAAC;IAoDxD;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,WAAW,CAAC;IA8DlD;;OAEG;IACG,wBAAwB,IAAI,OAAO,CAAC,WAAW,CAAC;IAmDtD;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC;IAkE1C,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAwCrD;AA2CD,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* UI Visual Hierarchy Preflight (NON-BLOCKING)
|
|
5
|
+
*
|
|
6
|
+
* Validates visual hierarchy and content prioritization.
|
|
7
|
+
*
|
|
8
|
+
* Checks:
|
|
9
|
+
* 1. Heading Level Progression - h1→h2→h3 proper nesting
|
|
10
|
+
* 2. Primary Action Visual Weight - CTA prominence
|
|
11
|
+
* 3. Visual Grouping Consistency - Card vs section usage
|
|
12
|
+
* 4. White Space Rhythm - Consistent spacing patterns
|
|
13
|
+
* 5. Content Density Balance - Information overload detection
|
|
14
|
+
* 6. Z-Index Layer Hierarchy - Proper stacking context
|
|
15
|
+
* 7. Font Weight Hierarchy - Bold usage for emphasis
|
|
16
|
+
* 8. Size Hierarchy - Consistent sizing scales
|
|
17
|
+
*
|
|
18
|
+
* Usage:
|
|
19
|
+
* pnpm preflight:ui-visual-hierarchy
|
|
20
|
+
*/
|
|
21
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(o, k2, desc);
|
|
28
|
+
}) : (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
o[k2] = m[k];
|
|
31
|
+
}));
|
|
32
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
33
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34
|
+
}) : function(o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
37
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
38
|
+
var ownKeys = function(o) {
|
|
39
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
40
|
+
var ar = [];
|
|
41
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
42
|
+
return ar;
|
|
43
|
+
};
|
|
44
|
+
return ownKeys(o);
|
|
45
|
+
};
|
|
46
|
+
return function (mod) {
|
|
47
|
+
if (mod && mod.__esModule) return mod;
|
|
48
|
+
var result = {};
|
|
49
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
50
|
+
__setModuleDefault(result, mod);
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
})();
|
|
54
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
+
exports.UIVisualHierarchyModule = void 0;
|
|
56
|
+
const fs = __importStar(require("fs"));
|
|
57
|
+
const path = __importStar(require("path"));
|
|
58
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
59
|
+
const file_cache_1 = require("../../shared/file-cache");
|
|
60
|
+
class UIVisualHierarchyModule {
|
|
61
|
+
verbose;
|
|
62
|
+
constructor(options = {}) {
|
|
63
|
+
this.verbose = options.verbose || false;
|
|
64
|
+
}
|
|
65
|
+
async getTsxFiles() {
|
|
66
|
+
return file_cache_1.fileCache.getAppAndComponentsTSX();
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* 1. Heading Level Progression
|
|
70
|
+
*/
|
|
71
|
+
async checkHeadingLevelProgression() {
|
|
72
|
+
const startTime = Date.now();
|
|
73
|
+
const issues = [];
|
|
74
|
+
const files = await this.getTsxFiles();
|
|
75
|
+
for (const file of files) {
|
|
76
|
+
const content = fs.readFileSync(file, "utf8");
|
|
77
|
+
const lines = content.split("\n");
|
|
78
|
+
const headingLevels = [];
|
|
79
|
+
for (let i = 0; i < lines.length; i++) {
|
|
80
|
+
const line = lines[i];
|
|
81
|
+
// Check for h1-h6 tags
|
|
82
|
+
const headingMatch = line.match(/<h([1-6])\b/);
|
|
83
|
+
if (headingMatch) {
|
|
84
|
+
const level = parseInt(headingMatch[1]);
|
|
85
|
+
const lastLevel = headingLevels.length > 0 ? headingLevels[headingLevels.length - 1] : 0;
|
|
86
|
+
// Check for skipped levels (h1 → h3)
|
|
87
|
+
if (level > lastLevel + 1 && lastLevel > 0) {
|
|
88
|
+
issues.push({
|
|
89
|
+
file,
|
|
90
|
+
line: i + 1,
|
|
91
|
+
type: "skipped-heading-level",
|
|
92
|
+
severity: "warning",
|
|
93
|
+
message: `Skipped heading level: h${lastLevel} → h${level}`,
|
|
94
|
+
suggestion: `Use h${lastLevel + 1} instead for proper document outline`,
|
|
95
|
+
snippet: line.trim().substring(0, 80),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
headingLevels.push(level);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// Check for multiple h1s
|
|
102
|
+
const h1Count = headingLevels.filter((l) => l === 1).length;
|
|
103
|
+
if (h1Count > 1) {
|
|
104
|
+
issues.push({
|
|
105
|
+
file,
|
|
106
|
+
line: 1,
|
|
107
|
+
type: "multiple-h1",
|
|
108
|
+
severity: "info",
|
|
109
|
+
message: `${h1Count} h1 headings found - should typically have one per page`,
|
|
110
|
+
suggestion: "Use h1 for main page title only, h2 for sections",
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
name: "Heading Level Progression",
|
|
116
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
117
|
+
blocking: false,
|
|
118
|
+
issues,
|
|
119
|
+
duration: Date.now() - startTime,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* 2. Primary Action Visual Weight
|
|
124
|
+
*/
|
|
125
|
+
async checkPrimaryActionWeight() {
|
|
126
|
+
const startTime = Date.now();
|
|
127
|
+
const issues = [];
|
|
128
|
+
const files = await this.getTsxFiles();
|
|
129
|
+
for (const file of files) {
|
|
130
|
+
const content = fs.readFileSync(file, "utf8");
|
|
131
|
+
const lines = content.split("\n");
|
|
132
|
+
let primaryButtonCount = 0;
|
|
133
|
+
let secondaryButtonCount = 0;
|
|
134
|
+
for (let i = 0; i < lines.length; i++) {
|
|
135
|
+
const line = lines[i];
|
|
136
|
+
// Count primary vs secondary buttons
|
|
137
|
+
if (/variant=["'](?:default|primary)["']|<Button(?![^>]*variant)/.test(line)) {
|
|
138
|
+
primaryButtonCount++;
|
|
139
|
+
}
|
|
140
|
+
if (/variant=["'](?:secondary|outline|ghost)["']/.test(line)) {
|
|
141
|
+
secondaryButtonCount++;
|
|
142
|
+
}
|
|
143
|
+
// Check for multiple primary actions in same area
|
|
144
|
+
if (/ButtonGroup|button.*group|actions|cta/i.test(line)) {
|
|
145
|
+
const contextBlock = lines.slice(i, Math.min(i + 15, lines.length)).join("\n");
|
|
146
|
+
const primaryInGroup = (contextBlock.match(/variant=["'](?:default|primary)["']/g) || []).length;
|
|
147
|
+
if (primaryInGroup > 1) {
|
|
148
|
+
issues.push({
|
|
149
|
+
file,
|
|
150
|
+
line: i + 1,
|
|
151
|
+
type: "multiple-primary-actions",
|
|
152
|
+
severity: "info",
|
|
153
|
+
message: `${primaryInGroup} primary buttons in action group`,
|
|
154
|
+
suggestion: "Use one primary action, others should be secondary/outline",
|
|
155
|
+
snippet: line.trim().substring(0, 80),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
name: "Primary Action Weight",
|
|
163
|
+
passed: true,
|
|
164
|
+
blocking: false,
|
|
165
|
+
issues,
|
|
166
|
+
duration: Date.now() - startTime,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* 3. Visual Grouping Consistency
|
|
171
|
+
*/
|
|
172
|
+
async checkVisualGroupingConsistency() {
|
|
173
|
+
const startTime = Date.now();
|
|
174
|
+
const issues = [];
|
|
175
|
+
const files = await this.getTsxFiles();
|
|
176
|
+
const groupingPatterns = new Map();
|
|
177
|
+
for (const file of files) {
|
|
178
|
+
const content = fs.readFileSync(file, "utf8");
|
|
179
|
+
const lines = content.split("\n");
|
|
180
|
+
for (let i = 0; i < lines.length; i++) {
|
|
181
|
+
const line = lines[i];
|
|
182
|
+
// Track grouping patterns
|
|
183
|
+
if (/<Card\b/.test(line)) {
|
|
184
|
+
groupingPatterns.set("Card", (groupingPatterns.get("Card") || 0) + 1);
|
|
185
|
+
}
|
|
186
|
+
if (/<Section\b/.test(line)) {
|
|
187
|
+
groupingPatterns.set("Section", (groupingPatterns.get("Section") || 0) + 1);
|
|
188
|
+
}
|
|
189
|
+
if (/border.*rounded|rounded.*border/.test(line) && !/<Card/.test(line)) {
|
|
190
|
+
groupingPatterns.set("div-with-border", (groupingPatterns.get("div-with-border") || 0) + 1);
|
|
191
|
+
}
|
|
192
|
+
// Check for inconsistent grouping in lists
|
|
193
|
+
if (/\.map\s*\(/.test(line)) {
|
|
194
|
+
const contextBlock = lines.slice(i, Math.min(i + 20, lines.length)).join("\n");
|
|
195
|
+
const hasCard = /<Card/.test(contextBlock);
|
|
196
|
+
const hasBorderedDiv = /border.*rounded|rounded.*border/.test(contextBlock) && !/<Card/.test(contextBlock);
|
|
197
|
+
if (hasCard && hasBorderedDiv) {
|
|
198
|
+
issues.push({
|
|
199
|
+
file,
|
|
200
|
+
line: i + 1,
|
|
201
|
+
type: "mixed-grouping-in-list",
|
|
202
|
+
severity: "info",
|
|
203
|
+
message: "List items mix Card and bordered div patterns",
|
|
204
|
+
suggestion: "Use consistent grouping: all Cards or all simple containers",
|
|
205
|
+
snippet: line.trim().substring(0, 80),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
name: "Visual Grouping Consistency",
|
|
213
|
+
passed: true,
|
|
214
|
+
blocking: false,
|
|
215
|
+
issues,
|
|
216
|
+
duration: Date.now() - startTime,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* 4. White Space Rhythm
|
|
221
|
+
*/
|
|
222
|
+
async checkWhiteSpaceRhythm() {
|
|
223
|
+
const startTime = Date.now();
|
|
224
|
+
const issues = [];
|
|
225
|
+
const files = await this.getTsxFiles();
|
|
226
|
+
const spacingPatterns = new Map();
|
|
227
|
+
for (const file of files) {
|
|
228
|
+
const content = fs.readFileSync(file, "utf8");
|
|
229
|
+
const lines = content.split("\n");
|
|
230
|
+
for (let i = 0; i < lines.length; i++) {
|
|
231
|
+
const line = lines[i];
|
|
232
|
+
// Track section spacing patterns
|
|
233
|
+
if (/space-y-(\d+)|gap-(\d+)|mb-(\d+)|mt-(\d+)/.test(line)) {
|
|
234
|
+
const matches = line.match(/(?:space-y-|gap-|mb-|mt-)(\d+)/g) || [];
|
|
235
|
+
for (const match of matches) {
|
|
236
|
+
spacingPatterns.set(match, (spacingPatterns.get(match) || 0) + 1);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
// Check for arbitrary spacing values
|
|
240
|
+
if (/space-y-\[|gap-\[|m[tblrxy]-\[/.test(line)) {
|
|
241
|
+
const match = line.match(/(?:space-y-|gap-|m[tblrxy]-)\[([^\]]+)\]/);
|
|
242
|
+
if (match) {
|
|
243
|
+
issues.push({
|
|
244
|
+
file,
|
|
245
|
+
line: i + 1,
|
|
246
|
+
type: "arbitrary-spacing",
|
|
247
|
+
severity: "info",
|
|
248
|
+
message: `Arbitrary spacing value: ${match[0]}`,
|
|
249
|
+
suggestion: "Use design system spacing tokens (4, 6, 8, 12, 16)",
|
|
250
|
+
snippet: line.trim().substring(0, 80),
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
// Check for too many spacing variations
|
|
257
|
+
if (spacingPatterns.size > 8) {
|
|
258
|
+
const sorted = [...spacingPatterns.entries()].sort((a, b) => b[1] - a[1]);
|
|
259
|
+
issues.push({
|
|
260
|
+
file: "codebase-wide",
|
|
261
|
+
line: 0,
|
|
262
|
+
type: "too-many-spacing-values",
|
|
263
|
+
severity: "info",
|
|
264
|
+
message: `${spacingPatterns.size} different spacing patterns in use`,
|
|
265
|
+
suggestion: "Standardize on fewer spacing values for visual rhythm",
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
return {
|
|
269
|
+
name: "White Space Rhythm",
|
|
270
|
+
passed: true,
|
|
271
|
+
blocking: false,
|
|
272
|
+
issues,
|
|
273
|
+
duration: Date.now() - startTime,
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* 5. Content Density Balance
|
|
278
|
+
*/
|
|
279
|
+
async checkContentDensityBalance() {
|
|
280
|
+
const startTime = Date.now();
|
|
281
|
+
const issues = [];
|
|
282
|
+
const files = await this.getTsxFiles();
|
|
283
|
+
for (const file of files) {
|
|
284
|
+
const content = fs.readFileSync(file, "utf8");
|
|
285
|
+
const lines = content.split("\n");
|
|
286
|
+
for (let i = 0; i < lines.length; i++) {
|
|
287
|
+
const line = lines[i];
|
|
288
|
+
// Check for dense grid layouts
|
|
289
|
+
if (/grid-cols-(\d+)|grid.*cols.*(\d+)/.test(line)) {
|
|
290
|
+
const match = line.match(/grid-cols-(\d+)/);
|
|
291
|
+
if (match && parseInt(match[1]) > 4) {
|
|
292
|
+
issues.push({
|
|
293
|
+
file,
|
|
294
|
+
line: i + 1,
|
|
295
|
+
type: "dense-grid",
|
|
296
|
+
severity: "info",
|
|
297
|
+
message: `Grid with ${match[1]} columns may be too dense`,
|
|
298
|
+
suggestion: "Consider fewer columns or responsive breakpoints",
|
|
299
|
+
snippet: line.trim().substring(0, 80),
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
// Check for cramped padding
|
|
304
|
+
if (/<Card[^>]*p-1|<Card[^>]*p-2/.test(line)) {
|
|
305
|
+
issues.push({
|
|
306
|
+
file,
|
|
307
|
+
line: i + 1,
|
|
308
|
+
type: "cramped-card-padding",
|
|
309
|
+
severity: "info",
|
|
310
|
+
message: "Card with minimal padding may feel cramped",
|
|
311
|
+
suggestion: "Use p-4 or p-6 for comfortable card padding",
|
|
312
|
+
snippet: line.trim().substring(0, 80),
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
name: "Content Density Balance",
|
|
319
|
+
passed: true,
|
|
320
|
+
blocking: false,
|
|
321
|
+
issues,
|
|
322
|
+
duration: Date.now() - startTime,
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* 6. Z-Index Layer Hierarchy
|
|
327
|
+
*/
|
|
328
|
+
async checkZIndexHierarchy() {
|
|
329
|
+
const startTime = Date.now();
|
|
330
|
+
const issues = [];
|
|
331
|
+
const files = await this.getTsxFiles();
|
|
332
|
+
const zIndexValues = new Map();
|
|
333
|
+
for (const file of files) {
|
|
334
|
+
const content = fs.readFileSync(file, "utf8");
|
|
335
|
+
const lines = content.split("\n");
|
|
336
|
+
for (let i = 0; i < lines.length; i++) {
|
|
337
|
+
const line = lines[i];
|
|
338
|
+
// Track z-index values
|
|
339
|
+
const zMatch = line.match(/z-(\d+)|z-\[(\d+)\]|zIndex:\s*(\d+)/);
|
|
340
|
+
if (zMatch) {
|
|
341
|
+
const value = zMatch[1] || zMatch[2] || zMatch[3];
|
|
342
|
+
if (!zIndexValues.has(value)) {
|
|
343
|
+
zIndexValues.set(value, []);
|
|
344
|
+
}
|
|
345
|
+
zIndexValues.get(value).push({ file, line: i + 1 });
|
|
346
|
+
}
|
|
347
|
+
// Check for very high z-index values
|
|
348
|
+
if (/z-\[9999\]|z-\[999\]|zIndex:\s*9999/.test(line)) {
|
|
349
|
+
issues.push({
|
|
350
|
+
file,
|
|
351
|
+
line: i + 1,
|
|
352
|
+
type: "excessive-z-index",
|
|
353
|
+
severity: "warning",
|
|
354
|
+
message: "Excessively high z-index value",
|
|
355
|
+
suggestion: "Use structured z-index scale (10, 20, 30, 40, 50)",
|
|
356
|
+
snippet: line.trim().substring(0, 80),
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
// Check for z-index collisions
|
|
362
|
+
for (const [value, locations] of zIndexValues.entries()) {
|
|
363
|
+
if (locations.length > 3 && parseInt(value) > 10) {
|
|
364
|
+
issues.push({
|
|
365
|
+
file: "codebase-wide",
|
|
366
|
+
line: 0,
|
|
367
|
+
type: "z-index-collision-risk",
|
|
368
|
+
severity: "info",
|
|
369
|
+
message: `z-${value} used ${locations.length} times - potential stacking issues`,
|
|
370
|
+
suggestion: "Use semantic z-index tokens (z-dropdown, z-modal, z-tooltip)",
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return {
|
|
375
|
+
name: "Z-Index Layer Hierarchy",
|
|
376
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
377
|
+
blocking: false,
|
|
378
|
+
issues,
|
|
379
|
+
duration: Date.now() - startTime,
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* 7. Font Weight Hierarchy
|
|
384
|
+
*/
|
|
385
|
+
async checkFontWeightHierarchy() {
|
|
386
|
+
const startTime = Date.now();
|
|
387
|
+
const issues = [];
|
|
388
|
+
const files = await this.getTsxFiles();
|
|
389
|
+
const fontWeightPatterns = new Map();
|
|
390
|
+
for (const file of files) {
|
|
391
|
+
const content = fs.readFileSync(file, "utf8");
|
|
392
|
+
const lines = content.split("\n");
|
|
393
|
+
for (let i = 0; i < lines.length; i++) {
|
|
394
|
+
const line = lines[i];
|
|
395
|
+
// Track font weight usage
|
|
396
|
+
if (/font-(?:normal|medium|semibold|bold|extrabold)/.test(line)) {
|
|
397
|
+
const match = line.match(/font-(normal|medium|semibold|bold|extrabold)/);
|
|
398
|
+
if (match) {
|
|
399
|
+
fontWeightPatterns.set(match[1], (fontWeightPatterns.get(match[1]) || 0) + 1);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
// Check for excessive bold usage
|
|
403
|
+
if (/font-bold/.test(line)) {
|
|
404
|
+
const contextBlock = lines.slice(Math.max(0, i - 5), Math.min(i + 5, lines.length)).join("\n");
|
|
405
|
+
const boldCount = (contextBlock.match(/font-bold/g) || []).length;
|
|
406
|
+
if (boldCount > 3) {
|
|
407
|
+
issues.push({
|
|
408
|
+
file,
|
|
409
|
+
line: i + 1,
|
|
410
|
+
type: "excessive-bold",
|
|
411
|
+
severity: "info",
|
|
412
|
+
message: "Multiple bold elements in close proximity",
|
|
413
|
+
suggestion: "Use bold sparingly for emphasis - everything bold = nothing bold",
|
|
414
|
+
snippet: line.trim().substring(0, 80),
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
name: "Font Weight Hierarchy",
|
|
422
|
+
passed: true,
|
|
423
|
+
blocking: false,
|
|
424
|
+
issues,
|
|
425
|
+
duration: Date.now() - startTime,
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* 8. Size Hierarchy
|
|
430
|
+
*/
|
|
431
|
+
async checkSizeHierarchy() {
|
|
432
|
+
const startTime = Date.now();
|
|
433
|
+
const issues = [];
|
|
434
|
+
const files = await this.getTsxFiles();
|
|
435
|
+
const textSizePatterns = new Map();
|
|
436
|
+
for (const file of files) {
|
|
437
|
+
const content = fs.readFileSync(file, "utf8");
|
|
438
|
+
const lines = content.split("\n");
|
|
439
|
+
for (let i = 0; i < lines.length; i++) {
|
|
440
|
+
const line = lines[i];
|
|
441
|
+
// Track text size usage
|
|
442
|
+
if (/text-(?:xs|sm|base|lg|xl|2xl|3xl|4xl)/.test(line)) {
|
|
443
|
+
const match = line.match(/text-(xs|sm|base|lg|xl|2xl|3xl|4xl)/);
|
|
444
|
+
if (match) {
|
|
445
|
+
textSizePatterns.set(match[1], (textSizePatterns.get(match[1]) || 0) + 1);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
// Check for arbitrary text sizes
|
|
449
|
+
if (/text-\[\d+px\]|text-\[\d+rem\]/.test(line)) {
|
|
450
|
+
const match = line.match(/text-\[([^\]]+)\]/);
|
|
451
|
+
if (match) {
|
|
452
|
+
issues.push({
|
|
453
|
+
file,
|
|
454
|
+
line: i + 1,
|
|
455
|
+
type: "arbitrary-text-size",
|
|
456
|
+
severity: "info",
|
|
457
|
+
message: `Arbitrary text size: text-[${match[1]}]`,
|
|
458
|
+
suggestion: "Use design system text sizes (text-sm, text-base, text-lg)",
|
|
459
|
+
snippet: line.trim().substring(0, 80),
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
// Check for proper size distribution
|
|
466
|
+
if (textSizePatterns.size > 0) {
|
|
467
|
+
const total = [...textSizePatterns.values()].reduce((a, b) => a + b, 0);
|
|
468
|
+
const baseUsage = textSizePatterns.get("base") || 0;
|
|
469
|
+
if (baseUsage < total * 0.3) {
|
|
470
|
+
issues.push({
|
|
471
|
+
file: "codebase-wide",
|
|
472
|
+
line: 0,
|
|
473
|
+
type: "low-base-text-usage",
|
|
474
|
+
severity: "info",
|
|
475
|
+
message: "Base text size used sparingly - may indicate size inconsistency",
|
|
476
|
+
suggestion: "text-base should be the most common size for body content",
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
name: "Size Hierarchy",
|
|
482
|
+
passed: true,
|
|
483
|
+
blocking: false,
|
|
484
|
+
issues,
|
|
485
|
+
duration: Date.now() - startTime,
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
async runAll(filter) {
|
|
489
|
+
const startTime = Date.now();
|
|
490
|
+
const checks = [];
|
|
491
|
+
const checkMap = {
|
|
492
|
+
heading: () => this.checkHeadingLevelProgression(),
|
|
493
|
+
action: () => this.checkPrimaryActionWeight(),
|
|
494
|
+
grouping: () => this.checkVisualGroupingConsistency(),
|
|
495
|
+
whitespace: () => this.checkWhiteSpaceRhythm(),
|
|
496
|
+
density: () => this.checkContentDensityBalance(),
|
|
497
|
+
zindex: () => this.checkZIndexHierarchy(),
|
|
498
|
+
fontweight: () => this.checkFontWeightHierarchy(),
|
|
499
|
+
size: () => this.checkSizeHierarchy(),
|
|
500
|
+
};
|
|
501
|
+
if (filter && checkMap[filter]) {
|
|
502
|
+
checks.push(await checkMap[filter]());
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
for (const check of Object.values(checkMap)) {
|
|
506
|
+
checks.push(await check());
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
const errors = checks.reduce((sum, c) => sum + c.issues.filter((i) => i.severity === "error").length, 0);
|
|
510
|
+
const warnings = checks.reduce((sum, c) => sum + c.issues.filter((i) => i.severity === "warning").length, 0);
|
|
511
|
+
return {
|
|
512
|
+
module: "UI Visual Hierarchy",
|
|
513
|
+
passed: errors === 0,
|
|
514
|
+
totalDuration: Date.now() - startTime,
|
|
515
|
+
checks,
|
|
516
|
+
summary: {
|
|
517
|
+
total: checks.length,
|
|
518
|
+
passed: checks.filter((c) => c.passed).length,
|
|
519
|
+
failed: checks.filter((c) => !c.passed).length,
|
|
520
|
+
errors,
|
|
521
|
+
warnings,
|
|
522
|
+
},
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
exports.UIVisualHierarchyModule = UIVisualHierarchyModule;
|
|
527
|
+
async function main() {
|
|
528
|
+
const args = process.argv.slice(2);
|
|
529
|
+
const filter = args.find((a) => !a.startsWith("-"));
|
|
530
|
+
const verbose = args.includes("--verbose") || args.includes("-v");
|
|
531
|
+
const module = new UIVisualHierarchyModule({ verbose });
|
|
532
|
+
const result = await module.runAll(filter);
|
|
533
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
534
|
+
console.log(`${console_chars_1.emoji.palette} UI VISUAL HIERARCHY CHECK`);
|
|
535
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
536
|
+
console.log();
|
|
537
|
+
for (const check of result.checks) {
|
|
538
|
+
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;
|
|
539
|
+
console.log(`${icon} ${check.name} (${check.duration}ms)`);
|
|
540
|
+
if (check.issues.length > 0 && (verbose || check.issues.some((i) => i.severity !== "info"))) {
|
|
541
|
+
for (const issue of check.issues.slice(0, verbose ? 100 : 5)) {
|
|
542
|
+
const sevIcon = issue.severity === "error" ? console_chars_1.emoji.error : issue.severity === "warning" ? console_chars_1.emoji.warning : console_chars_1.emoji.info;
|
|
543
|
+
const relPath = path.relative(process.cwd(), issue.file).replace(/\\/g, "/");
|
|
544
|
+
console.log(` ${sevIcon} ${relPath}:${issue.line}`);
|
|
545
|
+
console.log(` ${issue.message}`);
|
|
546
|
+
console.log(` ${console_chars_1.emoji.hint} ${issue.suggestion}`);
|
|
547
|
+
}
|
|
548
|
+
if (!verbose && check.issues.length > 5) {
|
|
549
|
+
console.log(` ... and ${check.issues.length - 5} more issues`);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
console.log();
|
|
553
|
+
}
|
|
554
|
+
console.log((0, console_chars_1.createDivider)(80, "light"));
|
|
555
|
+
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`);
|
|
556
|
+
console.log(`Duration: ${(result.totalDuration / 1000).toFixed(2)}s`);
|
|
557
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
558
|
+
process.exit(result.summary.errors > 0 ? 1 : 0);
|
|
559
|
+
}
|
|
560
|
+
if (require.main === module)
|
|
561
|
+
main();
|
|
562
|
+
//# sourceMappingURL=ui-visual-hierarchy.js.map
|