@empline/preflight 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +540 -0
- package/dist/bin/approve.d.ts +24 -0
- package/dist/bin/approve.d.ts.map +1 -0
- package/dist/bin/approve.js +249 -0
- package/dist/bin/approve.js.map +1 -0
- package/dist/bin/audit.d.ts +64 -0
- package/dist/bin/audit.d.ts.map +1 -0
- package/dist/bin/audit.js +464 -0
- package/dist/bin/audit.js.map +1 -0
- package/dist/bin/install-hooks.d.ts +20 -0
- package/dist/bin/install-hooks.d.ts.map +1 -0
- package/dist/bin/install-hooks.js +204 -0
- package/dist/bin/install-hooks.js.map +1 -0
- package/dist/bin/preflight.d.ts +21 -0
- package/dist/bin/preflight.d.ts.map +1 -0
- package/dist/bin/preflight.js +218 -0
- package/dist/bin/preflight.js.map +1 -0
- package/dist/bin/preinstall.d.ts +15 -0
- package/dist/bin/preinstall.d.ts.map +1 -0
- package/dist/bin/preinstall.js +247 -0
- package/dist/bin/preinstall.js.map +1 -0
- package/dist/bin/review-drift.d.ts +17 -0
- package/dist/bin/review-drift.d.ts.map +1 -0
- package/dist/bin/review-drift.js +292 -0
- package/dist/bin/review-drift.js.map +1 -0
- package/dist/bin/review.d.ts +22 -0
- package/dist/bin/review.d.ts.map +1 -0
- package/dist/bin/review.js +179 -0
- package/dist/bin/review.js.map +1 -0
- package/dist/bin/submit-drift.d.ts +36 -0
- package/dist/bin/submit-drift.d.ts.map +1 -0
- package/dist/bin/submit-drift.js +534 -0
- package/dist/bin/submit-drift.js.map +1 -0
- package/dist/bin/submit.d.ts +23 -0
- package/dist/bin/submit.d.ts.map +1 -0
- package/dist/bin/submit.js +263 -0
- package/dist/bin/submit.js.map +1 -0
- package/dist/bin/watch.d.ts +27 -0
- package/dist/bin/watch.d.ts.map +1 -0
- package/dist/bin/watch.js +327 -0
- package/dist/bin/watch.js.map +1 -0
- package/dist/checks/ai/card-size-detection-validation.d.ts +23 -0
- package/dist/checks/ai/card-size-detection-validation.d.ts.map +1 -0
- package/dist/checks/ai/card-size-detection-validation.js +455 -0
- package/dist/checks/ai/card-size-detection-validation.js.map +1 -0
- package/dist/checks/ai/code-quality-ai.d.ts +17 -0
- package/dist/checks/ai/code-quality-ai.d.ts.map +1 -0
- package/dist/checks/ai/code-quality-ai.js +399 -0
- package/dist/checks/ai/code-quality-ai.js.map +1 -0
- package/dist/checks/ai/recognition-pipeline-validation.d.ts +30 -0
- package/dist/checks/ai/recognition-pipeline-validation.d.ts.map +1 -0
- package/dist/checks/ai/recognition-pipeline-validation.js +882 -0
- package/dist/checks/ai/recognition-pipeline-validation.js.map +1 -0
- package/dist/checks/ai/series-subset-hierarchy.d.ts +22 -0
- package/dist/checks/ai/series-subset-hierarchy.d.ts.map +1 -0
- package/dist/checks/ai/series-subset-hierarchy.js +374 -0
- package/dist/checks/ai/series-subset-hierarchy.js.map +1 -0
- package/dist/checks/api/api-completeness-check.d.ts +27 -0
- package/dist/checks/api/api-completeness-check.d.ts.map +1 -0
- package/dist/checks/api/api-completeness-check.js +326 -0
- package/dist/checks/api/api-completeness-check.js.map +1 -0
- package/dist/checks/api/api-contract-validation.d.ts +24 -0
- package/dist/checks/api/api-contract-validation.d.ts.map +1 -0
- package/dist/checks/api/api-contract-validation.js +219 -0
- package/dist/checks/api/api-contract-validation.js.map +1 -0
- package/dist/checks/api/api-error-abstraction.d.ts +29 -0
- package/dist/checks/api/api-error-abstraction.d.ts.map +1 -0
- package/dist/checks/api/api-error-abstraction.js +245 -0
- package/dist/checks/api/api-error-abstraction.js.map +1 -0
- package/dist/checks/api/pagination-validation.d.ts +21 -0
- package/dist/checks/api/pagination-validation.d.ts.map +1 -0
- package/dist/checks/api/pagination-validation.js +282 -0
- package/dist/checks/api/pagination-validation.js.map +1 -0
- package/dist/checks/api/response-consistency.d.ts +21 -0
- package/dist/checks/api/response-consistency.d.ts.map +1 -0
- package/dist/checks/api/response-consistency.js +246 -0
- package/dist/checks/api/response-consistency.js.map +1 -0
- package/dist/checks/api/response-schema-validation.d.ts +25 -0
- package/dist/checks/api/response-schema-validation.d.ts.map +1 -0
- package/dist/checks/api/response-schema-validation.js +294 -0
- package/dist/checks/api/response-schema-validation.js.map +1 -0
- package/dist/checks/api/response-time-budget.d.ts +18 -0
- package/dist/checks/api/response-time-budget.d.ts.map +1 -0
- package/dist/checks/api/response-time-budget.js +312 -0
- package/dist/checks/api/response-time-budget.js.map +1 -0
- package/dist/checks/api/variant-switching-integrity.d.ts +23 -0
- package/dist/checks/api/variant-switching-integrity.d.ts.map +1 -0
- package/dist/checks/api/variant-switching-integrity.js +312 -0
- package/dist/checks/api/variant-switching-integrity.js.map +1 -0
- package/dist/checks/architecture/admin-page-consistency.d.ts +28 -0
- package/dist/checks/architecture/admin-page-consistency.d.ts.map +1 -0
- package/dist/checks/architecture/admin-page-consistency.js +300 -0
- package/dist/checks/architecture/admin-page-consistency.js.map +1 -0
- package/dist/checks/architecture/backend-ui-coverage.d.ts +26 -0
- package/dist/checks/architecture/backend-ui-coverage.d.ts.map +1 -0
- package/dist/checks/architecture/backend-ui-coverage.js +565 -0
- package/dist/checks/architecture/backend-ui-coverage.js.map +1 -0
- package/dist/checks/architecture/component-architecture.d.ts +27 -0
- package/dist/checks/architecture/component-architecture.d.ts.map +1 -0
- package/dist/checks/architecture/component-architecture.js +517 -0
- package/dist/checks/architecture/component-architecture.js.map +1 -0
- package/dist/checks/architecture/component-consolidation-opportunities.d.ts +29 -0
- package/dist/checks/architecture/component-consolidation-opportunities.d.ts.map +1 -0
- package/dist/checks/architecture/component-consolidation-opportunities.js +344 -0
- package/dist/checks/architecture/component-consolidation-opportunities.js.map +1 -0
- package/dist/checks/architecture/orphaned-pages-detection.d.ts +35 -0
- package/dist/checks/architecture/orphaned-pages-detection.d.ts.map +1 -0
- package/dist/checks/architecture/orphaned-pages-detection.js +470 -0
- package/dist/checks/architecture/orphaned-pages-detection.js.map +1 -0
- package/dist/checks/architecture/primitive-component-enforcement.d.ts +26 -0
- package/dist/checks/architecture/primitive-component-enforcement.d.ts.map +1 -0
- package/dist/checks/architecture/primitive-component-enforcement.js +311 -0
- package/dist/checks/architecture/primitive-component-enforcement.js.map +1 -0
- package/dist/checks/architecture/shared-component-enforcement.d.ts +34 -0
- package/dist/checks/architecture/shared-component-enforcement.d.ts.map +1 -0
- package/dist/checks/architecture/shared-component-enforcement.js +725 -0
- package/dist/checks/architecture/shared-component-enforcement.js.map +1 -0
- package/dist/checks/async-cleanup-validation.d.ts +22 -0
- package/dist/checks/async-cleanup-validation.d.ts.map +1 -0
- package/dist/checks/async-cleanup-validation.js +193 -0
- package/dist/checks/async-cleanup-validation.js.map +1 -0
- package/dist/checks/auth/auth-page-consistency.d.ts +25 -0
- package/dist/checks/auth/auth-page-consistency.d.ts.map +1 -0
- package/dist/checks/auth/auth-page-consistency.js +582 -0
- package/dist/checks/auth/auth-page-consistency.js.map +1 -0
- package/dist/checks/auth/authenticated-redirect.d.ts +56 -0
- package/dist/checks/auth/authenticated-redirect.d.ts.map +1 -0
- package/dist/checks/auth/authenticated-redirect.js +392 -0
- package/dist/checks/auth/authenticated-redirect.js.map +1 -0
- package/dist/checks/auth/role-validation.d.ts +32 -0
- package/dist/checks/auth/role-validation.d.ts.map +1 -0
- package/dist/checks/auth/role-validation.js +256 -0
- package/dist/checks/auth/role-validation.js.map +1 -0
- package/dist/checks/auth/session-integrity-validation.d.ts +59 -0
- package/dist/checks/auth/session-integrity-validation.d.ts.map +1 -0
- package/dist/checks/auth/session-integrity-validation.js +405 -0
- package/dist/checks/auth/session-integrity-validation.js.map +1 -0
- package/dist/checks/auth/session-security.d.ts +69 -0
- package/dist/checks/auth/session-security.d.ts.map +1 -0
- package/dist/checks/auth/session-security.js +420 -0
- package/dist/checks/auth/session-security.js.map +1 -0
- package/dist/checks/auth/session-update-safety.d.ts +97 -0
- package/dist/checks/auth/session-update-safety.d.ts.map +1 -0
- package/dist/checks/auth/session-update-safety.js +700 -0
- package/dist/checks/auth/session-update-safety.js.map +1 -0
- package/dist/checks/auth/store-access-delegation.d.ts +35 -0
- package/dist/checks/auth/store-access-delegation.d.ts.map +1 -0
- package/dist/checks/auth/store-access-delegation.js +344 -0
- package/dist/checks/auth/store-access-delegation.js.map +1 -0
- package/dist/checks/business/business-invariants.d.ts +21 -0
- package/dist/checks/business/business-invariants.d.ts.map +1 -0
- package/dist/checks/business/business-invariants.js +177 -0
- package/dist/checks/business/business-invariants.js.map +1 -0
- package/dist/checks/business/currency-precision.d.ts +21 -0
- package/dist/checks/business/currency-precision.d.ts.map +1 -0
- package/dist/checks/business/currency-precision.js +342 -0
- package/dist/checks/business/currency-precision.js.map +1 -0
- package/dist/checks/business/idempotency-key-validation.d.ts +27 -0
- package/dist/checks/business/idempotency-key-validation.d.ts.map +1 -0
- package/dist/checks/business/idempotency-key-validation.js +275 -0
- package/dist/checks/business/idempotency-key-validation.js.map +1 -0
- package/dist/checks/business/image-metadata-injection.d.ts +20 -0
- package/dist/checks/business/image-metadata-injection.d.ts.map +1 -0
- package/dist/checks/business/image-metadata-injection.js +370 -0
- package/dist/checks/business/image-metadata-injection.js.map +1 -0
- package/dist/checks/business/image-processing-config-sync.d.ts +36 -0
- package/dist/checks/business/image-processing-config-sync.d.ts.map +1 -0
- package/dist/checks/business/image-processing-config-sync.js +442 -0
- package/dist/checks/business/image-processing-config-sync.js.map +1 -0
- package/dist/checks/business/image-upload-optimization.d.ts +21 -0
- package/dist/checks/business/image-upload-optimization.d.ts.map +1 -0
- package/dist/checks/business/image-upload-optimization.js +274 -0
- package/dist/checks/business/image-upload-optimization.js.map +1 -0
- package/dist/checks/business/inventory-atomicity-validation.d.ts +20 -0
- package/dist/checks/business/inventory-atomicity-validation.d.ts.map +1 -0
- package/dist/checks/business/inventory-atomicity-validation.js +263 -0
- package/dist/checks/business/inventory-atomicity-validation.js.map +1 -0
- package/dist/checks/business/listing-status-validation.d.ts +28 -0
- package/dist/checks/business/listing-status-validation.d.ts.map +1 -0
- package/dist/checks/business/listing-status-validation.js +274 -0
- package/dist/checks/business/listing-status-validation.js.map +1 -0
- package/dist/checks/business/order-state-machine-validation.d.ts +20 -0
- package/dist/checks/business/order-state-machine-validation.d.ts.map +1 -0
- package/dist/checks/business/order-state-machine-validation.js +294 -0
- package/dist/checks/business/order-state-machine-validation.js.map +1 -0
- package/dist/checks/business/price-calculation-validation.d.ts +20 -0
- package/dist/checks/business/price-calculation-validation.d.ts.map +1 -0
- package/dist/checks/business/price-calculation-validation.js +258 -0
- package/dist/checks/business/price-calculation-validation.js.map +1 -0
- package/dist/checks/business/price-display-validation.d.ts +22 -0
- package/dist/checks/business/price-display-validation.d.ts.map +1 -0
- package/dist/checks/business/price-display-validation.js +152 -0
- package/dist/checks/business/price-display-validation.js.map +1 -0
- package/dist/checks/business/resilient-recognition-validation.d.ts +28 -0
- package/dist/checks/business/resilient-recognition-validation.d.ts.map +1 -0
- package/dist/checks/business/resilient-recognition-validation.js +241 -0
- package/dist/checks/business/resilient-recognition-validation.js.map +1 -0
- package/dist/checks/business/store-approval-listing-filter.d.ts +21 -0
- package/dist/checks/business/store-approval-listing-filter.d.ts.map +1 -0
- package/dist/checks/business/store-approval-listing-filter.js +188 -0
- package/dist/checks/business/store-approval-listing-filter.js.map +1 -0
- package/dist/checks/business/timezone-handling.d.ts +28 -0
- package/dist/checks/business/timezone-handling.d.ts.map +1 -0
- package/dist/checks/business/timezone-handling.js +303 -0
- package/dist/checks/business/timezone-handling.js.map +1 -0
- package/dist/checks/card-processing/card-property-consistency.d.ts +22 -0
- package/dist/checks/card-processing/card-property-consistency.d.ts.map +1 -0
- package/dist/checks/card-processing/card-property-consistency.js +317 -0
- package/dist/checks/card-processing/card-property-consistency.js.map +1 -0
- package/dist/checks/card-processing/card-size-consistency.d.ts +21 -0
- package/dist/checks/card-processing/card-size-consistency.d.ts.map +1 -0
- package/dist/checks/card-processing/card-size-consistency.js +324 -0
- package/dist/checks/card-processing/card-size-consistency.js.map +1 -0
- package/dist/checks/card-processing/catalog-fk-safety-validation.d.ts +29 -0
- package/dist/checks/card-processing/catalog-fk-safety-validation.d.ts.map +1 -0
- package/dist/checks/card-processing/catalog-fk-safety-validation.js +280 -0
- package/dist/checks/card-processing/catalog-fk-safety-validation.js.map +1 -0
- package/dist/checks/card-processing/database-first-pattern.d.ts +26 -0
- package/dist/checks/card-processing/database-first-pattern.d.ts.map +1 -0
- package/dist/checks/card-processing/database-first-pattern.js +213 -0
- package/dist/checks/card-processing/database-first-pattern.js.map +1 -0
- package/dist/checks/card-processing/image-workflow-validation.d.ts +49 -0
- package/dist/checks/card-processing/image-workflow-validation.d.ts.map +1 -0
- package/dist/checks/card-processing/image-workflow-validation.js +511 -0
- package/dist/checks/card-processing/image-workflow-validation.js.map +1 -0
- package/dist/checks/card-processing/prisma-enum-sync.d.ts +21 -0
- package/dist/checks/card-processing/prisma-enum-sync.d.ts.map +1 -0
- package/dist/checks/card-processing/prisma-enum-sync.js +304 -0
- package/dist/checks/card-processing/prisma-enum-sync.js.map +1 -0
- package/dist/checks/card-processing/recognition-progress-validation.d.ts +29 -0
- package/dist/checks/card-processing/recognition-progress-validation.d.ts.map +1 -0
- package/dist/checks/card-processing/recognition-progress-validation.js +302 -0
- package/dist/checks/card-processing/recognition-progress-validation.js.map +1 -0
- package/dist/checks/card-processing/reftable-config-sync.d.ts +26 -0
- package/dist/checks/card-processing/reftable-config-sync.d.ts.map +1 -0
- package/dist/checks/card-processing/reftable-config-sync.js +171 -0
- package/dist/checks/card-processing/reftable-config-sync.js.map +1 -0
- package/dist/checks/card-processing/test-image-processing-pipeline.d.ts +24 -0
- package/dist/checks/card-processing/test-image-processing-pipeline.d.ts.map +1 -0
- package/dist/checks/card-processing/test-image-processing-pipeline.js +188 -0
- package/dist/checks/card-processing/test-image-processing-pipeline.js.map +1 -0
- package/dist/checks/code-hygiene/any-type-detection.d.ts +30 -0
- package/dist/checks/code-hygiene/any-type-detection.d.ts.map +1 -0
- package/dist/checks/code-hygiene/any-type-detection.js +214 -0
- package/dist/checks/code-hygiene/any-type-detection.js.map +1 -0
- package/dist/checks/code-hygiene/api-error-handling.d.ts +29 -0
- package/dist/checks/code-hygiene/api-error-handling.d.ts.map +1 -0
- package/dist/checks/code-hygiene/api-error-handling.js +285 -0
- package/dist/checks/code-hygiene/api-error-handling.js.map +1 -0
- package/dist/checks/code-hygiene/broken-template-literals.d.ts +25 -0
- package/dist/checks/code-hygiene/broken-template-literals.d.ts.map +1 -0
- package/dist/checks/code-hygiene/broken-template-literals.js +220 -0
- package/dist/checks/code-hygiene/broken-template-literals.js.map +1 -0
- package/dist/checks/code-hygiene/comment-hygiene.d.ts +27 -0
- package/dist/checks/code-hygiene/comment-hygiene.d.ts.map +1 -0
- package/dist/checks/code-hygiene/comment-hygiene.js +428 -0
- package/dist/checks/code-hygiene/comment-hygiene.js.map +1 -0
- package/dist/checks/code-hygiene/console-chars-sync.d.ts +27 -0
- package/dist/checks/code-hygiene/console-chars-sync.d.ts.map +1 -0
- package/dist/checks/code-hygiene/console-chars-sync.js +420 -0
- package/dist/checks/code-hygiene/console-chars-sync.js.map +1 -0
- package/dist/checks/code-hygiene/console-log-detection.d.ts +27 -0
- package/dist/checks/code-hygiene/console-log-detection.d.ts.map +1 -0
- package/dist/checks/code-hygiene/console-log-detection.js +202 -0
- package/dist/checks/code-hygiene/console-log-detection.js.map +1 -0
- package/dist/checks/code-hygiene/dead-code-detection.d.ts +28 -0
- package/dist/checks/code-hygiene/dead-code-detection.d.ts.map +1 -0
- package/dist/checks/code-hygiene/dead-code-detection.js +217 -0
- package/dist/checks/code-hygiene/dead-code-detection.js.map +1 -0
- package/dist/checks/code-hygiene/decorative-separators.d.ts +33 -0
- package/dist/checks/code-hygiene/decorative-separators.d.ts.map +1 -0
- package/dist/checks/code-hygiene/decorative-separators.js +259 -0
- package/dist/checks/code-hygiene/decorative-separators.js.map +1 -0
- package/dist/checks/code-hygiene/empty-catch-detection.d.ts +25 -0
- package/dist/checks/code-hygiene/empty-catch-detection.d.ts.map +1 -0
- package/dist/checks/code-hygiene/empty-catch-detection.js +190 -0
- package/dist/checks/code-hygiene/empty-catch-detection.js.map +1 -0
- package/dist/checks/code-hygiene/fix-hardcoded-emoji.d.ts +19 -0
- package/dist/checks/code-hygiene/fix-hardcoded-emoji.d.ts.map +1 -0
- package/dist/checks/code-hygiene/fix-hardcoded-emoji.js +335 -0
- package/dist/checks/code-hygiene/fix-hardcoded-emoji.js.map +1 -0
- package/dist/checks/code-hygiene/log-level-misuse.d.ts +26 -0
- package/dist/checks/code-hygiene/log-level-misuse.d.ts.map +1 -0
- package/dist/checks/code-hygiene/log-level-misuse.js +390 -0
- package/dist/checks/code-hygiene/log-level-misuse.js.map +1 -0
- package/dist/checks/code-hygiene/missing-logger-import.d.ts +17 -0
- package/dist/checks/code-hygiene/missing-logger-import.d.ts.map +1 -0
- package/dist/checks/code-hygiene/missing-logger-import.js +161 -0
- package/dist/checks/code-hygiene/missing-logger-import.js.map +1 -0
- package/dist/checks/code-hygiene/root-file-hygiene.d.ts +32 -0
- package/dist/checks/code-hygiene/root-file-hygiene.d.ts.map +1 -0
- package/dist/checks/code-hygiene/root-file-hygiene.js +288 -0
- package/dist/checks/code-hygiene/root-file-hygiene.js.map +1 -0
- package/dist/checks/code-hygiene/todo-tracking.d.ts +25 -0
- package/dist/checks/code-hygiene/todo-tracking.d.ts.map +1 -0
- package/dist/checks/code-hygiene/todo-tracking.js +213 -0
- package/dist/checks/code-hygiene/todo-tracking.js.map +1 -0
- package/dist/checks/code-hygiene/unicode-console-compatibility.d.ts +22 -0
- package/dist/checks/code-hygiene/unicode-console-compatibility.d.ts.map +1 -0
- package/dist/checks/code-hygiene/unicode-console-compatibility.js +240 -0
- package/dist/checks/code-hygiene/unicode-console-compatibility.js.map +1 -0
- package/dist/checks/code-quality/api-route-patterns.d.ts +30 -0
- package/dist/checks/code-quality/api-route-patterns.d.ts.map +1 -0
- package/dist/checks/code-quality/api-route-patterns.js +356 -0
- package/dist/checks/code-quality/api-route-patterns.js.map +1 -0
- package/dist/checks/code-quality/barrel-export-orphans.d.ts +21 -0
- package/dist/checks/code-quality/barrel-export-orphans.d.ts.map +1 -0
- package/dist/checks/code-quality/barrel-export-orphans.js +327 -0
- package/dist/checks/code-quality/barrel-export-orphans.js.map +1 -0
- package/dist/checks/code-quality/barrel-export-validation.d.ts +19 -0
- package/dist/checks/code-quality/barrel-export-validation.d.ts.map +1 -0
- package/dist/checks/code-quality/barrel-export-validation.js +315 -0
- package/dist/checks/code-quality/barrel-export-validation.js.map +1 -0
- package/dist/checks/code-quality/circular-dependency-detection.d.ts +20 -0
- package/dist/checks/code-quality/circular-dependency-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/circular-dependency-detection.js +322 -0
- package/dist/checks/code-quality/circular-dependency-detection.js.map +1 -0
- package/dist/checks/code-quality/deprecated-patterns.d.ts +23 -0
- package/dist/checks/code-quality/deprecated-patterns.d.ts.map +1 -0
- package/dist/checks/code-quality/deprecated-patterns.js +366 -0
- package/dist/checks/code-quality/deprecated-patterns.js.map +1 -0
- package/dist/checks/code-quality/duplicate-implementation-detection.d.ts +21 -0
- package/dist/checks/code-quality/duplicate-implementation-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/duplicate-implementation-detection.js +165 -0
- package/dist/checks/code-quality/duplicate-implementation-detection.js.map +1 -0
- package/dist/checks/code-quality/duplicate-logic-detection.d.ts +39 -0
- package/dist/checks/code-quality/duplicate-logic-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/duplicate-logic-detection.js +269 -0
- package/dist/checks/code-quality/duplicate-logic-detection.js.map +1 -0
- package/dist/checks/code-quality/feature-flag-hygiene.d.ts +26 -0
- package/dist/checks/code-quality/feature-flag-hygiene.d.ts.map +1 -0
- package/dist/checks/code-quality/feature-flag-hygiene.js +357 -0
- package/dist/checks/code-quality/feature-flag-hygiene.js.map +1 -0
- package/dist/checks/code-quality/grading-config-usage.d.ts +30 -0
- package/dist/checks/code-quality/grading-config-usage.d.ts.map +1 -0
- package/dist/checks/code-quality/grading-config-usage.js +213 -0
- package/dist/checks/code-quality/grading-config-usage.js.map +1 -0
- package/dist/checks/code-quality/legacy-code-detection.d.ts +24 -0
- package/dist/checks/code-quality/legacy-code-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/legacy-code-detection.js +287 -0
- package/dist/checks/code-quality/legacy-code-detection.js.map +1 -0
- package/dist/checks/code-quality/legacy-data-pattern-detection.d.ts +36 -0
- package/dist/checks/code-quality/legacy-data-pattern-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/legacy-data-pattern-detection.js +460 -0
- package/dist/checks/code-quality/legacy-data-pattern-detection.js.map +1 -0
- package/dist/checks/code-quality/magic-number-detection.d.ts +30 -0
- package/dist/checks/code-quality/magic-number-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/magic-number-detection.js +402 -0
- package/dist/checks/code-quality/magic-number-detection.js.map +1 -0
- package/dist/checks/code-quality/mock-function-detection.d.ts +33 -0
- package/dist/checks/code-quality/mock-function-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/mock-function-detection.js +247 -0
- package/dist/checks/code-quality/mock-function-detection.js.map +1 -0
- package/dist/checks/code-quality/no-console-production.d.ts +27 -0
- package/dist/checks/code-quality/no-console-production.d.ts.map +1 -0
- package/dist/checks/code-quality/no-console-production.js +269 -0
- package/dist/checks/code-quality/no-console-production.js.map +1 -0
- package/dist/checks/code-quality/orphaned-module-detection.d.ts +20 -0
- package/dist/checks/code-quality/orphaned-module-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/orphaned-module-detection.js +287 -0
- package/dist/checks/code-quality/orphaned-module-detection.js.map +1 -0
- package/dist/checks/code-quality/shared-utility-gaps.d.ts +28 -0
- package/dist/checks/code-quality/shared-utility-gaps.d.ts.map +1 -0
- package/dist/checks/code-quality/shared-utility-gaps.js +414 -0
- package/dist/checks/code-quality/shared-utility-gaps.js.map +1 -0
- package/dist/checks/code-quality/stub-script-detection.d.ts +33 -0
- package/dist/checks/code-quality/stub-script-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/stub-script-detection.js +214 -0
- package/dist/checks/code-quality/stub-script-detection.js.map +1 -0
- package/dist/checks/code-quality/typescript-type-safety.d.ts +31 -0
- package/dist/checks/code-quality/typescript-type-safety.d.ts.map +1 -0
- package/dist/checks/code-quality/typescript-type-safety.js +228 -0
- package/dist/checks/code-quality/typescript-type-safety.js.map +1 -0
- package/dist/checks/code-quality/unused-lib-detection.d.ts +20 -0
- package/dist/checks/code-quality/unused-lib-detection.d.ts.map +1 -0
- package/dist/checks/code-quality/unused-lib-detection.js +262 -0
- package/dist/checks/code-quality/unused-lib-detection.js.map +1 -0
- package/dist/checks/component-imports.d.ts +15 -0
- package/dist/checks/component-imports.d.ts.map +1 -0
- package/dist/checks/component-imports.js +232 -0
- package/dist/checks/component-imports.js.map +1 -0
- package/dist/checks/config/configuration-drift-detection.d.ts +24 -0
- package/dist/checks/config/configuration-drift-detection.d.ts.map +1 -0
- package/dist/checks/config/configuration-drift-detection.js +286 -0
- package/dist/checks/config/configuration-drift-detection.js.map +1 -0
- package/dist/checks/config/env-completeness.d.ts +20 -0
- package/dist/checks/config/env-completeness.d.ts.map +1 -0
- package/dist/checks/config/env-completeness.js +193 -0
- package/dist/checks/config/env-completeness.js.map +1 -0
- package/dist/checks/coverage-gap-analysis.d.ts +21 -0
- package/dist/checks/coverage-gap-analysis.d.ts.map +1 -0
- package/dist/checks/coverage-gap-analysis.js +779 -0
- package/dist/checks/coverage-gap-analysis.js.map +1 -0
- package/dist/checks/css/dead-css-detection.d.ts +15 -0
- package/dist/checks/css/dead-css-detection.d.ts.map +1 -0
- package/dist/checks/css/dead-css-detection.js +225 -0
- package/dist/checks/css/dead-css-detection.js.map +1 -0
- package/dist/checks/css/sticky-header-validation.d.ts +19 -0
- package/dist/checks/css/sticky-header-validation.d.ts.map +1 -0
- package/dist/checks/css/sticky-header-validation.js +256 -0
- package/dist/checks/css/sticky-header-validation.js.map +1 -0
- package/dist/checks/data-integrity/cart-data-integrity.d.ts +21 -0
- package/dist/checks/data-integrity/cart-data-integrity.d.ts.map +1 -0
- package/dist/checks/data-integrity/cart-data-integrity.js +242 -0
- package/dist/checks/data-integrity/cart-data-integrity.js.map +1 -0
- package/dist/checks/data-integrity/entity-casing-validation.d.ts +24 -0
- package/dist/checks/data-integrity/entity-casing-validation.d.ts.map +1 -0
- package/dist/checks/data-integrity/entity-casing-validation.js +278 -0
- package/dist/checks/data-integrity/entity-casing-validation.js.map +1 -0
- package/dist/checks/data-integrity/enum-special-chars-validation.d.ts +27 -0
- package/dist/checks/data-integrity/enum-special-chars-validation.d.ts.map +1 -0
- package/dist/checks/data-integrity/enum-special-chars-validation.js +100 -0
- package/dist/checks/data-integrity/enum-special-chars-validation.js.map +1 -0
- package/dist/checks/data-integrity/notification-template-alignment.d.ts +23 -0
- package/dist/checks/data-integrity/notification-template-alignment.d.ts.map +1 -0
- package/dist/checks/data-integrity/notification-template-alignment.js +379 -0
- package/dist/checks/data-integrity/notification-template-alignment.js.map +1 -0
- package/dist/checks/data-integrity/product-data-flow-validation.d.ts +23 -0
- package/dist/checks/data-integrity/product-data-flow-validation.d.ts.map +1 -0
- package/dist/checks/data-integrity/product-data-flow-validation.js +576 -0
- package/dist/checks/data-integrity/product-data-flow-validation.js.map +1 -0
- package/dist/checks/data-integrity/r2-metadata-management.d.ts +18 -0
- package/dist/checks/data-integrity/r2-metadata-management.d.ts.map +1 -0
- package/dist/checks/data-integrity/r2-metadata-management.js +302 -0
- package/dist/checks/data-integrity/r2-metadata-management.js.map +1 -0
- package/dist/checks/data-integrity/store-data-integrity.d.ts +20 -0
- package/dist/checks/data-integrity/store-data-integrity.d.ts.map +1 -0
- package/dist/checks/data-integrity/store-data-integrity.js +405 -0
- package/dist/checks/data-integrity/store-data-integrity.js.map +1 -0
- package/dist/checks/data-integrity/unwired-functionality.d.ts +23 -0
- package/dist/checks/data-integrity/unwired-functionality.d.ts.map +1 -0
- package/dist/checks/data-integrity/unwired-functionality.js +556 -0
- package/dist/checks/data-integrity/unwired-functionality.js.map +1 -0
- package/dist/checks/database/block-db-push.d.ts +30 -0
- package/dist/checks/database/block-db-push.d.ts.map +1 -0
- package/dist/checks/database/block-db-push.js +144 -0
- package/dist/checks/database/block-db-push.js.map +1 -0
- package/dist/checks/database/grade-integrity.d.ts +13 -0
- package/dist/checks/database/grade-integrity.d.ts.map +1 -0
- package/dist/checks/database/grade-integrity.js +134 -0
- package/dist/checks/database/grade-integrity.js.map +1 -0
- package/dist/checks/database/migration-integrity.d.ts +27 -0
- package/dist/checks/database/migration-integrity.d.ts.map +1 -0
- package/dist/checks/database/migration-integrity.js +242 -0
- package/dist/checks/database/migration-integrity.js.map +1 -0
- package/dist/checks/database/migration-reversibility.d.ts +26 -0
- package/dist/checks/database/migration-reversibility.d.ts.map +1 -0
- package/dist/checks/database/migration-reversibility.js +280 -0
- package/dist/checks/database/migration-reversibility.js.map +1 -0
- package/dist/checks/database/migration-safety.d.ts +27 -0
- package/dist/checks/database/migration-safety.d.ts.map +1 -0
- package/dist/checks/database/migration-safety.js +243 -0
- package/dist/checks/database/migration-safety.js.map +1 -0
- package/dist/checks/database/prisma-client-db-sync.d.ts +25 -0
- package/dist/checks/database/prisma-client-db-sync.d.ts.map +1 -0
- package/dist/checks/database/prisma-client-db-sync.js +229 -0
- package/dist/checks/database/prisma-client-db-sync.js.map +1 -0
- package/dist/checks/database/prisma-drift-prevention.d.ts +30 -0
- package/dist/checks/database/prisma-drift-prevention.d.ts.map +1 -0
- package/dist/checks/database/prisma-drift-prevention.js +617 -0
- package/dist/checks/database/prisma-drift-prevention.js.map +1 -0
- package/dist/checks/database/prisma-overfetch-detection.d.ts +27 -0
- package/dist/checks/database/prisma-overfetch-detection.d.ts.map +1 -0
- package/dist/checks/database/prisma-overfetch-detection.js +669 -0
- package/dist/checks/database/prisma-overfetch-detection.js.map +1 -0
- package/dist/checks/database/prisma-precommit-guard.d.ts +26 -0
- package/dist/checks/database/prisma-precommit-guard.d.ts.map +1 -0
- package/dist/checks/database/prisma-precommit-guard.js +194 -0
- package/dist/checks/database/prisma-precommit-guard.js.map +1 -0
- package/dist/checks/database/prisma-schema-syntax.d.ts +18 -0
- package/dist/checks/database/prisma-schema-syntax.d.ts.map +1 -0
- package/dist/checks/database/prisma-schema-syntax.js +64 -0
- package/dist/checks/database/prisma-schema-syntax.js.map +1 -0
- package/dist/checks/database/prod-db-guardrail.d.ts +21 -0
- package/dist/checks/database/prod-db-guardrail.d.ts.map +1 -0
- package/dist/checks/database/prod-db-guardrail.js +190 -0
- package/dist/checks/database/prod-db-guardrail.js.map +1 -0
- package/dist/checks/database/schema-best-practices.d.ts +25 -0
- package/dist/checks/database/schema-best-practices.d.ts.map +1 -0
- package/dist/checks/database/schema-best-practices.js +396 -0
- package/dist/checks/database/schema-best-practices.js.map +1 -0
- package/dist/checks/database/schema-migration-column-sync.d.ts +34 -0
- package/dist/checks/database/schema-migration-column-sync.d.ts.map +1 -0
- package/dist/checks/database/schema-migration-column-sync.js +574 -0
- package/dist/checks/database/schema-migration-column-sync.js.map +1 -0
- package/dist/checks/database/seed-coverage-validation.d.ts +30 -0
- package/dist/checks/database/seed-coverage-validation.d.ts.map +1 -0
- package/dist/checks/database/seed-coverage-validation.js +598 -0
- package/dist/checks/database/seed-coverage-validation.js.map +1 -0
- package/dist/checks/database/soft-delete-consistency.d.ts +24 -0
- package/dist/checks/database/soft-delete-consistency.d.ts.map +1 -0
- package/dist/checks/database/soft-delete-consistency.js +273 -0
- package/dist/checks/database/soft-delete-consistency.js.map +1 -0
- package/dist/checks/database/tcg-seed-validation.d.ts +30 -0
- package/dist/checks/database/tcg-seed-validation.d.ts.map +1 -0
- package/dist/checks/database/tcg-seed-validation.js +284 -0
- package/dist/checks/database/tcg-seed-validation.js.map +1 -0
- package/dist/checks/database/transaction-integrity.d.ts +25 -0
- package/dist/checks/database/transaction-integrity.d.ts.map +1 -0
- package/dist/checks/database/transaction-integrity.js +275 -0
- package/dist/checks/database/transaction-integrity.js.map +1 -0
- package/dist/checks/database/unused-schema-detection.d.ts +29 -0
- package/dist/checks/database/unused-schema-detection.d.ts.map +1 -0
- package/dist/checks/database/unused-schema-detection.js +627 -0
- package/dist/checks/database/unused-schema-detection.js.map +1 -0
- package/dist/checks/dependencies/deprecated-packages.d.ts +17 -0
- package/dist/checks/dependencies/deprecated-packages.d.ts.map +1 -0
- package/dist/checks/dependencies/deprecated-packages.js +220 -0
- package/dist/checks/dependencies/deprecated-packages.js.map +1 -0
- package/dist/checks/dependencies/weekly-stable-updates.d.ts +27 -0
- package/dist/checks/dependencies/weekly-stable-updates.d.ts.map +1 -0
- package/dist/checks/dependencies/weekly-stable-updates.js +490 -0
- package/dist/checks/dependencies/weekly-stable-updates.js.map +1 -0
- package/dist/checks/deployment/esm-import-extensions.d.ts +24 -0
- package/dist/checks/deployment/esm-import-extensions.d.ts.map +1 -0
- package/dist/checks/deployment/esm-import-extensions.js +186 -0
- package/dist/checks/deployment/esm-import-extensions.js.map +1 -0
- package/dist/checks/deployment/pre-production-checklist-quick.d.ts +16 -0
- package/dist/checks/deployment/pre-production-checklist-quick.d.ts.map +1 -0
- package/dist/checks/deployment/pre-production-checklist-quick.js +146 -0
- package/dist/checks/deployment/pre-production-checklist-quick.js.map +1 -0
- package/dist/checks/deployment/pre-production-checklist.d.ts +19 -0
- package/dist/checks/deployment/pre-production-checklist.d.ts.map +1 -0
- package/dist/checks/deployment/pre-production-checklist.js +225 -0
- package/dist/checks/deployment/pre-production-checklist.js.map +1 -0
- package/dist/checks/deployment/production-config.d.ts +36 -0
- package/dist/checks/deployment/production-config.d.ts.map +1 -0
- package/dist/checks/deployment/production-config.js +424 -0
- package/dist/checks/deployment/production-config.js.map +1 -0
- package/dist/checks/deployment/production-env-validation.d.ts +19 -0
- package/dist/checks/deployment/production-env-validation.d.ts.map +1 -0
- package/dist/checks/deployment/production-env-validation.js +168 -0
- package/dist/checks/deployment/production-env-validation.js.map +1 -0
- package/dist/checks/deployment/rollback-compatibility.d.ts +28 -0
- package/dist/checks/deployment/rollback-compatibility.d.ts.map +1 -0
- package/dist/checks/deployment/rollback-compatibility.js +330 -0
- package/dist/checks/deployment/rollback-compatibility.js.map +1 -0
- package/dist/checks/deprecated-api-usage.d.ts +86 -0
- package/dist/checks/deprecated-api-usage.d.ts.map +1 -0
- package/dist/checks/deprecated-api-usage.js +382 -0
- package/dist/checks/deprecated-api-usage.js.map +1 -0
- package/dist/checks/drift-prevention/api-contract-consistency.d.ts +18 -0
- package/dist/checks/drift-prevention/api-contract-consistency.d.ts.map +1 -0
- package/dist/checks/drift-prevention/api-contract-consistency.js +279 -0
- package/dist/checks/drift-prevention/api-contract-consistency.js.map +1 -0
- package/dist/checks/drift-prevention/breaking-change-detection.d.ts +29 -0
- package/dist/checks/drift-prevention/breaking-change-detection.d.ts.map +1 -0
- package/dist/checks/drift-prevention/breaking-change-detection.js +367 -0
- package/dist/checks/drift-prevention/breaking-change-detection.js.map +1 -0
- package/dist/checks/drift-prevention/component-prop-consistency.d.ts +18 -0
- package/dist/checks/drift-prevention/component-prop-consistency.d.ts.map +1 -0
- package/dist/checks/drift-prevention/component-prop-consistency.js +289 -0
- package/dist/checks/drift-prevention/component-prop-consistency.js.map +1 -0
- package/dist/checks/drift-prevention/database-query-patterns.d.ts +19 -0
- package/dist/checks/drift-prevention/database-query-patterns.d.ts.map +1 -0
- package/dist/checks/drift-prevention/database-query-patterns.js +340 -0
- package/dist/checks/drift-prevention/database-query-patterns.js.map +1 -0
- package/dist/checks/drift-prevention/design-system-consistency.d.ts +18 -0
- package/dist/checks/drift-prevention/design-system-consistency.d.ts.map +1 -0
- package/dist/checks/drift-prevention/design-system-consistency.js +419 -0
- package/dist/checks/drift-prevention/design-system-consistency.js.map +1 -0
- package/dist/checks/drift-prevention/empty-state-consistency.d.ts +17 -0
- package/dist/checks/drift-prevention/empty-state-consistency.d.ts.map +1 -0
- package/dist/checks/drift-prevention/empty-state-consistency.js +257 -0
- package/dist/checks/drift-prevention/empty-state-consistency.js.map +1 -0
- package/dist/checks/drift-prevention/performance-regression-detection.d.ts +18 -0
- package/dist/checks/drift-prevention/performance-regression-detection.d.ts.map +1 -0
- package/dist/checks/drift-prevention/performance-regression-detection.js +444 -0
- package/dist/checks/drift-prevention/performance-regression-detection.js.map +1 -0
- package/dist/checks/drift-prevention/size-convention-consistency.d.ts +40 -0
- package/dist/checks/drift-prevention/size-convention-consistency.d.ts.map +1 -0
- package/dist/checks/drift-prevention/size-convention-consistency.js +221 -0
- package/dist/checks/drift-prevention/size-convention-consistency.js.map +1 -0
- package/dist/checks/drift-prevention/state-management-patterns.d.ts +18 -0
- package/dist/checks/drift-prevention/state-management-patterns.d.ts.map +1 -0
- package/dist/checks/drift-prevention/state-management-patterns.js +240 -0
- package/dist/checks/drift-prevention/state-management-patterns.js.map +1 -0
- package/dist/checks/e2e/e2e-action-outcome-validator.d.ts +22 -0
- package/dist/checks/e2e/e2e-action-outcome-validator.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-action-outcome-validator.js +295 -0
- package/dist/checks/e2e/e2e-action-outcome-validator.js.map +1 -0
- package/dist/checks/e2e/e2e-interaction-coverage-scan.d.ts +22 -0
- package/dist/checks/e2e/e2e-interaction-coverage-scan.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-interaction-coverage-scan.js +1665 -0
- package/dist/checks/e2e/e2e-interaction-coverage-scan.js.map +1 -0
- package/dist/checks/e2e/e2e-interaction-regression.d.ts +20 -0
- package/dist/checks/e2e/e2e-interaction-regression.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-interaction-regression.js +1042 -0
- package/dist/checks/e2e/e2e-interaction-regression.js.map +1 -0
- package/dist/checks/e2e/e2e-outcome-validation.d.ts +34 -0
- package/dist/checks/e2e/e2e-outcome-validation.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-outcome-validation.js +613 -0
- package/dist/checks/e2e/e2e-outcome-validation.js.map +1 -0
- package/dist/checks/e2e/e2e-performance-baseline.d.ts +14 -0
- package/dist/checks/e2e/e2e-performance-baseline.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-performance-baseline.js +289 -0
- package/dist/checks/e2e/e2e-performance-baseline.js.map +1 -0
- package/dist/checks/e2e/e2e-performance-patterns.d.ts +19 -0
- package/dist/checks/e2e/e2e-performance-patterns.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-performance-patterns.js +464 -0
- package/dist/checks/e2e/e2e-performance-patterns.js.map +1 -0
- package/dist/checks/e2e/e2e-performance-regression.d.ts +18 -0
- package/dist/checks/e2e/e2e-performance-regression.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-performance-regression.js +230 -0
- package/dist/checks/e2e/e2e-performance-regression.js.map +1 -0
- package/dist/checks/e2e/e2e-resource-monitoring.d.ts +17 -0
- package/dist/checks/e2e/e2e-resource-monitoring.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-resource-monitoring.js +368 -0
- package/dist/checks/e2e/e2e-resource-monitoring.js.map +1 -0
- package/dist/checks/e2e/e2e-test-redundancy-scan.d.ts +28 -0
- package/dist/checks/e2e/e2e-test-redundancy-scan.d.ts.map +1 -0
- package/dist/checks/e2e/e2e-test-redundancy-scan.js +480 -0
- package/dist/checks/e2e/e2e-test-redundancy-scan.js.map +1 -0
- package/dist/checks/e2e/playwright-config-validator.d.ts +26 -0
- package/dist/checks/e2e/playwright-config-validator.d.ts.map +1 -0
- package/dist/checks/e2e/playwright-config-validator.js +561 -0
- package/dist/checks/e2e/playwright-config-validator.js.map +1 -0
- package/dist/checks/environment/env-duplicates.d.ts +17 -0
- package/dist/checks/environment/env-duplicates.d.ts.map +1 -0
- package/dist/checks/environment/env-duplicates.js +169 -0
- package/dist/checks/environment/env-duplicates.js.map +1 -0
- package/dist/checks/event-listener-cleanup.d.ts +18 -0
- package/dist/checks/event-listener-cleanup.d.ts.map +1 -0
- package/dist/checks/event-listener-cleanup.js +189 -0
- package/dist/checks/event-listener-cleanup.js.map +1 -0
- package/dist/checks/file-naming-conventions.d.ts +21 -0
- package/dist/checks/file-naming-conventions.d.ts.map +1 -0
- package/dist/checks/file-naming-conventions.js +1258 -0
- package/dist/checks/file-naming-conventions.js.map +1 -0
- package/dist/checks/framework/framework-compatibility.d.ts +36 -0
- package/dist/checks/framework/framework-compatibility.d.ts.map +1 -0
- package/dist/checks/framework/framework-compatibility.js +173 -0
- package/dist/checks/framework/framework-compatibility.js.map +1 -0
- package/dist/checks/framework/turbopack-enforcement.d.ts +23 -0
- package/dist/checks/framework/turbopack-enforcement.d.ts.map +1 -0
- package/dist/checks/framework/turbopack-enforcement.js +174 -0
- package/dist/checks/framework/turbopack-enforcement.js.map +1 -0
- package/dist/checks/governance/check-ui-uniformity.d.ts +19 -0
- package/dist/checks/governance/check-ui-uniformity.d.ts.map +1 -0
- package/dist/checks/governance/check-ui-uniformity.js +126 -0
- package/dist/checks/governance/check-ui-uniformity.js.map +1 -0
- package/dist/checks/governance/codeowners-coverage.d.ts +27 -0
- package/dist/checks/governance/codeowners-coverage.d.ts.map +1 -0
- package/dist/checks/governance/codeowners-coverage.js +293 -0
- package/dist/checks/governance/codeowners-coverage.js.map +1 -0
- package/dist/checks/governance/naming-conventions.d.ts +7 -0
- package/dist/checks/governance/naming-conventions.d.ts.map +1 -0
- package/dist/checks/governance/naming-conventions.js +115 -0
- package/dist/checks/governance/naming-conventions.js.map +1 -0
- package/dist/checks/governance/seller-store-naming-consistency.d.ts +34 -0
- package/dist/checks/governance/seller-store-naming-consistency.d.ts.map +1 -0
- package/dist/checks/governance/seller-store-naming-consistency.js +248 -0
- package/dist/checks/governance/seller-store-naming-consistency.js.map +1 -0
- package/dist/checks/governance/store-seller-route-names.d.ts +19 -0
- package/dist/checks/governance/store-seller-route-names.d.ts.map +1 -0
- package/dist/checks/governance/store-seller-route-names.js +177 -0
- package/dist/checks/governance/store-seller-route-names.js.map +1 -0
- package/dist/checks/grading-config-usage.d.ts +23 -0
- package/dist/checks/grading-config-usage.d.ts.map +1 -0
- package/dist/checks/grading-config-usage.js +197 -0
- package/dist/checks/grading-config-usage.js.map +1 -0
- package/dist/checks/help-center-features-validation.d.ts +21 -0
- package/dist/checks/help-center-features-validation.d.ts.map +1 -0
- package/dist/checks/help-center-features-validation.js +529 -0
- package/dist/checks/help-center-features-validation.js.map +1 -0
- package/dist/checks/help-center-validation.d.ts +21 -0
- package/dist/checks/help-center-validation.d.ts.map +1 -0
- package/dist/checks/help-center-validation.js +325 -0
- package/dist/checks/help-center-validation.js.map +1 -0
- package/dist/checks/image/card-edge-protection.d.ts +22 -0
- package/dist/checks/image/card-edge-protection.d.ts.map +1 -0
- package/dist/checks/image/card-edge-protection.js +236 -0
- package/dist/checks/image/card-edge-protection.js.map +1 -0
- package/dist/checks/image/card-orientation-validation.d.ts +35 -0
- package/dist/checks/image/card-orientation-validation.d.ts.map +1 -0
- package/dist/checks/image/card-orientation-validation.js +522 -0
- package/dist/checks/image/card-orientation-validation.js.map +1 -0
- package/dist/checks/image/image-processing-config-sync.d.ts +33 -0
- package/dist/checks/image/image-processing-config-sync.d.ts.map +1 -0
- package/dist/checks/image/image-processing-config-sync.js +284 -0
- package/dist/checks/image/image-processing-config-sync.js.map +1 -0
- package/dist/checks/integrations/integration-feature-implementation.d.ts +28 -0
- package/dist/checks/integrations/integration-feature-implementation.d.ts.map +1 -0
- package/dist/checks/integrations/integration-feature-implementation.js +516 -0
- package/dist/checks/integrations/integration-feature-implementation.js.map +1 -0
- package/dist/checks/integrations/integration-field-mapping.d.ts +25 -0
- package/dist/checks/integrations/integration-field-mapping.d.ts.map +1 -0
- package/dist/checks/integrations/integration-field-mapping.js +383 -0
- package/dist/checks/integrations/integration-field-mapping.js.map +1 -0
- package/dist/checks/integrations/integration-status-display.d.ts +24 -0
- package/dist/checks/integrations/integration-status-display.d.ts.map +1 -0
- package/dist/checks/integrations/integration-status-display.js +945 -0
- package/dist/checks/integrations/integration-status-display.js.map +1 -0
- package/dist/checks/integrations/integrations-consolidated.d.ts +83 -0
- package/dist/checks/integrations/integrations-consolidated.d.ts.map +1 -0
- package/dist/checks/integrations/integrations-consolidated.js +912 -0
- package/dist/checks/integrations/integrations-consolidated.js.map +1 -0
- package/dist/checks/integrations/platform-feed-integrity.d.ts +76 -0
- package/dist/checks/integrations/platform-feed-integrity.d.ts.map +1 -0
- package/dist/checks/integrations/platform-feed-integrity.js +490 -0
- package/dist/checks/integrations/platform-feed-integrity.js.map +1 -0
- package/dist/checks/integrations/woocommerce-template-keys.d.ts +58 -0
- package/dist/checks/integrations/woocommerce-template-keys.d.ts.map +1 -0
- package/dist/checks/integrations/woocommerce-template-keys.js +270 -0
- package/dist/checks/integrations/woocommerce-template-keys.js.map +1 -0
- package/dist/checks/integrations/woocommerce-template-validation.d.ts +27 -0
- package/dist/checks/integrations/woocommerce-template-validation.d.ts.map +1 -0
- package/dist/checks/integrations/woocommerce-template-validation.js +428 -0
- package/dist/checks/integrations/woocommerce-template-validation.js.map +1 -0
- package/dist/checks/master-preflight.d.ts +57 -0
- package/dist/checks/master-preflight.d.ts.map +1 -0
- package/dist/checks/master-preflight.js +257 -0
- package/dist/checks/master-preflight.js.map +1 -0
- package/dist/checks/nextjs/dynamic-route-exports.d.ts +29 -0
- package/dist/checks/nextjs/dynamic-route-exports.d.ts.map +1 -0
- package/dist/checks/nextjs/dynamic-route-exports.js +204 -0
- package/dist/checks/nextjs/dynamic-route-exports.js.map +1 -0
- package/dist/checks/nextjs/essential-files-validation.d.ts +24 -0
- package/dist/checks/nextjs/essential-files-validation.d.ts.map +1 -0
- package/dist/checks/nextjs/essential-files-validation.js +361 -0
- package/dist/checks/nextjs/essential-files-validation.js.map +1 -0
- package/dist/checks/nextjs/ignore-build-errors.d.ts +16 -0
- package/dist/checks/nextjs/ignore-build-errors.d.ts.map +1 -0
- package/dist/checks/nextjs/ignore-build-errors.js +126 -0
- package/dist/checks/nextjs/ignore-build-errors.js.map +1 -0
- package/dist/checks/nextjs/metadata-api-placement.d.ts +30 -0
- package/dist/checks/nextjs/metadata-api-placement.d.ts.map +1 -0
- package/dist/checks/nextjs/metadata-api-placement.js +277 -0
- package/dist/checks/nextjs/metadata-api-placement.js.map +1 -0
- package/dist/checks/nextjs/nextjs-image-validation.d.ts +52 -0
- package/dist/checks/nextjs/nextjs-image-validation.d.ts.map +1 -0
- package/dist/checks/nextjs/nextjs-image-validation.js +255 -0
- package/dist/checks/nextjs/nextjs-image-validation.js.map +1 -0
- package/dist/checks/nextjs/nextjs16-compatibility.d.ts +40 -0
- package/dist/checks/nextjs/nextjs16-compatibility.d.ts.map +1 -0
- package/dist/checks/nextjs/nextjs16-compatibility.js +1210 -0
- package/dist/checks/nextjs/nextjs16-compatibility.js.map +1 -0
- package/dist/checks/nextjs/static-generation-check.d.ts +26 -0
- package/dist/checks/nextjs/static-generation-check.d.ts.map +1 -0
- package/dist/checks/nextjs/static-generation-check.js +181 -0
- package/dist/checks/nextjs/static-generation-check.js.map +1 -0
- package/dist/checks/observability/centralized-logging-validation.d.ts +22 -0
- package/dist/checks/observability/centralized-logging-validation.d.ts.map +1 -0
- package/dist/checks/observability/centralized-logging-validation.js +285 -0
- package/dist/checks/observability/centralized-logging-validation.js.map +1 -0
- package/dist/checks/order-number-consistency.d.ts +27 -0
- package/dist/checks/order-number-consistency.d.ts.map +1 -0
- package/dist/checks/order-number-consistency.js +294 -0
- package/dist/checks/order-number-consistency.js.map +1 -0
- package/dist/checks/organization/agent-steering-validation.d.ts +16 -0
- package/dist/checks/organization/agent-steering-validation.d.ts.map +1 -0
- package/dist/checks/organization/agent-steering-validation.js +186 -0
- package/dist/checks/organization/agent-steering-validation.js.map +1 -0
- package/dist/checks/organization/api-route-consolidation.d.ts +24 -0
- package/dist/checks/organization/api-route-consolidation.d.ts.map +1 -0
- package/dist/checks/organization/api-route-consolidation.js +370 -0
- package/dist/checks/organization/api-route-consolidation.js.map +1 -0
- package/dist/checks/organization/api-route-naming-validation.d.ts +24 -0
- package/dist/checks/organization/api-route-naming-validation.d.ts.map +1 -0
- package/dist/checks/organization/api-route-naming-validation.js +497 -0
- package/dist/checks/organization/api-route-naming-validation.js.map +1 -0
- package/dist/checks/organization/file-organization-validation.d.ts +19 -0
- package/dist/checks/organization/file-organization-validation.d.ts.map +1 -0
- package/dist/checks/organization/file-organization-validation.js +568 -0
- package/dist/checks/organization/file-organization-validation.js.map +1 -0
- package/dist/checks/organization/npm-script-bloat-prevention.d.ts +41 -0
- package/dist/checks/organization/npm-script-bloat-prevention.d.ts.map +1 -0
- package/dist/checks/organization/npm-script-bloat-prevention.js +417 -0
- package/dist/checks/organization/npm-script-bloat-prevention.js.map +1 -0
- package/dist/checks/organization/preflight-env-check.d.ts +13 -0
- package/dist/checks/organization/preflight-env-check.d.ts.map +1 -0
- package/dist/checks/organization/preflight-env-check.js +163 -0
- package/dist/checks/organization/preflight-env-check.js.map +1 -0
- package/dist/checks/organization/preflight-progress-consistency.d.ts +30 -0
- package/dist/checks/organization/preflight-progress-consistency.d.ts.map +1 -0
- package/dist/checks/organization/preflight-progress-consistency.js +230 -0
- package/dist/checks/organization/preflight-progress-consistency.js.map +1 -0
- package/dist/checks/organization/preflight-system-validation.d.ts +19 -0
- package/dist/checks/organization/preflight-system-validation.d.ts.map +1 -0
- package/dist/checks/organization/preflight-system-validation.js +487 -0
- package/dist/checks/organization/preflight-system-validation.js.map +1 -0
- package/dist/checks/organization/preflight-typescript-validation.d.ts +15 -0
- package/dist/checks/organization/preflight-typescript-validation.d.ts.map +1 -0
- package/dist/checks/organization/preflight-typescript-validation.js +57 -0
- package/dist/checks/organization/preflight-typescript-validation.js.map +1 -0
- package/dist/checks/organization/route-structure-validation.d.ts +19 -0
- package/dist/checks/organization/route-structure-validation.d.ts.map +1 -0
- package/dist/checks/organization/route-structure-validation.js +241 -0
- package/dist/checks/organization/route-structure-validation.js.map +1 -0
- package/dist/checks/organization/steering-bloat-prevention.d.ts +88 -0
- package/dist/checks/organization/steering-bloat-prevention.d.ts.map +1 -0
- package/dist/checks/organization/steering-bloat-prevention.js +1199 -0
- package/dist/checks/organization/steering-bloat-prevention.js.map +1 -0
- package/dist/checks/performance/bundle-optimization-drift.d.ts +19 -0
- package/dist/checks/performance/bundle-optimization-drift.d.ts.map +1 -0
- package/dist/checks/performance/bundle-optimization-drift.js +263 -0
- package/dist/checks/performance/bundle-optimization-drift.js.map +1 -0
- package/dist/checks/performance/bundle-size-regression.d.ts +15 -0
- package/dist/checks/performance/bundle-size-regression.d.ts.map +1 -0
- package/dist/checks/performance/bundle-size-regression.js +239 -0
- package/dist/checks/performance/bundle-size-regression.js.map +1 -0
- package/dist/checks/performance/core-web-vitals.d.ts +39 -0
- package/dist/checks/performance/core-web-vitals.d.ts.map +1 -0
- package/dist/checks/performance/core-web-vitals.js +445 -0
- package/dist/checks/performance/core-web-vitals.js.map +1 -0
- package/dist/checks/performance/mobile-performance-budget.d.ts +30 -0
- package/dist/checks/performance/mobile-performance-budget.d.ts.map +1 -0
- package/dist/checks/performance/mobile-performance-budget.js +401 -0
- package/dist/checks/performance/mobile-performance-budget.js.map +1 -0
- package/dist/checks/performance/runtime-regression.d.ts +17 -0
- package/dist/checks/performance/runtime-regression.d.ts.map +1 -0
- package/dist/checks/performance/runtime-regression.js +425 -0
- package/dist/checks/performance/runtime-regression.js.map +1 -0
- package/dist/checks/performance/unused-preload-detection.d.ts +18 -0
- package/dist/checks/performance/unused-preload-detection.d.ts.map +1 -0
- package/dist/checks/performance/unused-preload-detection.js +191 -0
- package/dist/checks/performance/unused-preload-detection.js.map +1 -0
- package/dist/checks/prisma/prisma7-compatibility.d.ts +30 -0
- package/dist/checks/prisma/prisma7-compatibility.d.ts.map +1 -0
- package/dist/checks/prisma/prisma7-compatibility.js +443 -0
- package/dist/checks/prisma/prisma7-compatibility.js.map +1 -0
- package/dist/checks/quality/component-size.d.ts +14 -0
- package/dist/checks/quality/component-size.d.ts.map +1 -0
- package/dist/checks/quality/component-size.js +107 -0
- package/dist/checks/quality/component-size.js.map +1 -0
- package/dist/checks/quality/critical-type-imports.d.ts +24 -0
- package/dist/checks/quality/critical-type-imports.d.ts.map +1 -0
- package/dist/checks/quality/critical-type-imports.js +635 -0
- package/dist/checks/quality/critical-type-imports.js.map +1 -0
- package/dist/checks/quality/development.d.ts +14 -0
- package/dist/checks/quality/development.d.ts.map +1 -0
- package/dist/checks/quality/development.js +101 -0
- package/dist/checks/quality/development.js.map +1 -0
- package/dist/checks/quality/docs-code-sync.d.ts +28 -0
- package/dist/checks/quality/docs-code-sync.d.ts.map +1 -0
- package/dist/checks/quality/docs-code-sync.js +369 -0
- package/dist/checks/quality/docs-code-sync.js.map +1 -0
- package/dist/checks/quality/duplicate-jsx-attributes.d.ts +24 -0
- package/dist/checks/quality/duplicate-jsx-attributes.d.ts.map +1 -0
- package/dist/checks/quality/duplicate-jsx-attributes.js +202 -0
- package/dist/checks/quality/duplicate-jsx-attributes.js.map +1 -0
- package/dist/checks/quality/file-size.d.ts +14 -0
- package/dist/checks/quality/file-size.d.ts.map +1 -0
- package/dist/checks/quality/file-size.js +100 -0
- package/dist/checks/quality/file-size.js.map +1 -0
- package/dist/checks/quality/file-validation.d.ts +14 -0
- package/dist/checks/quality/file-validation.d.ts.map +1 -0
- package/dist/checks/quality/file-validation.js +106 -0
- package/dist/checks/quality/file-validation.js.map +1 -0
- package/dist/checks/quality/i18n-hardcoded-strings.d.ts +29 -0
- package/dist/checks/quality/i18n-hardcoded-strings.d.ts.map +1 -0
- package/dist/checks/quality/i18n-hardcoded-strings.js +339 -0
- package/dist/checks/quality/i18n-hardcoded-strings.js.map +1 -0
- package/dist/checks/quality/lint-preflight.d.ts +70 -0
- package/dist/checks/quality/lint-preflight.d.ts.map +1 -0
- package/dist/checks/quality/lint-preflight.js +479 -0
- package/dist/checks/quality/lint-preflight.js.map +1 -0
- package/dist/checks/quality/react-namespace-import.d.ts +28 -0
- package/dist/checks/quality/react-namespace-import.d.ts.map +1 -0
- package/dist/checks/quality/react-namespace-import.js +205 -0
- package/dist/checks/quality/react-namespace-import.js.map +1 -0
- package/dist/checks/quality/strict-lint.d.ts +14 -0
- package/dist/checks/quality/strict-lint.d.ts.map +1 -0
- package/dist/checks/quality/strict-lint.js +44 -0
- package/dist/checks/quality/strict-lint.js.map +1 -0
- package/dist/checks/quality/syntax.d.ts +14 -0
- package/dist/checks/quality/syntax.d.ts.map +1 -0
- package/dist/checks/quality/syntax.js +97 -0
- package/dist/checks/quality/syntax.js.map +1 -0
- package/dist/checks/quality/unused-imports.d.ts +15 -0
- package/dist/checks/quality/unused-imports.d.ts.map +1 -0
- package/dist/checks/quality/unused-imports.js +175 -0
- package/dist/checks/quality/unused-imports.js.map +1 -0
- package/dist/checks/react/component-best-practices.d.ts +24 -0
- package/dist/checks/react/component-best-practices.d.ts.map +1 -0
- package/dist/checks/react/component-best-practices.js +274 -0
- package/dist/checks/react/component-best-practices.js.map +1 -0
- package/dist/checks/react/component-callback-consolidation.d.ts +29 -0
- package/dist/checks/react/component-callback-consolidation.d.ts.map +1 -0
- package/dist/checks/react/component-callback-consolidation.js +246 -0
- package/dist/checks/react/component-callback-consolidation.js.map +1 -0
- package/dist/checks/react/data-fetching-patterns.d.ts +29 -0
- package/dist/checks/react/data-fetching-patterns.d.ts.map +1 -0
- package/dist/checks/react/data-fetching-patterns.js +234 -0
- package/dist/checks/react/data-fetching-patterns.js.map +1 -0
- package/dist/checks/react/dialog-state-consolidation.d.ts +29 -0
- package/dist/checks/react/dialog-state-consolidation.d.ts.map +1 -0
- package/dist/checks/react/dialog-state-consolidation.js +227 -0
- package/dist/checks/react/dialog-state-consolidation.js.map +1 -0
- package/dist/checks/react/error-boundary-consistency.d.ts +29 -0
- package/dist/checks/react/error-boundary-consistency.d.ts.map +1 -0
- package/dist/checks/react/error-boundary-consistency.js +220 -0
- package/dist/checks/react/error-boundary-consistency.js.map +1 -0
- package/dist/checks/react/error-boundary-coverage.d.ts +28 -0
- package/dist/checks/react/error-boundary-coverage.d.ts.map +1 -0
- package/dist/checks/react/error-boundary-coverage.js +304 -0
- package/dist/checks/react/error-boundary-coverage.js.map +1 -0
- package/dist/checks/react/loading-empty-state-composition.d.ts +29 -0
- package/dist/checks/react/loading-empty-state-composition.d.ts.map +1 -0
- package/dist/checks/react/loading-empty-state-composition.js +255 -0
- package/dist/checks/react/loading-empty-state-composition.js.map +1 -0
- package/dist/checks/react/memory-leak-detection.d.ts +23 -0
- package/dist/checks/react/memory-leak-detection.d.ts.map +1 -0
- package/dist/checks/react/memory-leak-detection.js +274 -0
- package/dist/checks/react/memory-leak-detection.js.map +1 -0
- package/dist/checks/react/memory-leak-patterns.d.ts +29 -0
- package/dist/checks/react/memory-leak-patterns.d.ts.map +1 -0
- package/dist/checks/react/memory-leak-patterns.js +330 -0
- package/dist/checks/react/memory-leak-patterns.js.map +1 -0
- package/dist/checks/react/pagination-state-consolidation.d.ts +29 -0
- package/dist/checks/react/pagination-state-consolidation.d.ts.map +1 -0
- package/dist/checks/react/pagination-state-consolidation.js +258 -0
- package/dist/checks/react/pagination-state-consolidation.js.map +1 -0
- package/dist/checks/react/react19-compatibility.d.ts +16 -0
- package/dist/checks/react/react19-compatibility.d.ts.map +1 -0
- package/dist/checks/react/react19-compatibility.js +437 -0
- package/dist/checks/react/react19-compatibility.js.map +1 -0
- package/dist/checks/react/sort-state-consolidation.d.ts +29 -0
- package/dist/checks/react/sort-state-consolidation.d.ts.map +1 -0
- package/dist/checks/react/sort-state-consolidation.js +261 -0
- package/dist/checks/react/sort-state-consolidation.js.map +1 -0
- package/dist/checks/react/useeffect-loop-detector.d.ts +26 -0
- package/dist/checks/react/useeffect-loop-detector.d.ts.map +1 -0
- package/dist/checks/react/useeffect-loop-detector.js +219 -0
- package/dist/checks/react/useeffect-loop-detector.js.map +1 -0
- package/dist/checks/runtime/client-process-env-usage.d.ts +28 -0
- package/dist/checks/runtime/client-process-env-usage.d.ts.map +1 -0
- package/dist/checks/runtime/client-process-env-usage.js +196 -0
- package/dist/checks/runtime/client-process-env-usage.js.map +1 -0
- package/dist/checks/runtime/client-runtime-errors.d.ts +34 -0
- package/dist/checks/runtime/client-runtime-errors.d.ts.map +1 -0
- package/dist/checks/runtime/client-runtime-errors.js +308 -0
- package/dist/checks/runtime/client-runtime-errors.js.map +1 -0
- package/dist/checks/runtime/dev-error-monitoring-system.d.ts +21 -0
- package/dist/checks/runtime/dev-error-monitoring-system.d.ts.map +1 -0
- package/dist/checks/runtime/dev-error-monitoring-system.js +210 -0
- package/dist/checks/runtime/dev-error-monitoring-system.js.map +1 -0
- package/dist/checks/runtime/gtm-installation.d.ts +22 -0
- package/dist/checks/runtime/gtm-installation.d.ts.map +1 -0
- package/dist/checks/runtime/gtm-installation.js +343 -0
- package/dist/checks/runtime/gtm-installation.js.map +1 -0
- package/dist/checks/runtime/json-parse-safety.d.ts +22 -0
- package/dist/checks/runtime/json-parse-safety.d.ts.map +1 -0
- package/dist/checks/runtime/json-parse-safety.js +179 -0
- package/dist/checks/runtime/json-parse-safety.js.map +1 -0
- package/dist/checks/runtime/missing-public-env-import.d.ts +26 -0
- package/dist/checks/runtime/missing-public-env-import.d.ts.map +1 -0
- package/dist/checks/runtime/missing-public-env-import.js +181 -0
- package/dist/checks/runtime/missing-public-env-import.js.map +1 -0
- package/dist/checks/runtime/node-deprecations.d.ts +24 -0
- package/dist/checks/runtime/node-deprecations.d.ts.map +1 -0
- package/dist/checks/runtime/node-deprecations.js +168 -0
- package/dist/checks/runtime/node-deprecations.js.map +1 -0
- package/dist/checks/runtime/node25-compatibility.d.ts +30 -0
- package/dist/checks/runtime/node25-compatibility.d.ts.map +1 -0
- package/dist/checks/runtime/node25-compatibility.js +209 -0
- package/dist/checks/runtime/node25-compatibility.js.map +1 -0
- package/dist/checks/runtime/process-stdio-usage.d.ts +25 -0
- package/dist/checks/runtime/process-stdio-usage.d.ts.map +1 -0
- package/dist/checks/runtime/process-stdio-usage.js +183 -0
- package/dist/checks/runtime/process-stdio-usage.js.map +1 -0
- package/dist/checks/runtime/server-client-decimal.d.ts +26 -0
- package/dist/checks/runtime/server-client-decimal.d.ts.map +1 -0
- package/dist/checks/runtime/server-client-decimal.js +246 -0
- package/dist/checks/runtime/server-client-decimal.js.map +1 -0
- package/dist/checks/security/client-external-api-calls.d.ts +25 -0
- package/dist/checks/security/client-external-api-calls.d.ts.map +1 -0
- package/dist/checks/security/client-external-api-calls.js +206 -0
- package/dist/checks/security/client-external-api-calls.js.map +1 -0
- package/dist/checks/security/csrf-protection.d.ts +20 -0
- package/dist/checks/security/csrf-protection.d.ts.map +1 -0
- package/dist/checks/security/csrf-protection.js +249 -0
- package/dist/checks/security/csrf-protection.js.map +1 -0
- package/dist/checks/security/dependency-audit.d.ts +25 -0
- package/dist/checks/security/dependency-audit.d.ts.map +1 -0
- package/dist/checks/security/dependency-audit.js +219 -0
- package/dist/checks/security/dependency-audit.js.map +1 -0
- package/dist/checks/security/env-value-leakage.d.ts +23 -0
- package/dist/checks/security/env-value-leakage.d.ts.map +1 -0
- package/dist/checks/security/env-value-leakage.js +307 -0
- package/dist/checks/security/env-value-leakage.js.map +1 -0
- package/dist/checks/security/no-tracked-env-files.d.ts +19 -0
- package/dist/checks/security/no-tracked-env-files.d.ts.map +1 -0
- package/dist/checks/security/no-tracked-env-files.js +253 -0
- package/dist/checks/security/no-tracked-env-files.js.map +1 -0
- package/dist/checks/security/open-redirect-prevention.d.ts +19 -0
- package/dist/checks/security/open-redirect-prevention.d.ts.map +1 -0
- package/dist/checks/security/open-redirect-prevention.js +238 -0
- package/dist/checks/security/open-redirect-prevention.js.map +1 -0
- package/dist/checks/security/path-traversal-prevention.d.ts +25 -0
- package/dist/checks/security/path-traversal-prevention.d.ts.map +1 -0
- package/dist/checks/security/path-traversal-prevention.js +252 -0
- package/dist/checks/security/path-traversal-prevention.js.map +1 -0
- package/dist/checks/security/permission-security-validation.d.ts +20 -0
- package/dist/checks/security/permission-security-validation.d.ts.map +1 -0
- package/dist/checks/security/permission-security-validation.js +332 -0
- package/dist/checks/security/permission-security-validation.js.map +1 -0
- package/dist/checks/security/prod-command-detection.d.ts +18 -0
- package/dist/checks/security/prod-command-detection.d.ts.map +1 -0
- package/dist/checks/security/prod-command-detection.js +238 -0
- package/dist/checks/security/prod-command-detection.js.map +1 -0
- package/dist/checks/security/rate-limiting-validation.d.ts +19 -0
- package/dist/checks/security/rate-limiting-validation.d.ts.map +1 -0
- package/dist/checks/security/rate-limiting-validation.js +265 -0
- package/dist/checks/security/rate-limiting-validation.js.map +1 -0
- package/dist/checks/security/security-sla-enforcement.d.ts +35 -0
- package/dist/checks/security/security-sla-enforcement.d.ts.map +1 -0
- package/dist/checks/security/security-sla-enforcement.js +352 -0
- package/dist/checks/security/security-sla-enforcement.js.map +1 -0
- package/dist/checks/security/sensitive-data-exposure.d.ts +37 -0
- package/dist/checks/security/sensitive-data-exposure.d.ts.map +1 -0
- package/dist/checks/security/sensitive-data-exposure.js +525 -0
- package/dist/checks/security/sensitive-data-exposure.js.map +1 -0
- package/dist/checks/security/sql-injection-prevention.d.ts +25 -0
- package/dist/checks/security/sql-injection-prevention.d.ts.map +1 -0
- package/dist/checks/security/sql-injection-prevention.js +219 -0
- package/dist/checks/security/sql-injection-prevention.js.map +1 -0
- package/dist/checks/security/turnstile-scope-validation.d.ts +22 -0
- package/dist/checks/security/turnstile-scope-validation.d.ts.map +1 -0
- package/dist/checks/security/turnstile-scope-validation.js +247 -0
- package/dist/checks/security/turnstile-scope-validation.js.map +1 -0
- package/dist/checks/security/unvalidated-route-params.d.ts +28 -0
- package/dist/checks/security/unvalidated-route-params.d.ts.map +1 -0
- package/dist/checks/security/unvalidated-route-params.js +246 -0
- package/dist/checks/security/unvalidated-route-params.js.map +1 -0
- package/dist/checks/security/webhook-security-validation.d.ts +19 -0
- package/dist/checks/security/webhook-security-validation.d.ts.map +1 -0
- package/dist/checks/security/webhook-security-validation.js +266 -0
- package/dist/checks/security/webhook-security-validation.js.map +1 -0
- package/dist/checks/seo/missing-metadata.d.ts +26 -0
- package/dist/checks/seo/missing-metadata.d.ts.map +1 -0
- package/dist/checks/seo/missing-metadata.js +185 -0
- package/dist/checks/seo/missing-metadata.js.map +1 -0
- package/dist/checks/storage-keys-validation.d.ts +25 -0
- package/dist/checks/storage-keys-validation.d.ts.map +1 -0
- package/dist/checks/storage-keys-validation.js +314 -0
- package/dist/checks/storage-keys-validation.js.map +1 -0
- package/dist/checks/store-order-numbers.d.ts +20 -0
- package/dist/checks/store-order-numbers.d.ts.map +1 -0
- package/dist/checks/store-order-numbers.js +244 -0
- package/dist/checks/store-order-numbers.js.map +1 -0
- package/dist/checks/system/analyze-consolidation-candidates.d.ts +18 -0
- package/dist/checks/system/analyze-consolidation-candidates.d.ts.map +1 -0
- package/dist/checks/system/analyze-consolidation-candidates.js +227 -0
- package/dist/checks/system/analyze-consolidation-candidates.js.map +1 -0
- package/dist/checks/system/apply-universal-progress.d.ts +15 -0
- package/dist/checks/system/apply-universal-progress.d.ts.map +1 -0
- package/dist/checks/system/apply-universal-progress.js +292 -0
- package/dist/checks/system/apply-universal-progress.js.map +1 -0
- package/dist/checks/system/broken-preflight-detection.d.ts +34 -0
- package/dist/checks/system/broken-preflight-detection.d.ts.map +1 -0
- package/dist/checks/system/broken-preflight-detection.js +568 -0
- package/dist/checks/system/broken-preflight-detection.js.map +1 -0
- package/dist/checks/system/find-orphaned-preflights.d.ts +20 -0
- package/dist/checks/system/find-orphaned-preflights.d.ts.map +1 -0
- package/dist/checks/system/find-orphaned-preflights.js +159 -0
- package/dist/checks/system/find-orphaned-preflights.js.map +1 -0
- package/dist/checks/system/lint-preflight-consistency.d.ts +26 -0
- package/dist/checks/system/lint-preflight-consistency.d.ts.map +1 -0
- package/dist/checks/system/lint-preflight-consistency.js +377 -0
- package/dist/checks/system/lint-preflight-consistency.js.map +1 -0
- package/dist/checks/system/orphaned-scripts-detection.d.ts +25 -0
- package/dist/checks/system/orphaned-scripts-detection.d.ts.map +1 -0
- package/dist/checks/system/orphaned-scripts-detection.js +338 -0
- package/dist/checks/system/orphaned-scripts-detection.js.map +1 -0
- package/dist/checks/system/preflight-command-validation.d.ts +36 -0
- package/dist/checks/system/preflight-command-validation.d.ts.map +1 -0
- package/dist/checks/system/preflight-command-validation.js +634 -0
- package/dist/checks/system/preflight-command-validation.js.map +1 -0
- package/dist/checks/system/preflight-concurrency-support.d.ts +19 -0
- package/dist/checks/system/preflight-concurrency-support.d.ts.map +1 -0
- package/dist/checks/system/preflight-concurrency-support.js +210 -0
- package/dist/checks/system/preflight-concurrency-support.js.map +1 -0
- package/dist/checks/system/preflight-consolidation-safety.d.ts +17 -0
- package/dist/checks/system/preflight-consolidation-safety.d.ts.map +1 -0
- package/dist/checks/system/preflight-consolidation-safety.js +253 -0
- package/dist/checks/system/preflight-consolidation-safety.js.map +1 -0
- package/dist/checks/system/preflight-coverage-map.d.ts +27 -0
- package/dist/checks/system/preflight-coverage-map.d.ts.map +1 -0
- package/dist/checks/system/preflight-coverage-map.js +298 -0
- package/dist/checks/system/preflight-coverage-map.js.map +1 -0
- package/dist/checks/system/preflight-drift-detector.d.ts +28 -0
- package/dist/checks/system/preflight-drift-detector.d.ts.map +1 -0
- package/dist/checks/system/preflight-drift-detector.js +382 -0
- package/dist/checks/system/preflight-drift-detector.js.map +1 -0
- package/dist/checks/system/preflight-env-var-documentation.d.ts +26 -0
- package/dist/checks/system/preflight-env-var-documentation.d.ts.map +1 -0
- package/dist/checks/system/preflight-env-var-documentation.js +336 -0
- package/dist/checks/system/preflight-env-var-documentation.js.map +1 -0
- package/dist/checks/system/preflight-exit-code-validator.d.ts +31 -0
- package/dist/checks/system/preflight-exit-code-validator.d.ts.map +1 -0
- package/dist/checks/system/preflight-exit-code-validator.js +301 -0
- package/dist/checks/system/preflight-exit-code-validator.js.map +1 -0
- package/dist/checks/system/preflight-false-positive-tracker.d.ts +26 -0
- package/dist/checks/system/preflight-false-positive-tracker.d.ts.map +1 -0
- package/dist/checks/system/preflight-false-positive-tracker.js +265 -0
- package/dist/checks/system/preflight-false-positive-tracker.js.map +1 -0
- package/dist/checks/system/preflight-metadata-validator.d.ts +28 -0
- package/dist/checks/system/preflight-metadata-validator.d.ts.map +1 -0
- package/dist/checks/system/preflight-metadata-validator.js +222 -0
- package/dist/checks/system/preflight-metadata-validator.js.map +1 -0
- package/dist/checks/system/preflight-organization.d.ts +16 -0
- package/dist/checks/system/preflight-organization.d.ts.map +1 -0
- package/dist/checks/system/preflight-organization.js +214 -0
- package/dist/checks/system/preflight-organization.js.map +1 -0
- package/dist/checks/system/preflight-performance-optimizer.d.ts +17 -0
- package/dist/checks/system/preflight-performance-optimizer.d.ts.map +1 -0
- package/dist/checks/system/preflight-performance-optimizer.js +377 -0
- package/dist/checks/system/preflight-performance-optimizer.js.map +1 -0
- package/dist/checks/system/preflight-performance-validator.d.ts +28 -0
- package/dist/checks/system/preflight-performance-validator.d.ts.map +1 -0
- package/dist/checks/system/preflight-performance-validator.js +270 -0
- package/dist/checks/system/preflight-performance-validator.js.map +1 -0
- package/dist/checks/system/preflight-redundancy-detection.d.ts +29 -0
- package/dist/checks/system/preflight-redundancy-detection.d.ts.map +1 -0
- package/dist/checks/system/preflight-redundancy-detection.js +1171 -0
- package/dist/checks/system/preflight-redundancy-detection.js.map +1 -0
- package/dist/checks/system/preflight-reporting-standards.d.ts +17 -0
- package/dist/checks/system/preflight-reporting-standards.d.ts.map +1 -0
- package/dist/checks/system/preflight-reporting-standards.js +315 -0
- package/dist/checks/system/preflight-reporting-standards.js.map +1 -0
- package/dist/checks/system/preflight-runtime-health.d.ts +34 -0
- package/dist/checks/system/preflight-runtime-health.d.ts.map +1 -0
- package/dist/checks/system/preflight-runtime-health.js +356 -0
- package/dist/checks/system/preflight-runtime-health.js.map +1 -0
- package/dist/checks/system/preflight-schema-validator.d.ts +24 -0
- package/dist/checks/system/preflight-schema-validator.d.ts.map +1 -0
- package/dist/checks/system/preflight-schema-validator.js +343 -0
- package/dist/checks/system/preflight-schema-validator.js.map +1 -0
- package/dist/checks/system/preflight-test-coverage.d.ts +25 -0
- package/dist/checks/system/preflight-test-coverage.d.ts.map +1 -0
- package/dist/checks/system/preflight-test-coverage.js +245 -0
- package/dist/checks/system/preflight-test-coverage.js.map +1 -0
- package/dist/checks/system/relative-import-validation.d.ts +25 -0
- package/dist/checks/system/relative-import-validation.d.ts.map +1 -0
- package/dist/checks/system/relative-import-validation.js +180 -0
- package/dist/checks/system/relative-import-validation.js.map +1 -0
- package/dist/checks/system/script-path-validation.d.ts +34 -0
- package/dist/checks/system/script-path-validation.d.ts.map +1 -0
- package/dist/checks/system/script-path-validation.js +354 -0
- package/dist/checks/system/script-path-validation.js.map +1 -0
- package/dist/checks/system/stale-preflight-detection.d.ts +16 -0
- package/dist/checks/system/stale-preflight-detection.d.ts.map +1 -0
- package/dist/checks/system/stale-preflight-detection.js +203 -0
- package/dist/checks/system/stale-preflight-detection.js.map +1 -0
- package/dist/checks/system/universal-progress-reporter.d.ts +92 -0
- package/dist/checks/system/universal-progress-reporter.d.ts.map +1 -0
- package/dist/checks/system/universal-progress-reporter.js +272 -0
- package/dist/checks/system/universal-progress-reporter.js.map +1 -0
- package/dist/checks/tailwind/tailwind4-compatibility.d.ts +33 -0
- package/dist/checks/tailwind/tailwind4-compatibility.d.ts.map +1 -0
- package/dist/checks/tailwind/tailwind4-compatibility.js +494 -0
- package/dist/checks/tailwind/tailwind4-compatibility.js.map +1 -0
- package/dist/checks/tanstack/tanstack-query-compatibility.d.ts +32 -0
- package/dist/checks/tanstack/tanstack-query-compatibility.d.ts.map +1 -0
- package/dist/checks/tanstack/tanstack-query-compatibility.js +437 -0
- package/dist/checks/tanstack/tanstack-query-compatibility.js.map +1 -0
- package/dist/checks/ui/accessibility-critical.d.ts +19 -0
- package/dist/checks/ui/accessibility-critical.d.ts.map +1 -0
- package/dist/checks/ui/accessibility-critical.js +360 -0
- package/dist/checks/ui/accessibility-critical.js.map +1 -0
- package/dist/checks/ui/admin-table-client-patterns.d.ts +32 -0
- package/dist/checks/ui/admin-table-client-patterns.d.ts.map +1 -0
- package/dist/checks/ui/admin-table-client-patterns.js +387 -0
- package/dist/checks/ui/admin-table-client-patterns.js.map +1 -0
- package/dist/checks/ui/alert-button-gap.d.ts +27 -0
- package/dist/checks/ui/alert-button-gap.d.ts.map +1 -0
- package/dist/checks/ui/alert-button-gap.js +218 -0
- package/dist/checks/ui/alert-button-gap.js.map +1 -0
- package/dist/checks/ui/async-status-flash-detection.d.ts +33 -0
- package/dist/checks/ui/async-status-flash-detection.d.ts.map +1 -0
- package/dist/checks/ui/async-status-flash-detection.js +303 -0
- package/dist/checks/ui/async-status-flash-detection.js.map +1 -0
- package/dist/checks/ui/breadcrumb-consistency.d.ts +18 -0
- package/dist/checks/ui/breadcrumb-consistency.d.ts.map +1 -0
- package/dist/checks/ui/breadcrumb-consistency.js +237 -0
- package/dist/checks/ui/breadcrumb-consistency.js.map +1 -0
- package/dist/checks/ui/button-group-gap.d.ts +23 -0
- package/dist/checks/ui/button-group-gap.d.ts.map +1 -0
- package/dist/checks/ui/button-group-gap.js +197 -0
- package/dist/checks/ui/button-group-gap.js.map +1 -0
- package/dist/checks/ui/button-icon-prop.d.ts +41 -0
- package/dist/checks/ui/button-icon-prop.d.ts.map +1 -0
- package/dist/checks/ui/button-icon-prop.js +251 -0
- package/dist/checks/ui/button-icon-prop.js.map +1 -0
- package/dist/checks/ui/card-section-content-spacing.d.ts +32 -0
- package/dist/checks/ui/card-section-content-spacing.d.ts.map +1 -0
- package/dist/checks/ui/card-section-content-spacing.js +263 -0
- package/dist/checks/ui/card-section-content-spacing.js.map +1 -0
- package/dist/checks/ui/card-section-patterns.d.ts +35 -0
- package/dist/checks/ui/card-section-patterns.d.ts.map +1 -0
- package/dist/checks/ui/card-section-patterns.js +279 -0
- package/dist/checks/ui/card-section-patterns.js.map +1 -0
- package/dist/checks/ui/category-filter-coverage.d.ts +81 -0
- package/dist/checks/ui/category-filter-coverage.d.ts.map +1 -0
- package/dist/checks/ui/category-filter-coverage.js +520 -0
- package/dist/checks/ui/category-filter-coverage.js.map +1 -0
- package/dist/checks/ui/color-check.d.ts +8 -0
- package/dist/checks/ui/color-check.d.ts.map +1 -0
- package/dist/checks/ui/color-check.js +111 -0
- package/dist/checks/ui/color-check.js.map +1 -0
- package/dist/checks/ui/component-library-quality.d.ts +20 -0
- package/dist/checks/ui/component-library-quality.d.ts.map +1 -0
- package/dist/checks/ui/component-library-quality.js +237 -0
- package/dist/checks/ui/component-library-quality.js.map +1 -0
- package/dist/checks/ui/component-prop-validation.d.ts +22 -0
- package/dist/checks/ui/component-prop-validation.d.ts.map +1 -0
- package/dist/checks/ui/component-prop-validation.js +271 -0
- package/dist/checks/ui/component-prop-validation.js.map +1 -0
- package/dist/checks/ui/confirmation-page-consistency.d.ts +27 -0
- package/dist/checks/ui/confirmation-page-consistency.d.ts.map +1 -0
- package/dist/checks/ui/confirmation-page-consistency.js +366 -0
- package/dist/checks/ui/confirmation-page-consistency.js.map +1 -0
- package/dist/checks/ui/console-log-check.d.ts +8 -0
- package/dist/checks/ui/console-log-check.d.ts.map +1 -0
- package/dist/checks/ui/console-log-check.js +101 -0
- package/dist/checks/ui/console-log-check.js.map +1 -0
- package/dist/checks/ui/css-grid-gap-check.d.ts +25 -0
- package/dist/checks/ui/css-grid-gap-check.d.ts.map +1 -0
- package/dist/checks/ui/css-grid-gap-check.js +317 -0
- package/dist/checks/ui/css-grid-gap-check.js.map +1 -0
- package/dist/checks/ui/css-token-syntax.d.ts +23 -0
- package/dist/checks/ui/css-token-syntax.d.ts.map +1 -0
- package/dist/checks/ui/css-token-syntax.js +389 -0
- package/dist/checks/ui/css-token-syntax.js.map +1 -0
- package/dist/checks/ui/cva-empty-variants.d.ts +28 -0
- package/dist/checks/ui/cva-empty-variants.d.ts.map +1 -0
- package/dist/checks/ui/cva-empty-variants.js +240 -0
- package/dist/checks/ui/cva-empty-variants.js.map +1 -0
- package/dist/checks/ui/dark-mode-support.d.ts +96 -0
- package/dist/checks/ui/dark-mode-support.d.ts.map +1 -0
- package/dist/checks/ui/dark-mode-support.js +703 -0
- package/dist/checks/ui/dark-mode-support.js.map +1 -0
- package/dist/checks/ui/dashboard-section-patterns.d.ts +86 -0
- package/dist/checks/ui/dashboard-section-patterns.d.ts.map +1 -0
- package/dist/checks/ui/dashboard-section-patterns.js +1757 -0
- package/dist/checks/ui/dashboard-section-patterns.js.map +1 -0
- package/dist/checks/ui/dashboard-ui.d.ts +29 -0
- package/dist/checks/ui/dashboard-ui.d.ts.map +1 -0
- package/dist/checks/ui/dashboard-ui.js +509 -0
- package/dist/checks/ui/dashboard-ui.js.map +1 -0
- package/dist/checks/ui/dead-action-detector.d.ts +25 -0
- package/dist/checks/ui/dead-action-detector.d.ts.map +1 -0
- package/dist/checks/ui/dead-action-detector.js +470 -0
- package/dist/checks/ui/dead-action-detector.js.map +1 -0
- package/dist/checks/ui/dialog-state-management.d.ts +27 -0
- package/dist/checks/ui/dialog-state-management.d.ts.map +1 -0
- package/dist/checks/ui/dialog-state-management.js +301 -0
- package/dist/checks/ui/dialog-state-management.js.map +1 -0
- package/dist/checks/ui/doubled-padding-check.d.ts +31 -0
- package/dist/checks/ui/doubled-padding-check.d.ts.map +1 -0
- package/dist/checks/ui/doubled-padding-check.js +236 -0
- package/dist/checks/ui/doubled-padding-check.js.map +1 -0
- package/dist/checks/ui/dropdown-positioning-check.d.ts +27 -0
- package/dist/checks/ui/dropdown-positioning-check.d.ts.map +1 -0
- package/dist/checks/ui/dropdown-positioning-check.js +286 -0
- package/dist/checks/ui/dropdown-positioning-check.js.map +1 -0
- package/dist/checks/ui/duplicate-layout-detection.d.ts +20 -0
- package/dist/checks/ui/duplicate-layout-detection.d.ts.map +1 -0
- package/dist/checks/ui/duplicate-layout-detection.js +290 -0
- package/dist/checks/ui/duplicate-layout-detection.js.map +1 -0
- package/dist/checks/ui/duplicate-shared-component-detection.d.ts +25 -0
- package/dist/checks/ui/duplicate-shared-component-detection.d.ts.map +1 -0
- package/dist/checks/ui/duplicate-shared-component-detection.js +340 -0
- package/dist/checks/ui/duplicate-shared-component-detection.js.map +1 -0
- package/dist/checks/ui/feature-page-hero-consistency.d.ts +30 -0
- package/dist/checks/ui/feature-page-hero-consistency.d.ts.map +1 -0
- package/dist/checks/ui/feature-page-hero-consistency.js +234 -0
- package/dist/checks/ui/feature-page-hero-consistency.js.map +1 -0
- package/dist/checks/ui/filter-loading-states.d.ts +20 -0
- package/dist/checks/ui/filter-loading-states.d.ts.map +1 -0
- package/dist/checks/ui/filter-loading-states.js +199 -0
- package/dist/checks/ui/filter-loading-states.js.map +1 -0
- package/dist/checks/ui/flex-icon-text-gap.d.ts +31 -0
- package/dist/checks/ui/flex-icon-text-gap.d.ts.map +1 -0
- package/dist/checks/ui/flex-icon-text-gap.js +374 -0
- package/dist/checks/ui/flex-icon-text-gap.js.map +1 -0
- package/dist/checks/ui/flex-spacing-validation.d.ts +54 -0
- package/dist/checks/ui/flex-spacing-validation.d.ts.map +1 -0
- package/dist/checks/ui/flex-spacing-validation.js +263 -0
- package/dist/checks/ui/flex-spacing-validation.js.map +1 -0
- package/dist/checks/ui/floating-action-buttons.d.ts +36 -0
- package/dist/checks/ui/floating-action-buttons.d.ts.map +1 -0
- package/dist/checks/ui/floating-action-buttons.js +371 -0
- package/dist/checks/ui/floating-action-buttons.js.map +1 -0
- package/dist/checks/ui/form-control-layout-check.d.ts +31 -0
- package/dist/checks/ui/form-control-layout-check.d.ts.map +1 -0
- package/dist/checks/ui/form-control-layout-check.js +290 -0
- package/dist/checks/ui/form-control-layout-check.js.map +1 -0
- package/dist/checks/ui/form-field-consistency.d.ts +30 -0
- package/dist/checks/ui/form-field-consistency.d.ts.map +1 -0
- package/dist/checks/ui/form-field-consistency.js +273 -0
- package/dist/checks/ui/form-field-consistency.js.map +1 -0
- package/dist/checks/ui/gap-spacing-consistency.d.ts +36 -0
- package/dist/checks/ui/gap-spacing-consistency.d.ts.map +1 -0
- package/dist/checks/ui/gap-spacing-consistency.js +319 -0
- package/dist/checks/ui/gap-spacing-consistency.js.map +1 -0
- package/dist/checks/ui/header-action-text-color.d.ts +20 -0
- package/dist/checks/ui/header-action-text-color.d.ts.map +1 -0
- package/dist/checks/ui/header-action-text-color.js +128 -0
- package/dist/checks/ui/header-action-text-color.js.map +1 -0
- package/dist/checks/ui/header-vertical-alignment.d.ts +22 -0
- package/dist/checks/ui/header-vertical-alignment.d.ts.map +1 -0
- package/dist/checks/ui/header-vertical-alignment.js +215 -0
- package/dist/checks/ui/header-vertical-alignment.js.map +1 -0
- package/dist/checks/ui/image-component-check.d.ts +9 -0
- package/dist/checks/ui/image-component-check.d.ts.map +1 -0
- package/dist/checks/ui/image-component-check.js +99 -0
- package/dist/checks/ui/image-component-check.js.map +1 -0
- package/dist/checks/ui/image-pair-placeholder-priority.d.ts +40 -0
- package/dist/checks/ui/image-pair-placeholder-priority.d.ts.map +1 -0
- package/dist/checks/ui/image-pair-placeholder-priority.js +236 -0
- package/dist/checks/ui/image-pair-placeholder-priority.js.map +1 -0
- package/dist/checks/ui/image-url-double-suffix.d.ts +22 -0
- package/dist/checks/ui/image-url-double-suffix.d.ts.map +1 -0
- package/dist/checks/ui/image-url-double-suffix.js +314 -0
- package/dist/checks/ui/image-url-double-suffix.js.map +1 -0
- package/dist/checks/ui/inline-flex-gap-check.d.ts +27 -0
- package/dist/checks/ui/inline-flex-gap-check.d.ts.map +1 -0
- package/dist/checks/ui/inline-flex-gap-check.js +199 -0
- package/dist/checks/ui/inline-flex-gap-check.js.map +1 -0
- package/dist/checks/ui/inline-notification-misuse.d.ts +38 -0
- package/dist/checks/ui/inline-notification-misuse.d.ts.map +1 -0
- package/dist/checks/ui/inline-notification-misuse.js +348 -0
- package/dist/checks/ui/inline-notification-misuse.js.map +1 -0
- package/dist/checks/ui/inline-to-tailwind-check.d.ts +47 -0
- package/dist/checks/ui/inline-to-tailwind-check.d.ts.map +1 -0
- package/dist/checks/ui/inline-to-tailwind-check.js +332 -0
- package/dist/checks/ui/inline-to-tailwind-check.js.map +1 -0
- package/dist/checks/ui/input-label-gap.d.ts +35 -0
- package/dist/checks/ui/input-label-gap.d.ts.map +1 -0
- package/dist/checks/ui/input-label-gap.js +350 -0
- package/dist/checks/ui/input-label-gap.js.map +1 -0
- package/dist/checks/ui/input-width-consistency.d.ts +53 -0
- package/dist/checks/ui/input-width-consistency.d.ts.map +1 -0
- package/dist/checks/ui/input-width-consistency.js +343 -0
- package/dist/checks/ui/input-width-consistency.js.map +1 -0
- package/dist/checks/ui/js-responsive-visibility.d.ts +32 -0
- package/dist/checks/ui/js-responsive-visibility.d.ts.map +1 -0
- package/dist/checks/ui/js-responsive-visibility.js +216 -0
- package/dist/checks/ui/js-responsive-visibility.js.map +1 -0
- package/dist/checks/ui/label-description-spacing.d.ts +31 -0
- package/dist/checks/ui/label-description-spacing.d.ts.map +1 -0
- package/dist/checks/ui/label-description-spacing.js +288 -0
- package/dist/checks/ui/label-description-spacing.js.map +1 -0
- package/dist/checks/ui/layout-shift-detection.d.ts +32 -0
- package/dist/checks/ui/layout-shift-detection.d.ts.map +1 -0
- package/dist/checks/ui/layout-shift-detection.js +401 -0
- package/dist/checks/ui/layout-shift-detection.js.map +1 -0
- package/dist/checks/ui/list-item-text-pattern.d.ts +33 -0
- package/dist/checks/ui/list-item-text-pattern.d.ts.map +1 -0
- package/dist/checks/ui/list-item-text-pattern.js +197 -0
- package/dist/checks/ui/list-item-text-pattern.js.map +1 -0
- package/dist/checks/ui/loading-empty-state-consistency.d.ts +29 -0
- package/dist/checks/ui/loading-empty-state-consistency.d.ts.map +1 -0
- package/dist/checks/ui/loading-empty-state-consistency.js +333 -0
- package/dist/checks/ui/loading-empty-state-consistency.js.map +1 -0
- package/dist/checks/ui/margin-in-gap-container.d.ts +26 -0
- package/dist/checks/ui/margin-in-gap-container.d.ts.map +1 -0
- package/dist/checks/ui/margin-in-gap-container.js +625 -0
- package/dist/checks/ui/margin-in-gap-container.js.map +1 -0
- package/dist/checks/ui/mega-menu-dropdown-position.d.ts +26 -0
- package/dist/checks/ui/mega-menu-dropdown-position.d.ts.map +1 -0
- package/dist/checks/ui/mega-menu-dropdown-position.js +233 -0
- package/dist/checks/ui/mega-menu-dropdown-position.js.map +1 -0
- package/dist/checks/ui/mega-menu-scrollbar-overlap.d.ts +25 -0
- package/dist/checks/ui/mega-menu-scrollbar-overlap.d.ts.map +1 -0
- package/dist/checks/ui/mega-menu-scrollbar-overlap.js +286 -0
- package/dist/checks/ui/mega-menu-scrollbar-overlap.js.map +1 -0
- package/dist/checks/ui/mega-menu-spacing-check.d.ts +22 -0
- package/dist/checks/ui/mega-menu-spacing-check.d.ts.map +1 -0
- package/dist/checks/ui/mega-menu-spacing-check.js +247 -0
- package/dist/checks/ui/mega-menu-spacing-check.js.map +1 -0
- package/dist/checks/ui/missing-shared-component-detection.d.ts +30 -0
- package/dist/checks/ui/missing-shared-component-detection.d.ts.map +1 -0
- package/dist/checks/ui/missing-shared-component-detection.js +707 -0
- package/dist/checks/ui/missing-shared-component-detection.js.map +1 -0
- package/dist/checks/ui/notification-feedback-check.d.ts +38 -0
- package/dist/checks/ui/notification-feedback-check.d.ts.map +1 -0
- package/dist/checks/ui/notification-feedback-check.js +564 -0
- package/dist/checks/ui/notification-feedback-check.js.map +1 -0
- package/dist/checks/ui/orphaned-page-content.d.ts +30 -0
- package/dist/checks/ui/orphaned-page-content.d.ts.map +1 -0
- package/dist/checks/ui/orphaned-page-content.js +261 -0
- package/dist/checks/ui/orphaned-page-content.js.map +1 -0
- package/dist/checks/ui/orphaned-table-filters.d.ts +35 -0
- package/dist/checks/ui/orphaned-table-filters.d.ts.map +1 -0
- package/dist/checks/ui/orphaned-table-filters.js +289 -0
- package/dist/checks/ui/orphaned-table-filters.js.map +1 -0
- package/dist/checks/ui/overflow-clipping-detection.d.ts +18 -0
- package/dist/checks/ui/overflow-clipping-detection.d.ts.map +1 -0
- package/dist/checks/ui/overflow-clipping-detection.js +201 -0
- package/dist/checks/ui/overflow-clipping-detection.js.map +1 -0
- package/dist/checks/ui/page-layout-spacing.d.ts +30 -0
- package/dist/checks/ui/page-layout-spacing.d.ts.map +1 -0
- package/dist/checks/ui/page-layout-spacing.js +609 -0
- package/dist/checks/ui/page-layout-spacing.js.map +1 -0
- package/dist/checks/ui/path-alias-check.d.ts +8 -0
- package/dist/checks/ui/path-alias-check.d.ts.map +1 -0
- package/dist/checks/ui/path-alias-check.js +101 -0
- package/dist/checks/ui/path-alias-check.js.map +1 -0
- package/dist/checks/ui/product-image-animations.d.ts +70 -0
- package/dist/checks/ui/product-image-animations.d.ts.map +1 -0
- package/dist/checks/ui/product-image-animations.js +326 -0
- package/dist/checks/ui/product-image-animations.js.map +1 -0
- package/dist/checks/ui/raw-enum-display-validation.d.ts +25 -0
- package/dist/checks/ui/raw-enum-display-validation.d.ts.map +1 -0
- package/dist/checks/ui/raw-enum-display-validation.js +186 -0
- package/dist/checks/ui/raw-enum-display-validation.js.map +1 -0
- package/dist/checks/ui/react-component-patterns.d.ts +19 -0
- package/dist/checks/ui/react-component-patterns.d.ts.map +1 -0
- package/dist/checks/ui/react-component-patterns.js +250 -0
- package/dist/checks/ui/react-component-patterns.js.map +1 -0
- package/dist/checks/ui/react-dom-prop-leaking.d.ts +22 -0
- package/dist/checks/ui/react-dom-prop-leaking.d.ts.map +1 -0
- package/dist/checks/ui/react-dom-prop-leaking.js +272 -0
- package/dist/checks/ui/react-dom-prop-leaking.js.map +1 -0
- package/dist/checks/ui/responsive-flex-width-validation.d.ts +64 -0
- package/dist/checks/ui/responsive-flex-width-validation.d.ts.map +1 -0
- package/dist/checks/ui/responsive-flex-width-validation.js +283 -0
- package/dist/checks/ui/responsive-flex-width-validation.js.map +1 -0
- package/dist/checks/ui/search-width-consistency.d.ts +53 -0
- package/dist/checks/ui/search-width-consistency.d.ts.map +1 -0
- package/dist/checks/ui/search-width-consistency.js +277 -0
- package/dist/checks/ui/search-width-consistency.js.map +1 -0
- package/dist/checks/ui/section-spacing-check.d.ts +31 -0
- package/dist/checks/ui/section-spacing-check.d.ts.map +1 -0
- package/dist/checks/ui/section-spacing-check.js +251 -0
- package/dist/checks/ui/section-spacing-check.js.map +1 -0
- package/dist/checks/ui/sibling-spacing-check.d.ts +26 -0
- package/dist/checks/ui/sibling-spacing-check.d.ts.map +1 -0
- package/dist/checks/ui/sibling-spacing-check.js +332 -0
- package/dist/checks/ui/sibling-spacing-check.js.map +1 -0
- package/dist/checks/ui/sidebar-layout-gap.d.ts +35 -0
- package/dist/checks/ui/sidebar-layout-gap.d.ts.map +1 -0
- package/dist/checks/ui/sidebar-layout-gap.js +206 -0
- package/dist/checks/ui/sidebar-layout-gap.js.map +1 -0
- package/dist/checks/ui/size-naming-consistency.d.ts +21 -0
- package/dist/checks/ui/size-naming-consistency.d.ts.map +1 -0
- package/dist/checks/ui/size-naming-consistency.js +220 -0
- package/dist/checks/ui/size-naming-consistency.js.map +1 -0
- package/dist/checks/ui/skeleton-empty-state-validation.d.ts +30 -0
- package/dist/checks/ui/skeleton-empty-state-validation.d.ts.map +1 -0
- package/dist/checks/ui/skeleton-empty-state-validation.js +268 -0
- package/dist/checks/ui/skeleton-empty-state-validation.js.map +1 -0
- package/dist/checks/ui/skeleton-size-consistency.d.ts +37 -0
- package/dist/checks/ui/skeleton-size-consistency.d.ts.map +1 -0
- package/dist/checks/ui/skeleton-size-consistency.js +1251 -0
- package/dist/checks/ui/skeleton-size-consistency.js.map +1 -0
- package/dist/checks/ui/spacing-check.d.ts +8 -0
- package/dist/checks/ui/spacing-check.d.ts.map +1 -0
- package/dist/checks/ui/spacing-check.js +106 -0
- package/dist/checks/ui/spacing-check.js.map +1 -0
- package/dist/checks/ui/spinner-vs-skeleton-validation.d.ts +46 -0
- package/dist/checks/ui/spinner-vs-skeleton-validation.d.ts.map +1 -0
- package/dist/checks/ui/spinner-vs-skeleton-validation.js +352 -0
- package/dist/checks/ui/spinner-vs-skeleton-validation.js.map +1 -0
- package/dist/checks/ui/stale-initial-state-detection.d.ts +30 -0
- package/dist/checks/ui/stale-initial-state-detection.d.ts.map +1 -0
- package/dist/checks/ui/stale-initial-state-detection.js +224 -0
- package/dist/checks/ui/stale-initial-state-detection.js.map +1 -0
- package/dist/checks/ui/styling-standards.d.ts +71 -0
- package/dist/checks/ui/styling-standards.d.ts.map +1 -0
- package/dist/checks/ui/styling-standards.js +568 -0
- package/dist/checks/ui/styling-standards.js.map +1 -0
- package/dist/checks/ui/table-form-control-spacing.d.ts +29 -0
- package/dist/checks/ui/table-form-control-spacing.d.ts.map +1 -0
- package/dist/checks/ui/table-form-control-spacing.js +260 -0
- package/dist/checks/ui/table-form-control-spacing.js.map +1 -0
- package/dist/checks/ui/table-structure-validation.d.ts +36 -0
- package/dist/checks/ui/table-structure-validation.d.ts.map +1 -0
- package/dist/checks/ui/table-structure-validation.js +308 -0
- package/dist/checks/ui/table-structure-validation.js.map +1 -0
- package/dist/checks/ui/tailwind-consistency.d.ts +28 -0
- package/dist/checks/ui/tailwind-consistency.d.ts.map +1 -0
- package/dist/checks/ui/tailwind-consistency.js +349 -0
- package/dist/checks/ui/tailwind-consistency.js.map +1 -0
- package/dist/checks/ui/tailwind-contrast-check.d.ts +46 -0
- package/dist/checks/ui/tailwind-contrast-check.d.ts.map +1 -0
- package/dist/checks/ui/tailwind-contrast-check.js +464 -0
- package/dist/checks/ui/tailwind-contrast-check.js.map +1 -0
- package/dist/checks/ui/text-button-group-gap.d.ts +30 -0
- package/dist/checks/ui/text-button-group-gap.d.ts.map +1 -0
- package/dist/checks/ui/text-button-group-gap.js +245 -0
- package/dist/checks/ui/text-button-group-gap.js.map +1 -0
- package/dist/checks/ui/typography-check.d.ts +8 -0
- package/dist/checks/ui/typography-check.d.ts.map +1 -0
- package/dist/checks/ui/typography-check.js +120 -0
- package/dist/checks/ui/typography-check.js.map +1 -0
- package/dist/checks/ui/ui-consistency-validation.d.ts +52 -0
- package/dist/checks/ui/ui-consistency-validation.d.ts.map +1 -0
- package/dist/checks/ui/ui-consistency-validation.js +235 -0
- package/dist/checks/ui/ui-consistency-validation.js.map +1 -0
- package/dist/checks/ui/z-index-check.d.ts +29 -0
- package/dist/checks/ui/z-index-check.d.ts.map +1 -0
- package/dist/checks/ui/z-index-check.js +669 -0
- package/dist/checks/ui/z-index-check.js.map +1 -0
- package/dist/checks/zod/zod4-compatibility.d.ts +32 -0
- package/dist/checks/zod/zod4-compatibility.d.ts.map +1 -0
- package/dist/checks/zod/zod4-compatibility.js +415 -0
- package/dist/checks/zod/zod4-compatibility.js.map +1 -0
- package/dist/core/categories.d.ts +40 -0
- package/dist/core/categories.d.ts.map +1 -0
- package/dist/core/categories.js +153 -0
- package/dist/core/categories.js.map +1 -0
- package/dist/core/config.d.ts +110 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +178 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/types.d.ts +206 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +24 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +215 -0
- package/dist/index.js.map +1 -0
- package/dist/runner.d.ts +37 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +728 -0
- package/dist/runner.js.map +1 -0
- package/dist/shared/concurrency-config.d.ts +67 -0
- package/dist/shared/concurrency-config.d.ts.map +1 -0
- package/dist/shared/concurrency-config.js +140 -0
- package/dist/shared/concurrency-config.js.map +1 -0
- package/dist/shared/design-tokens-config.d.ts +140 -0
- package/dist/shared/design-tokens-config.d.ts.map +1 -0
- package/dist/shared/design-tokens-config.js +290 -0
- package/dist/shared/design-tokens-config.js.map +1 -0
- package/dist/shared/design-tokens.d.ts +771 -0
- package/dist/shared/design-tokens.d.ts.map +1 -0
- package/dist/shared/design-tokens.js +873 -0
- package/dist/shared/design-tokens.js.map +1 -0
- package/dist/shared/exclusions.d.ts +93 -0
- package/dist/shared/exclusions.d.ts.map +1 -0
- package/dist/shared/exclusions.js +182 -0
- package/dist/shared/exclusions.js.map +1 -0
- package/dist/shared/file-cache.d.ts +379 -0
- package/dist/shared/file-cache.d.ts.map +1 -0
- package/dist/shared/file-cache.js +744 -0
- package/dist/shared/file-cache.js.map +1 -0
- package/dist/shared/glob-patterns.d.ts +200 -0
- package/dist/shared/glob-patterns.d.ts.map +1 -0
- package/dist/shared/glob-patterns.js +291 -0
- package/dist/shared/glob-patterns.js.map +1 -0
- package/dist/shared/in-process-runner.d.ts +44 -0
- package/dist/shared/in-process-runner.d.ts.map +1 -0
- package/dist/shared/in-process-runner.js +266 -0
- package/dist/shared/in-process-runner.js.map +1 -0
- package/dist/shared/incremental-cache.d.ts +93 -0
- package/dist/shared/incremental-cache.d.ts.map +1 -0
- package/dist/shared/incremental-cache.js +349 -0
- package/dist/shared/incremental-cache.js.map +1 -0
- package/dist/shared/layout-constants.d.ts +101 -0
- package/dist/shared/layout-constants.d.ts.map +1 -0
- package/dist/shared/layout-constants.js +172 -0
- package/dist/shared/layout-constants.js.map +1 -0
- package/dist/utils/config-loader.d.ts +34 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +169 -0
- package/dist/utils/config-loader.js.map +1 -0
- package/dist/utils/console-chars.d.ts +388 -0
- package/dist/utils/console-chars.d.ts.map +1 -0
- package/dist/utils/console-chars.js +378 -0
- package/dist/utils/console-chars.js.map +1 -0
- package/dist/utils/file-scanner.d.ts +73 -0
- package/dist/utils/file-scanner.d.ts.map +1 -0
- package/dist/utils/file-scanner.js +203 -0
- package/dist/utils/file-scanner.js.map +1 -0
- package/dist/utils/findings-writer.d.ts +32 -0
- package/dist/utils/findings-writer.d.ts.map +1 -0
- package/dist/utils/findings-writer.js +69 -0
- package/dist/utils/findings-writer.js.map +1 -0
- package/dist/utils/plugin-loader.d.ts +76 -0
- package/dist/utils/plugin-loader.d.ts.map +1 -0
- package/dist/utils/plugin-loader.js +259 -0
- package/dist/utils/plugin-loader.js.map +1 -0
- package/dist/utils/preflight-runner.d.ts +29 -0
- package/dist/utils/preflight-runner.d.ts.map +1 -0
- package/dist/utils/preflight-runner.js +131 -0
- package/dist/utils/preflight-runner.js.map +1 -0
- package/dist/utils/progress-reporter.d.ts +92 -0
- package/dist/utils/progress-reporter.d.ts.map +1 -0
- package/dist/utils/progress-reporter.js +272 -0
- package/dist/utils/progress-reporter.js.map +1 -0
- package/package.json +83 -0
- package/templates/domain-specific/trading-card-system/tcg-seed-validation.ts +197 -0
- package/templates/new-check.ts.template +205 -0
- package/templates/preflight.config.ts.template +103 -0
|
@@ -0,0 +1,1251 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Skeleton Size Consistency Preflight Check (Enhanced)
|
|
5
|
+
*
|
|
6
|
+
* Comprehensive validation that skeleton components match their corresponding
|
|
7
|
+
* real components to prevent Cumulative Layout Shift (CLS) during loading.
|
|
8
|
+
*
|
|
9
|
+
* BLOCKING: No (warning only - helps catch CLS issues before they ship)
|
|
10
|
+
*
|
|
11
|
+
* Run: pnpm preflight:skeleton-size
|
|
12
|
+
*
|
|
13
|
+
* Checks:
|
|
14
|
+
* 1. KNOWN MAPPINGS - Validates skeleton heights against expected component heights
|
|
15
|
+
* 2. STRUCTURAL MAPPINGS - Validates skeleton elements match component structure
|
|
16
|
+
* - Detects missing placeholders for component elements
|
|
17
|
+
* - Detects stale placeholders for removed elements
|
|
18
|
+
* - Compares action button counts between skeleton and component
|
|
19
|
+
* 3. AUTO-DISCOVERY - Finds skeleton/component pairs by naming convention
|
|
20
|
+
* 4. RESPONSIVE ANALYSIS - Compares mobile vs desktop height definitions
|
|
21
|
+
* 5. STRUCTURE MATCHING - Validates loading.tsx structure matches page structure
|
|
22
|
+
* 6. ELEMENT COUNT - Checks skeleton element counts match actual components
|
|
23
|
+
* 7. GRID PATTERNS - Validates grid column counts match between skeleton and page
|
|
24
|
+
* 8. DOCUMENTATION - Ensures skeletons document what they mirror
|
|
25
|
+
* 9. SPACING TOKENS - Validates consistent spacing between skeleton and component
|
|
26
|
+
* 10. DESIGN TOKEN CONSISTENCY - Validates CSS variables match between pairs
|
|
27
|
+
* 11. BORDER/SHADOW CONSISTENCY - Validates visual styling matches
|
|
28
|
+
* 12. ARIA/ACCESSIBILITY - Validates skeleton has proper aria-labels
|
|
29
|
+
* 13. ICON PLACEHOLDER VALIDATION - Validates icon placeholders match actual icons
|
|
30
|
+
*/
|
|
31
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
32
|
+
if (k2 === undefined) k2 = k;
|
|
33
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
34
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
35
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
36
|
+
}
|
|
37
|
+
Object.defineProperty(o, k2, desc);
|
|
38
|
+
}) : (function(o, m, k, k2) {
|
|
39
|
+
if (k2 === undefined) k2 = k;
|
|
40
|
+
o[k2] = m[k];
|
|
41
|
+
}));
|
|
42
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
43
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
44
|
+
}) : function(o, v) {
|
|
45
|
+
o["default"] = v;
|
|
46
|
+
});
|
|
47
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
48
|
+
var ownKeys = function(o) {
|
|
49
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
50
|
+
var ar = [];
|
|
51
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
52
|
+
return ar;
|
|
53
|
+
};
|
|
54
|
+
return ownKeys(o);
|
|
55
|
+
};
|
|
56
|
+
return function (mod) {
|
|
57
|
+
if (mod && mod.__esModule) return mod;
|
|
58
|
+
var result = {};
|
|
59
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
64
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
+
exports.tags = exports.description = exports.blocking = exports.category = exports.name = exports.id = void 0;
|
|
66
|
+
exports.run = run;
|
|
67
|
+
const fs = __importStar(require("fs"));
|
|
68
|
+
const file_cache_1 = require("../../shared/file-cache");
|
|
69
|
+
const path = __importStar(require("path"));
|
|
70
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
71
|
+
const glob_patterns_1 = require("../../shared/glob-patterns");
|
|
72
|
+
const universal_progress_reporter_1 = require("../system/universal-progress-reporter");
|
|
73
|
+
const glob_1 = require("glob");
|
|
74
|
+
// Check metadata
|
|
75
|
+
exports.id = "ui/skeleton-size-consistency";
|
|
76
|
+
exports.name = "Skeleton Size Consistency";
|
|
77
|
+
exports.category = "ui";
|
|
78
|
+
exports.blocking = false;
|
|
79
|
+
exports.description = "Skeleton Size Consistency Preflight Check (Enhanced)";
|
|
80
|
+
exports.tags = ["ui"];
|
|
81
|
+
// CONSTANTS
|
|
82
|
+
const TAILWIND_SPACING = {
|
|
83
|
+
"0": 0,
|
|
84
|
+
px: 1,
|
|
85
|
+
"0.5": 2,
|
|
86
|
+
"1": 4,
|
|
87
|
+
"1.5": 6,
|
|
88
|
+
"2": 8,
|
|
89
|
+
"2.5": 10,
|
|
90
|
+
"3": 12,
|
|
91
|
+
"3.5": 14,
|
|
92
|
+
"4": 16,
|
|
93
|
+
"5": 20,
|
|
94
|
+
"6": 24,
|
|
95
|
+
"7": 28,
|
|
96
|
+
"8": 32,
|
|
97
|
+
"9": 36,
|
|
98
|
+
"10": 40,
|
|
99
|
+
"11": 44,
|
|
100
|
+
"12": 48,
|
|
101
|
+
"14": 56,
|
|
102
|
+
"16": 64,
|
|
103
|
+
"20": 80,
|
|
104
|
+
"24": 96,
|
|
105
|
+
"28": 112,
|
|
106
|
+
"32": 128,
|
|
107
|
+
"36": 144,
|
|
108
|
+
"40": 160,
|
|
109
|
+
"44": 176,
|
|
110
|
+
"48": 192,
|
|
111
|
+
"52": 208,
|
|
112
|
+
"56": 224,
|
|
113
|
+
"60": 240,
|
|
114
|
+
"64": 256,
|
|
115
|
+
"72": 288,
|
|
116
|
+
"80": 320,
|
|
117
|
+
"96": 384,
|
|
118
|
+
};
|
|
119
|
+
const BREAKPOINTS = ["base", "sm", "md", "lg", "xl", "2xl"];
|
|
120
|
+
// Known skeleton-to-component mappings with expected heights
|
|
121
|
+
const KNOWN_MAPPINGS = [
|
|
122
|
+
{
|
|
123
|
+
skeleton: "components/shared/HeaderSkeleton.tsx",
|
|
124
|
+
component: "components/UnifiedHeader.tsx",
|
|
125
|
+
name: "NavigationHeader",
|
|
126
|
+
expectedHeight: { min: 100, max: 130 },
|
|
127
|
+
},
|
|
128
|
+
];
|
|
129
|
+
const STRUCTURAL_MAPPINGS = [
|
|
130
|
+
{
|
|
131
|
+
skeleton: "components/shared/HeaderSkeleton.tsx",
|
|
132
|
+
component: "components/UnifiedHeader.tsx",
|
|
133
|
+
name: "HeaderSkeleton",
|
|
134
|
+
expectedElements: [
|
|
135
|
+
{
|
|
136
|
+
// SellButton should have a skeleton placeholder on desktop
|
|
137
|
+
skeletonPattern: /SellButton|width={80}.*hidden sm:block.*rounded-lg/s,
|
|
138
|
+
componentPattern: /<SellButton|showSellButton/,
|
|
139
|
+
description: "SellButton placeholder (desktop)",
|
|
140
|
+
breakpoint: "sm",
|
|
141
|
+
severity: "warning",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
// Theme toggle should have skeleton on desktop
|
|
145
|
+
skeletonPattern: /Theme toggle|hidden sm:block.*circular/s,
|
|
146
|
+
componentPattern: /toggleTheme|<HeaderIconButton.*Moon|Sun/s,
|
|
147
|
+
description: "Theme toggle placeholder (desktop)",
|
|
148
|
+
breakpoint: "sm",
|
|
149
|
+
severity: "warning",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
// Mobile search should have skeleton on mobile
|
|
153
|
+
skeletonPattern: /Mobile search|block md:hidden.*circular/s,
|
|
154
|
+
componentPattern: /<MobileSearch|showMobileSearchButton/,
|
|
155
|
+
description: "Mobile search placeholder",
|
|
156
|
+
breakpoint: "base",
|
|
157
|
+
severity: "warning",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
// Core action buttons: notifications, wishlist, cart, user
|
|
161
|
+
skeletonPattern: /NotificationsBell|circular.*width={40}.*height={40}/s,
|
|
162
|
+
componentPattern: /<NotificationsBell/,
|
|
163
|
+
description: "NotificationsBell placeholder",
|
|
164
|
+
breakpoint: "base",
|
|
165
|
+
severity: "warning",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
skeletonPattern: /WishlistDrawer|circular.*width={40}.*height={40}/s,
|
|
169
|
+
componentPattern: /<WishlistDrawer/,
|
|
170
|
+
description: "WishlistDrawer placeholder",
|
|
171
|
+
breakpoint: "base",
|
|
172
|
+
severity: "warning",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
skeletonPattern: /CartDrawer|circular.*width={40}.*height={40}/s,
|
|
176
|
+
componentPattern: /<CartDrawer/,
|
|
177
|
+
description: "CartDrawer placeholder",
|
|
178
|
+
breakpoint: "base",
|
|
179
|
+
severity: "warning",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
skeletonPattern: /UserMenu|circular.*width={40}.*height={40}/s,
|
|
183
|
+
componentPattern: /<UserMenu/,
|
|
184
|
+
description: "UserMenu placeholder",
|
|
185
|
+
breakpoint: "base",
|
|
186
|
+
severity: "warning",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
// Desktop search bar
|
|
190
|
+
skeletonPattern: /hidden md:block.*Search|SearchBar/s,
|
|
191
|
+
componentPattern: /<SearchBar|<DesktopSearchWrapper/,
|
|
192
|
+
description: "Desktop search bar placeholder",
|
|
193
|
+
breakpoint: "md",
|
|
194
|
+
severity: "warning",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
// Navigation/MegaMenu
|
|
198
|
+
skeletonPattern: /<nav|MegaMenu/,
|
|
199
|
+
componentPattern: /<MegaMenu|showNavigation/,
|
|
200
|
+
description: "Navigation/MegaMenu placeholder",
|
|
201
|
+
breakpoint: "base",
|
|
202
|
+
severity: "warning",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
skeleton: "components/shared/HeaderSkeleton.tsx",
|
|
208
|
+
component: "components/shared/UnifiedBreadcrumbs.tsx",
|
|
209
|
+
name: "BreadcrumbSkeleton",
|
|
210
|
+
expectedElements: [
|
|
211
|
+
{
|
|
212
|
+
// ChevronRight separator (not "/" slash)
|
|
213
|
+
skeletonPattern: /ChevronRight|m9 18 6-6-6-6|path.*d="m9 18/,
|
|
214
|
+
componentPattern: /<ChevronRight/,
|
|
215
|
+
description: "ChevronRight separator icon",
|
|
216
|
+
breakpoint: "base",
|
|
217
|
+
severity: "warning",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
// Home icon placeholder for first breadcrumb item
|
|
221
|
+
skeletonPattern: /Home icon|width={16}.*height={16}.*rounded/s,
|
|
222
|
+
componentPattern: /<Home|showHomeIcon/,
|
|
223
|
+
description: "Home icon placeholder",
|
|
224
|
+
breakpoint: "base",
|
|
225
|
+
severity: "warning",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
// Background should be bg-secondary (not bg-primary)
|
|
229
|
+
skeletonPattern: /bg-secondary|--bg-secondary/,
|
|
230
|
+
componentPattern: /bg-secondary|--bg-secondary/,
|
|
231
|
+
description: "Background color (bg-secondary)",
|
|
232
|
+
breakpoint: "base",
|
|
233
|
+
severity: "warning",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
// Proper nav element with aria-label
|
|
237
|
+
skeletonPattern: /<nav.*aria-label/s,
|
|
238
|
+
componentPattern: /<nav.*aria-label/s,
|
|
239
|
+
description: "Accessible nav element",
|
|
240
|
+
breakpoint: "base",
|
|
241
|
+
severity: "warning",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
];
|
|
246
|
+
// Layout components that include UnifiedHeader by default
|
|
247
|
+
const LAYOUTS_WITH_HEADER = [
|
|
248
|
+
"DashboardPageLayout",
|
|
249
|
+
"StandardPageLayout",
|
|
250
|
+
"ContentLayout",
|
|
251
|
+
"SellerPageLayout",
|
|
252
|
+
"AccountPageLayout",
|
|
253
|
+
"AdminPageLayout",
|
|
254
|
+
"CategoryBrowseLoadingSkeleton",
|
|
255
|
+
"MarketplaceGridLoadingSkeleton",
|
|
256
|
+
];
|
|
257
|
+
// EXTRACTION FUNCTIONS
|
|
258
|
+
function extractHeights(content, containerOnly = true) {
|
|
259
|
+
const heights = [];
|
|
260
|
+
const lines = content.split("\n");
|
|
261
|
+
lines.forEach((line, index) => {
|
|
262
|
+
if (line.trim().startsWith("//") || line.trim().startsWith("*"))
|
|
263
|
+
return;
|
|
264
|
+
// Skip lines that are skeleton element props (height={...} on UnifiedSkeleton)
|
|
265
|
+
if (containerOnly && (line.includes("UnifiedSkeleton") || line.includes("<Skeleton"))) {
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
// Skip lines with height as a prop (height={32}, height: 32, etc.)
|
|
269
|
+
if (containerOnly && /height[=:]\s*[{"]?\d+[}"]?/.test(line) && !line.includes("minHeight")) {
|
|
270
|
+
// Only skip if it looks like a component prop, not a style object for a container
|
|
271
|
+
if (line.includes("variant=") || line.includes("width=")) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// Extract Tailwind height classes with breakpoint prefixes
|
|
276
|
+
// Only match min-h-* for containers (h-* is usually for specific elements)
|
|
277
|
+
for (const bp of BREAKPOINTS) {
|
|
278
|
+
const prefix = bp === "base" ? "" : `${bp}:`;
|
|
279
|
+
// Match min-h-{number} or min-h-[{number}px] patterns
|
|
280
|
+
// Note: \b doesn't work well with [ so we use a simpler pattern
|
|
281
|
+
const regex = new RegExp(bp === "base" ? `(?<![a-z]:)min-h-(\\d+|\\[\\d+px\\])` : `${bp}:min-h-(\\d+|\\[\\d+px\\])`, "g");
|
|
282
|
+
let match;
|
|
283
|
+
while ((match = regex.exec(line)) !== null) {
|
|
284
|
+
const twValue = match[1].replace(/[\[\]px]/g, "");
|
|
285
|
+
const pixels = TAILWIND_SPACING[twValue] ?? parseInt(twValue);
|
|
286
|
+
if (pixels && pixels >= 20) {
|
|
287
|
+
heights.push({
|
|
288
|
+
value: pixels,
|
|
289
|
+
source: bp === "base" ? `min-h-${twValue}` : `${bp}:min-h-${twValue}`,
|
|
290
|
+
line: index + 1,
|
|
291
|
+
breakpoint: bp,
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// Extract inline minHeight styles (for container divs, not skeleton props)
|
|
297
|
+
// Only if it's in a style object context
|
|
298
|
+
if (line.includes("minHeight") && line.includes("style")) {
|
|
299
|
+
const inlineHeightMatch = line.match(/minHeight:\s*["']?(\d+)(?:px)?["']?/);
|
|
300
|
+
if (inlineHeightMatch) {
|
|
301
|
+
const pixels = parseInt(inlineHeightMatch[1]);
|
|
302
|
+
if (pixels >= 20) {
|
|
303
|
+
heights.push({
|
|
304
|
+
value: pixels,
|
|
305
|
+
source: `minHeight: ${pixels}px`,
|
|
306
|
+
line: index + 1,
|
|
307
|
+
breakpoint: "base",
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
return heights;
|
|
314
|
+
}
|
|
315
|
+
function extractGrids(content) {
|
|
316
|
+
const grids = [];
|
|
317
|
+
const lines = content.split("\n");
|
|
318
|
+
lines.forEach((line, index) => {
|
|
319
|
+
for (const bp of BREAKPOINTS) {
|
|
320
|
+
const prefix = bp === "base" ? "" : `${bp}:`;
|
|
321
|
+
const regex = new RegExp(`${prefix.replace(":", "\\:")}grid-cols-(\\d+)`, "g");
|
|
322
|
+
let match;
|
|
323
|
+
while ((match = regex.exec(line)) !== null) {
|
|
324
|
+
grids.push({
|
|
325
|
+
columns: parseInt(match[1]),
|
|
326
|
+
breakpoint: bp,
|
|
327
|
+
line: index + 1,
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
return grids;
|
|
333
|
+
}
|
|
334
|
+
function countSkeletonElements(content) {
|
|
335
|
+
const skeletonMatches = content.match(/<UnifiedSkeleton|<Skeleton/g);
|
|
336
|
+
return skeletonMatches?.length ?? 0;
|
|
337
|
+
}
|
|
338
|
+
function extractMirrorsComment(content) {
|
|
339
|
+
const mirrorsMatch = content.match(/(?:mirrors?|matches?|same as|dimensions of)\s+([A-Z][a-zA-Z]+)/i);
|
|
340
|
+
return mirrorsMatch?.[1];
|
|
341
|
+
}
|
|
342
|
+
function hasDocumentation(content) {
|
|
343
|
+
return /Heights:|Matches|mirrors|dimensions of|same as|Total:.*px/i.test(content);
|
|
344
|
+
}
|
|
345
|
+
function calculateTotalHeightByBreakpoint(heights) {
|
|
346
|
+
const totals = {};
|
|
347
|
+
for (const bp of BREAKPOINTS) {
|
|
348
|
+
const bpHeights = heights.filter((h) => h.breakpoint === bp);
|
|
349
|
+
if (bpHeights.length > 0) {
|
|
350
|
+
totals[bp] = bpHeights.reduce((sum, h) => sum + h.value, 0);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
// Inherit from smaller breakpoints if not defined
|
|
354
|
+
let lastValue = totals["base"] ?? 0;
|
|
355
|
+
for (const bp of BREAKPOINTS) {
|
|
356
|
+
if (totals[bp] === undefined && lastValue > 0) {
|
|
357
|
+
totals[bp] = lastValue;
|
|
358
|
+
}
|
|
359
|
+
else if (totals[bp] !== undefined) {
|
|
360
|
+
lastValue = totals[bp];
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return totals;
|
|
364
|
+
}
|
|
365
|
+
// ANALYSIS FUNCTIONS
|
|
366
|
+
function analyzeSkeletonFile(filePath) {
|
|
367
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
368
|
+
const heights = extractHeights(content, true); // containerOnly = true
|
|
369
|
+
const grids = extractGrids(content);
|
|
370
|
+
return {
|
|
371
|
+
file: filePath,
|
|
372
|
+
heights,
|
|
373
|
+
grids,
|
|
374
|
+
skeletonCount: countSkeletonElements(content),
|
|
375
|
+
hasDocumentation: hasDocumentation(content),
|
|
376
|
+
mirrorsComponent: extractMirrorsComment(content),
|
|
377
|
+
totalHeightByBreakpoint: calculateTotalHeightByBreakpoint(heights),
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function analyzeComponentFile(filePath) {
|
|
381
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
382
|
+
const heights = extractHeights(content, true); // containerOnly = true
|
|
383
|
+
const grids = extractGrids(content);
|
|
384
|
+
// Extract common element patterns
|
|
385
|
+
const elementPatterns = [];
|
|
386
|
+
if (content.includes("map("))
|
|
387
|
+
elementPatterns.push("mapped-list");
|
|
388
|
+
if (content.includes("grid"))
|
|
389
|
+
elementPatterns.push("grid-layout");
|
|
390
|
+
if (content.includes("flex"))
|
|
391
|
+
elementPatterns.push("flex-layout");
|
|
392
|
+
return {
|
|
393
|
+
file: filePath,
|
|
394
|
+
heights,
|
|
395
|
+
grids,
|
|
396
|
+
elementPatterns,
|
|
397
|
+
totalHeightByBreakpoint: calculateTotalHeightByBreakpoint(heights),
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
// VALIDATION FUNCTIONS
|
|
401
|
+
async function validateKnownMappings() {
|
|
402
|
+
const issues = [];
|
|
403
|
+
for (const mapping of KNOWN_MAPPINGS) {
|
|
404
|
+
if (!fs.existsSync(mapping.skeleton))
|
|
405
|
+
continue;
|
|
406
|
+
const skeleton = analyzeSkeletonFile(mapping.skeleton);
|
|
407
|
+
const baseHeight = skeleton.totalHeightByBreakpoint["base"] ?? 0;
|
|
408
|
+
if (baseHeight < mapping.expectedHeight.min) {
|
|
409
|
+
issues.push({
|
|
410
|
+
file: mapping.skeleton,
|
|
411
|
+
line: skeleton.heights[0]?.line ?? 1,
|
|
412
|
+
severity: "error",
|
|
413
|
+
category: "HEIGHT_MISMATCH",
|
|
414
|
+
message: `${mapping.name} skeleton is too small (${baseHeight}px)`,
|
|
415
|
+
suggestion: `Increase container heights to ${mapping.expectedHeight.min}-${mapping.expectedHeight.max}px to match ${mapping.name}`,
|
|
416
|
+
details: {
|
|
417
|
+
actual: baseHeight,
|
|
418
|
+
expectedMin: mapping.expectedHeight.min,
|
|
419
|
+
expectedMax: mapping.expectedHeight.max,
|
|
420
|
+
},
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
else if (baseHeight > mapping.expectedHeight.max * 1.5) {
|
|
424
|
+
issues.push({
|
|
425
|
+
file: mapping.skeleton,
|
|
426
|
+
line: skeleton.heights[0]?.line ?? 1,
|
|
427
|
+
severity: "warning",
|
|
428
|
+
category: "HEIGHT_MISMATCH",
|
|
429
|
+
message: `${mapping.name} skeleton may be too large (${baseHeight}px)`,
|
|
430
|
+
suggestion: `Verify heights match ${mapping.name}. Oversized skeletons cause content to jump up.`,
|
|
431
|
+
details: {
|
|
432
|
+
actual: baseHeight,
|
|
433
|
+
expectedMin: mapping.expectedHeight.min,
|
|
434
|
+
expectedMax: mapping.expectedHeight.max,
|
|
435
|
+
},
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return issues;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Validates that skeleton structure matches the actual component structure.
|
|
443
|
+
* This catches drift where the skeleton shows different elements than what actually renders.
|
|
444
|
+
*/
|
|
445
|
+
async function validateStructuralMappings() {
|
|
446
|
+
const issues = [];
|
|
447
|
+
for (const mapping of STRUCTURAL_MAPPINGS) {
|
|
448
|
+
if (!fs.existsSync(mapping.skeleton) || !fs.existsSync(mapping.component)) {
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
const skeletonContent = fs.readFileSync(mapping.skeleton, "utf8");
|
|
452
|
+
const componentContent = fs.readFileSync(mapping.component, "utf8");
|
|
453
|
+
for (const element of mapping.expectedElements) {
|
|
454
|
+
const componentHasElement = element.componentPattern.test(componentContent);
|
|
455
|
+
const skeletonHasElement = element.skeletonPattern.test(skeletonContent);
|
|
456
|
+
// Component has element but skeleton doesn't - skeleton is missing placeholder
|
|
457
|
+
if (componentHasElement && !skeletonHasElement) {
|
|
458
|
+
issues.push({
|
|
459
|
+
file: mapping.skeleton,
|
|
460
|
+
line: 1,
|
|
461
|
+
severity: element.severity,
|
|
462
|
+
category: "STRUCTURE_DRIFT",
|
|
463
|
+
message: `${mapping.name} missing placeholder for: ${element.description}`,
|
|
464
|
+
suggestion: `Add skeleton placeholder for ${element.description} to match ${path.basename(mapping.component)}`,
|
|
465
|
+
details: {
|
|
466
|
+
element: element.description,
|
|
467
|
+
breakpoint: element.breakpoint ?? "base",
|
|
468
|
+
},
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
// Skeleton has element but component doesn't - skeleton has stale placeholder
|
|
472
|
+
if (skeletonHasElement && !componentHasElement) {
|
|
473
|
+
issues.push({
|
|
474
|
+
file: mapping.skeleton,
|
|
475
|
+
line: 1,
|
|
476
|
+
severity: "info",
|
|
477
|
+
category: "STRUCTURE_DRIFT",
|
|
478
|
+
message: `${mapping.name} has placeholder for removed element: ${element.description}`,
|
|
479
|
+
suggestion: `Remove skeleton placeholder for ${element.description} - no longer in ${path.basename(mapping.component)}`,
|
|
480
|
+
details: {
|
|
481
|
+
element: element.description,
|
|
482
|
+
breakpoint: element.breakpoint ?? "base",
|
|
483
|
+
},
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
// Count skeleton elements vs component interactive elements
|
|
488
|
+
// Only run this check for header-related mappings (not breadcrumbs, etc.)
|
|
489
|
+
const isHeaderMapping = mapping.name.toLowerCase().includes("header") &&
|
|
490
|
+
!mapping.name.toLowerCase().includes("breadcrumb");
|
|
491
|
+
if (isHeaderMapping) {
|
|
492
|
+
const skeletonCircularCount = (skeletonContent.match(/variant="circular"/g) || []).length;
|
|
493
|
+
const componentButtonCount = (componentContent.match(/<HeaderIconButton|<UserMenu|<NotificationsBell|<WishlistDrawer|<CartDrawer|<SellButton/g) || []).length;
|
|
494
|
+
// Allow some variance (skeleton might show fewer on mobile)
|
|
495
|
+
if (Math.abs(skeletonCircularCount - componentButtonCount) > 3) {
|
|
496
|
+
issues.push({
|
|
497
|
+
file: mapping.skeleton,
|
|
498
|
+
line: 1,
|
|
499
|
+
severity: "warning",
|
|
500
|
+
category: "ELEMENT_COUNT_DRIFT",
|
|
501
|
+
message: `${mapping.name} has ${skeletonCircularCount} circular skeletons but component has ~${componentButtonCount} action buttons`,
|
|
502
|
+
suggestion: "Review skeleton to ensure action button placeholders match actual component",
|
|
503
|
+
details: {
|
|
504
|
+
skeletonCount: skeletonCircularCount,
|
|
505
|
+
componentCount: componentButtonCount,
|
|
506
|
+
},
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
return issues;
|
|
512
|
+
}
|
|
513
|
+
async function validateAutoDiscoveredPairs() {
|
|
514
|
+
const issues = [];
|
|
515
|
+
// Find skeleton files and try to match them to components
|
|
516
|
+
const skeletonFiles = await file_cache_1.fileCache.getFiles("components/**/*[Ss]keleton*.tsx", {
|
|
517
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
518
|
+
});
|
|
519
|
+
for (const skeletonFile of skeletonFiles) {
|
|
520
|
+
const skeleton = analyzeSkeletonFile(skeletonFile);
|
|
521
|
+
// Try to find matching component by name
|
|
522
|
+
const baseName = path
|
|
523
|
+
.basename(skeletonFile)
|
|
524
|
+
.replace(/Skeleton/gi, "")
|
|
525
|
+
.replace(/Loading/gi, "")
|
|
526
|
+
.replace(".tsx", "");
|
|
527
|
+
if (!baseName || baseName.length < 3)
|
|
528
|
+
continue;
|
|
529
|
+
// Look for component with similar name
|
|
530
|
+
const possibleComponents = await (0, glob_1.glob)(`components/**/${baseName}*.tsx`, {
|
|
531
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
532
|
+
});
|
|
533
|
+
const componentFile = possibleComponents.find((f) => !f.includes("Skeleton") && !f.includes("Loading"));
|
|
534
|
+
if (componentFile && fs.existsSync(componentFile)) {
|
|
535
|
+
const component = analyzeComponentFile(componentFile);
|
|
536
|
+
// Compare grid columns
|
|
537
|
+
for (const bp of BREAKPOINTS) {
|
|
538
|
+
const skeletonGrid = skeleton.grids.find((g) => g.breakpoint === bp);
|
|
539
|
+
const componentGrid = component.grids.find((g) => g.breakpoint === bp);
|
|
540
|
+
if (skeletonGrid && componentGrid && skeletonGrid.columns !== componentGrid.columns) {
|
|
541
|
+
issues.push({
|
|
542
|
+
file: skeletonFile,
|
|
543
|
+
line: skeletonGrid.line,
|
|
544
|
+
severity: "warning",
|
|
545
|
+
category: "GRID_MISMATCH",
|
|
546
|
+
message: `Grid columns mismatch at ${bp} breakpoint`,
|
|
547
|
+
suggestion: `Skeleton has ${skeletonGrid.columns} columns but component has ${componentGrid.columns}`,
|
|
548
|
+
details: {
|
|
549
|
+
breakpoint: bp,
|
|
550
|
+
skeletonCols: skeletonGrid.columns,
|
|
551
|
+
componentCols: componentGrid.columns,
|
|
552
|
+
},
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
return issues;
|
|
559
|
+
}
|
|
560
|
+
async function validateLoadingFiles() {
|
|
561
|
+
const issues = [];
|
|
562
|
+
const loadingFiles = await file_cache_1.fileCache.getFiles("app/**/loading.tsx", { ignore: [...glob_patterns_1.STANDARD_EXCLUDES] });
|
|
563
|
+
for (const loadingFile of loadingFiles) {
|
|
564
|
+
const loadingContent = fs.readFileSync(loadingFile, "utf8");
|
|
565
|
+
const dir = path.dirname(loadingFile);
|
|
566
|
+
const pageFile = path.join(dir, "page.tsx");
|
|
567
|
+
// Check HeaderSkeleton usage
|
|
568
|
+
if (loadingContent.includes("HeaderSkeleton")) {
|
|
569
|
+
const hasHeaderProvider = await checkHeaderProvider(dir);
|
|
570
|
+
if (!hasHeaderProvider) {
|
|
571
|
+
issues.push({
|
|
572
|
+
file: loadingFile,
|
|
573
|
+
line: 1,
|
|
574
|
+
severity: "warning",
|
|
575
|
+
category: "STRUCTURE_MISMATCH",
|
|
576
|
+
message: "HeaderSkeleton used but no header found in page hierarchy",
|
|
577
|
+
suggestion: "Remove HeaderSkeleton or add header to layout/page",
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
// Check BreadcrumbSkeleton usage
|
|
582
|
+
if (loadingContent.includes("BreadcrumbSkeleton")) {
|
|
583
|
+
const hasBreadcrumbs = await checkBreadcrumbProvider(dir);
|
|
584
|
+
if (!hasBreadcrumbs) {
|
|
585
|
+
issues.push({
|
|
586
|
+
file: loadingFile,
|
|
587
|
+
line: 1,
|
|
588
|
+
severity: "info",
|
|
589
|
+
category: "STRUCTURE_MISMATCH",
|
|
590
|
+
message: "BreadcrumbSkeleton used but no breadcrumbs found in page hierarchy",
|
|
591
|
+
suggestion: "Verify page renders UnifiedBreadcrumbs or remove BreadcrumbSkeleton",
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
// Compare loading.tsx structure with page.tsx
|
|
596
|
+
if (fs.existsSync(pageFile)) {
|
|
597
|
+
const pageContent = fs.readFileSync(pageFile, "utf8");
|
|
598
|
+
// Check grid consistency
|
|
599
|
+
const loadingGrids = extractGrids(loadingContent);
|
|
600
|
+
const pageGrids = extractGrids(pageContent);
|
|
601
|
+
// Find the client component if page delegates to one
|
|
602
|
+
const clientMatch = pageContent.match(/import\s*{\s*(\w+Client)\s*}/);
|
|
603
|
+
if (clientMatch) {
|
|
604
|
+
const clientName = clientMatch[1];
|
|
605
|
+
const clientFiles = await (0, glob_1.glob)(`${dir}/${clientName}.tsx`, {
|
|
606
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
607
|
+
});
|
|
608
|
+
if (clientFiles.length > 0) {
|
|
609
|
+
const clientContent = fs.readFileSync(clientFiles[0], "utf8");
|
|
610
|
+
const clientGrids = extractGrids(clientContent);
|
|
611
|
+
pageGrids.push(...clientGrids);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
// Compare base grid columns
|
|
615
|
+
const loadingBaseCols = loadingGrids.find((g) => g.breakpoint === "base")?.columns;
|
|
616
|
+
const pageBaseCols = pageGrids.find((g) => g.breakpoint === "base")?.columns;
|
|
617
|
+
if (loadingBaseCols && pageBaseCols && loadingBaseCols !== pageBaseCols) {
|
|
618
|
+
issues.push({
|
|
619
|
+
file: loadingFile,
|
|
620
|
+
line: loadingGrids[0]?.line ?? 1,
|
|
621
|
+
severity: "warning",
|
|
622
|
+
category: "GRID_MISMATCH",
|
|
623
|
+
message: `Loading skeleton grid (${loadingBaseCols} cols) doesn't match page grid (${pageBaseCols} cols)`,
|
|
624
|
+
suggestion: "Align grid-cols-X classes between loading.tsx and page component",
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
// Check for mapped list count mismatches
|
|
628
|
+
const loadingArrayLength = loadingContent.match(/\[([^\]]+)\]\.map/g)?.map((m) => {
|
|
629
|
+
const nums = m.match(/\d+/g);
|
|
630
|
+
return nums ? nums.length : 0;
|
|
631
|
+
}) ?? [];
|
|
632
|
+
// Warn if skeleton shows significantly different item count
|
|
633
|
+
const maxSkeletonItems = Math.max(...loadingArrayLength, 0);
|
|
634
|
+
if (maxSkeletonItems > 0 && maxSkeletonItems < 3) {
|
|
635
|
+
issues.push({
|
|
636
|
+
file: loadingFile,
|
|
637
|
+
line: 1,
|
|
638
|
+
severity: "info",
|
|
639
|
+
category: "ITEM_COUNT",
|
|
640
|
+
message: `Skeleton shows only ${maxSkeletonItems} placeholder items`,
|
|
641
|
+
suggestion: "Consider showing 3-6 skeleton items for better perceived loading",
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
// Check for Footer consistency
|
|
645
|
+
const loadingHasFooter = loadingContent.includes("Footer") || loadingContent.includes("footer");
|
|
646
|
+
const pageHasFooter = pageContent.includes("<Footer") || pageContent.includes("Footer />");
|
|
647
|
+
if (pageHasFooter && !loadingHasFooter) {
|
|
648
|
+
issues.push({
|
|
649
|
+
file: loadingFile,
|
|
650
|
+
line: 1,
|
|
651
|
+
severity: "info",
|
|
652
|
+
category: "STRUCTURE_MISMATCH",
|
|
653
|
+
message: "Page has Footer but loading skeleton does not",
|
|
654
|
+
suggestion: "Consider adding Footer to loading.tsx for consistent page height",
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return issues;
|
|
660
|
+
}
|
|
661
|
+
async function checkHeaderProvider(dir) {
|
|
662
|
+
let currentDir = dir;
|
|
663
|
+
while (currentDir.includes("app")) {
|
|
664
|
+
for (const file of ["layout.tsx", "page.tsx"]) {
|
|
665
|
+
const filePath = path.join(currentDir, file);
|
|
666
|
+
if (fs.existsSync(filePath)) {
|
|
667
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
668
|
+
if (content.includes("UnifiedHeader") ||
|
|
669
|
+
content.includes("AppHeader") ||
|
|
670
|
+
LAYOUTS_WITH_HEADER.some((l) => content.includes(l))) {
|
|
671
|
+
return true;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
const parentDir = path.dirname(currentDir);
|
|
676
|
+
if (parentDir === currentDir)
|
|
677
|
+
break;
|
|
678
|
+
currentDir = parentDir;
|
|
679
|
+
}
|
|
680
|
+
return false;
|
|
681
|
+
}
|
|
682
|
+
async function checkBreadcrumbProvider(dir) {
|
|
683
|
+
let currentDir = dir;
|
|
684
|
+
// Layout components that include breadcrumbs by default
|
|
685
|
+
const LAYOUTS_WITH_BREADCRUMBS = [
|
|
686
|
+
"DashboardPageLayout",
|
|
687
|
+
"StandardPageLayout",
|
|
688
|
+
"ContentLayout",
|
|
689
|
+
"SellerPageLayout",
|
|
690
|
+
"AccountPageLayout",
|
|
691
|
+
"AdminPageLayout",
|
|
692
|
+
];
|
|
693
|
+
// Helper to check if content uses breadcrumb-providing layouts
|
|
694
|
+
const contentHasBreadcrumbs = (content) => {
|
|
695
|
+
return (content.includes("UnifiedBreadcrumbs") ||
|
|
696
|
+
content.includes("Breadcrumb") ||
|
|
697
|
+
LAYOUTS_WITH_BREADCRUMBS.some((l) => content.includes(l)));
|
|
698
|
+
};
|
|
699
|
+
// Helper to check client component files referenced in a page
|
|
700
|
+
const checkClientComponents = async (pageContent, pageDir) => {
|
|
701
|
+
// Match imports from relative paths like:
|
|
702
|
+
// import { DashboardPageClient } from "./DashboardPageClient"
|
|
703
|
+
// import SomeClient from "./SomeClient"
|
|
704
|
+
const importMatches = [...pageContent.matchAll(/from\s+["']\.\/([^"']+)["']/g)];
|
|
705
|
+
for (const match of importMatches) {
|
|
706
|
+
const importPath = match[1];
|
|
707
|
+
// Check if this looks like a client component (contains Client or Page)
|
|
708
|
+
if (importPath.includes("Client") || importPath.includes("Page")) {
|
|
709
|
+
// Normalize path separators for cross-platform compatibility
|
|
710
|
+
const normalizedDir = pageDir.replace(/\\/g, "/");
|
|
711
|
+
const clientFilePath = `${normalizedDir}/${importPath}.tsx`;
|
|
712
|
+
if (fs.existsSync(clientFilePath)) {
|
|
713
|
+
const clientContent = fs.readFileSync(clientFilePath, "utf8");
|
|
714
|
+
if (contentHasBreadcrumbs(clientContent)) {
|
|
715
|
+
return true;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return false;
|
|
721
|
+
};
|
|
722
|
+
while (currentDir.includes("app")) {
|
|
723
|
+
for (const file of ["layout.tsx", "page.tsx"]) {
|
|
724
|
+
const filePath = path.join(currentDir, file);
|
|
725
|
+
if (fs.existsSync(filePath)) {
|
|
726
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
727
|
+
if (contentHasBreadcrumbs(content)) {
|
|
728
|
+
return true;
|
|
729
|
+
}
|
|
730
|
+
// Also check client components imported by this page
|
|
731
|
+
if (file === "page.tsx" && (await checkClientComponents(content, currentDir))) {
|
|
732
|
+
return true;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
const parentDir = path.dirname(currentDir);
|
|
737
|
+
if (parentDir === currentDir)
|
|
738
|
+
break;
|
|
739
|
+
currentDir = parentDir;
|
|
740
|
+
}
|
|
741
|
+
// Also check ALL child pages in the original directory tree
|
|
742
|
+
// This catches cases where loading.tsx is at /store but pages are at /store/dashboard, etc.
|
|
743
|
+
try {
|
|
744
|
+
// Normalize dir to use forward slashes for glob
|
|
745
|
+
const normalizedDir = dir.replace(/\\/g, "/");
|
|
746
|
+
const childPages = await (0, glob_1.glob)(`${normalizedDir}/**/page.tsx`, {
|
|
747
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
748
|
+
});
|
|
749
|
+
for (const childPage of childPages) {
|
|
750
|
+
const content = fs.readFileSync(childPage, "utf8");
|
|
751
|
+
if (contentHasBreadcrumbs(content)) {
|
|
752
|
+
return true;
|
|
753
|
+
}
|
|
754
|
+
// Check client components imported by child pages
|
|
755
|
+
const childDir = path.dirname(childPage);
|
|
756
|
+
if (await checkClientComponents(content, childDir)) {
|
|
757
|
+
return true;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
catch {
|
|
762
|
+
// Ignore glob errors
|
|
763
|
+
}
|
|
764
|
+
return false;
|
|
765
|
+
}
|
|
766
|
+
async function validateSkeletonDocumentation() {
|
|
767
|
+
const issues = [];
|
|
768
|
+
const skeletonFiles = await file_cache_1.fileCache.getFiles("components/**/*[Ss]keleton*.tsx", {
|
|
769
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
770
|
+
});
|
|
771
|
+
const sharedSkeletons = await file_cache_1.fileCache.getFiles("components/shared/skeletons/**/*.tsx", {
|
|
772
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
773
|
+
});
|
|
774
|
+
const allSkeletons = [...new Set([...skeletonFiles, ...sharedSkeletons])];
|
|
775
|
+
for (const file of allSkeletons) {
|
|
776
|
+
const skeleton = analyzeSkeletonFile(file);
|
|
777
|
+
// Check documentation
|
|
778
|
+
if (skeleton.heights.length > 0 && !skeleton.hasDocumentation) {
|
|
779
|
+
issues.push({
|
|
780
|
+
file,
|
|
781
|
+
line: 1,
|
|
782
|
+
severity: "info",
|
|
783
|
+
category: "DOCUMENTATION",
|
|
784
|
+
message: "Skeleton lacks height documentation",
|
|
785
|
+
suggestion: "Add JSDoc comment with Heights: section documenting expected dimensions",
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
// Check for responsive consistency
|
|
789
|
+
const breakpointsUsed = new Set(skeleton.heights.map((h) => h.breakpoint));
|
|
790
|
+
if (breakpointsUsed.size > 1) {
|
|
791
|
+
const baseHeight = skeleton.totalHeightByBreakpoint["base"];
|
|
792
|
+
const mdHeight = skeleton.totalHeightByBreakpoint["md"];
|
|
793
|
+
if (baseHeight && mdHeight && Math.abs(baseHeight - mdHeight) > 50) {
|
|
794
|
+
// This is expected for responsive designs, just info
|
|
795
|
+
issues.push({
|
|
796
|
+
file,
|
|
797
|
+
line: 1,
|
|
798
|
+
severity: "info",
|
|
799
|
+
category: "RESPONSIVE",
|
|
800
|
+
message: `Large height difference between mobile (${baseHeight}px) and desktop (${mdHeight}px)`,
|
|
801
|
+
suggestion: "Verify this matches the actual component responsive behavior",
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
return issues;
|
|
807
|
+
}
|
|
808
|
+
async function validateSpacingConsistency() {
|
|
809
|
+
const issues = [];
|
|
810
|
+
const loadingFiles = await file_cache_1.fileCache.getFiles("app/**/loading.tsx", { ignore: [...glob_patterns_1.STANDARD_EXCLUDES] });
|
|
811
|
+
for (const loadingFile of loadingFiles) {
|
|
812
|
+
const content = fs.readFileSync(loadingFile, "utf8");
|
|
813
|
+
const dir = path.dirname(loadingFile);
|
|
814
|
+
const pageFile = path.join(dir, "page.tsx");
|
|
815
|
+
if (!fs.existsSync(pageFile))
|
|
816
|
+
continue;
|
|
817
|
+
const pageContent = fs.readFileSync(pageFile, "utf8");
|
|
818
|
+
// Extract OUTER container spacing (first few lines typically define the main wrapper)
|
|
819
|
+
const loadingLines = content.split("\n").slice(0, 30);
|
|
820
|
+
const pageLines = pageContent.split("\n").slice(0, 50);
|
|
821
|
+
// Look for main container padding patterns
|
|
822
|
+
const loadingOuterPadding = loadingLines
|
|
823
|
+
.join("\n")
|
|
824
|
+
.match(/className="[^"]*\b(px?-\d+)[^"]*"/)?.[1];
|
|
825
|
+
const pageOuterPadding = pageLines.join("\n").match(/className="[^"]*\b(px?-\d+)[^"]*"/)?.[1];
|
|
826
|
+
// Only compare if both have outer padding defined
|
|
827
|
+
if (loadingOuterPadding && pageOuterPadding && loadingOuterPadding !== pageOuterPadding) {
|
|
828
|
+
// Check if they're significantly different
|
|
829
|
+
const loadingVal = TAILWIND_SPACING[loadingOuterPadding.replace(/p[xy]?-/, "")] ?? 0;
|
|
830
|
+
const pageVal = TAILWIND_SPACING[pageOuterPadding.replace(/p[xy]?-/, "")] ?? 0;
|
|
831
|
+
// Only warn if difference is >= 8px (2 spacing units)
|
|
832
|
+
if (Math.abs(loadingVal - pageVal) >= 8) {
|
|
833
|
+
issues.push({
|
|
834
|
+
file: loadingFile,
|
|
835
|
+
line: 1,
|
|
836
|
+
severity: "warning",
|
|
837
|
+
category: "SPACING_MISMATCH",
|
|
838
|
+
message: `Outer container padding mismatch: skeleton uses ${loadingOuterPadding}, page uses ${pageOuterPadding}`,
|
|
839
|
+
suggestion: "Align outer container padding classes to prevent layout shift",
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
// Check max-width consistency
|
|
844
|
+
const loadingMaxW = content.match(/max-w-(\w+)/)?.[1];
|
|
845
|
+
const pageMaxW = pageContent.match(/max-w-(\w+)/)?.[1];
|
|
846
|
+
if (loadingMaxW && pageMaxW && loadingMaxW !== pageMaxW) {
|
|
847
|
+
issues.push({
|
|
848
|
+
file: loadingFile,
|
|
849
|
+
line: 1,
|
|
850
|
+
severity: "warning",
|
|
851
|
+
category: "LAYOUT_MISMATCH",
|
|
852
|
+
message: `Max-width mismatch: skeleton uses max-w-${loadingMaxW}, page uses max-w-${pageMaxW}`,
|
|
853
|
+
suggestion: "Align max-width classes to prevent content width shift",
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
return issues;
|
|
858
|
+
}
|
|
859
|
+
// NEW VALIDATIONS - Design Token & Visual Consistency
|
|
860
|
+
/**
|
|
861
|
+
* Validates that skeleton components use consistent CSS variables/design tokens
|
|
862
|
+
* as their corresponding real components.
|
|
863
|
+
*/
|
|
864
|
+
async function validateDesignTokenConsistency() {
|
|
865
|
+
const issues = [];
|
|
866
|
+
// Find skeleton files that have a clear component pair
|
|
867
|
+
const skeletonFiles = await file_cache_1.fileCache.getFiles("components/**/*[Ss]keleton*.tsx", {
|
|
868
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
869
|
+
});
|
|
870
|
+
for (const skeletonFile of skeletonFiles) {
|
|
871
|
+
const skeletonContent = fs.readFileSync(skeletonFile, "utf8");
|
|
872
|
+
// Extract CSS variables used in skeleton
|
|
873
|
+
const skeletonVars = extractCssVariables(skeletonContent);
|
|
874
|
+
// Try to find matching component
|
|
875
|
+
const baseName = path
|
|
876
|
+
.basename(skeletonFile)
|
|
877
|
+
.replace(/Skeleton/gi, "")
|
|
878
|
+
.replace(/Loading/gi, "")
|
|
879
|
+
.replace(".tsx", "");
|
|
880
|
+
if (!baseName || baseName.length < 3)
|
|
881
|
+
continue;
|
|
882
|
+
const possibleComponents = await (0, glob_1.glob)(`components/**/${baseName}*.tsx`, {
|
|
883
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
884
|
+
});
|
|
885
|
+
const componentFile = possibleComponents.find((f) => !f.includes("Skeleton") && !f.includes("Loading"));
|
|
886
|
+
if (componentFile && fs.existsSync(componentFile)) {
|
|
887
|
+
const componentContent = fs.readFileSync(componentFile, "utf8");
|
|
888
|
+
const componentVars = extractCssVariables(componentContent);
|
|
889
|
+
// Check for background color mismatches on OUTER containers only
|
|
890
|
+
// Look at the first few lines to find the main container background
|
|
891
|
+
const skeletonFirstLines = skeletonContent.split("\n").slice(0, 30).join("\n");
|
|
892
|
+
const componentFirstLines = componentContent.split("\n").slice(0, 50).join("\n");
|
|
893
|
+
const skeletonOuterBg = skeletonFirstLines.match(/bg-\[var\(--bg-(primary|secondary)\)\]|bg-(primary|secondary)/)?.[0];
|
|
894
|
+
const componentOuterBg = componentFirstLines.match(/bg-\[var\(--bg-(primary|secondary)\)\]|bg-(primary|secondary)/)?.[0];
|
|
895
|
+
if (skeletonOuterBg && componentOuterBg && skeletonOuterBg !== componentOuterBg) {
|
|
896
|
+
// Only warn if outer container backgrounds are clearly different
|
|
897
|
+
const skeletonIsPrimary = skeletonOuterBg.includes("primary");
|
|
898
|
+
const componentIsPrimary = componentOuterBg.includes("primary");
|
|
899
|
+
if (skeletonIsPrimary !== componentIsPrimary) {
|
|
900
|
+
issues.push({
|
|
901
|
+
file: skeletonFile,
|
|
902
|
+
line: 1,
|
|
903
|
+
severity: "warning",
|
|
904
|
+
category: "TOKEN_MISMATCH",
|
|
905
|
+
message: `Outer container background mismatch: skeleton uses ${skeletonOuterBg}, component uses ${componentOuterBg}`,
|
|
906
|
+
suggestion: "Align outer container background CSS variables to prevent color flash on load",
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
// Check for border style mismatches - only if skeleton has NO borders at all
|
|
911
|
+
const skeletonBorder = skeletonContent.match(/border-\[var|border-color|borderBottom|border:\s*["']?1px/gi);
|
|
912
|
+
const componentBorder = componentContent.match(/border-\[var|border-color|borderBottom|border:\s*["']?1px/gi);
|
|
913
|
+
// Only flag if component has significant borders (3+) and skeleton has none
|
|
914
|
+
if (componentBorder &&
|
|
915
|
+
componentBorder.length >= 3 &&
|
|
916
|
+
(!skeletonBorder || skeletonBorder.length === 0)) {
|
|
917
|
+
issues.push({
|
|
918
|
+
file: skeletonFile,
|
|
919
|
+
line: 1,
|
|
920
|
+
severity: "info",
|
|
921
|
+
category: "STYLE_MISMATCH",
|
|
922
|
+
message: "Component has borders but skeleton does not",
|
|
923
|
+
suggestion: "Add matching border styles to skeleton for visual consistency",
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
return issues;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Validates that skeleton components have proper accessibility attributes.
|
|
932
|
+
*/
|
|
933
|
+
async function validateSkeletonAccessibility() {
|
|
934
|
+
const issues = [];
|
|
935
|
+
const skeletonFiles = await file_cache_1.fileCache.getFiles("components/**/*[Ss]keleton*.tsx", {
|
|
936
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
937
|
+
});
|
|
938
|
+
const loadingFiles = await file_cache_1.fileCache.getFiles("app/**/loading.tsx", { ignore: [...glob_patterns_1.STANDARD_EXCLUDES] });
|
|
939
|
+
const allFiles = [...new Set([...skeletonFiles, ...loadingFiles])];
|
|
940
|
+
for (const file of allFiles) {
|
|
941
|
+
const content = fs.readFileSync(file, "utf8");
|
|
942
|
+
// Check for aria-label on main container
|
|
943
|
+
const hasAriaLabel = /aria-label=/.test(content);
|
|
944
|
+
const hasAriaLabelledBy = /aria-labelledby=/.test(content);
|
|
945
|
+
const hasRole = /role=["']status["']|role=["']progressbar["']/.test(content);
|
|
946
|
+
// Only check exported skeleton components (not internal helpers)
|
|
947
|
+
const isExportedSkeleton = /export\s+(function|const)\s+\w*[Ss]keleton/.test(content);
|
|
948
|
+
if (isExportedSkeleton && !hasAriaLabel && !hasAriaLabelledBy) {
|
|
949
|
+
issues.push({
|
|
950
|
+
file,
|
|
951
|
+
line: 1,
|
|
952
|
+
severity: "info",
|
|
953
|
+
category: "ACCESSIBILITY",
|
|
954
|
+
message: "Skeleton component lacks aria-label for screen readers",
|
|
955
|
+
suggestion: 'Add aria-label="Loading..." to main container for accessibility',
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
// Check for proper semantic structure in loading files
|
|
959
|
+
if (file.includes("loading.tsx")) {
|
|
960
|
+
const hasSection = /<section/.test(content);
|
|
961
|
+
const hasMain = /<main/.test(content);
|
|
962
|
+
const hasNav = /<nav/.test(content);
|
|
963
|
+
// If the corresponding page uses semantic elements, skeleton should too
|
|
964
|
+
const dir = path.dirname(file);
|
|
965
|
+
const pageFile = path.join(dir, "page.tsx");
|
|
966
|
+
if (fs.existsSync(pageFile)) {
|
|
967
|
+
const pageContent = fs.readFileSync(pageFile, "utf8");
|
|
968
|
+
const pageHasSection = /<section/.test(pageContent);
|
|
969
|
+
if (pageHasSection && !hasSection) {
|
|
970
|
+
issues.push({
|
|
971
|
+
file,
|
|
972
|
+
line: 1,
|
|
973
|
+
severity: "info",
|
|
974
|
+
category: "SEMANTIC_MISMATCH",
|
|
975
|
+
message: "Page uses <section> but loading skeleton does not",
|
|
976
|
+
suggestion: "Use matching semantic HTML elements for consistent structure",
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
return issues;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Validates separator/divider consistency between skeleton and component.
|
|
986
|
+
* Catches issues like "/" vs ChevronRight, "|" vs actual dividers, etc.
|
|
987
|
+
*/
|
|
988
|
+
async function validateSeparatorConsistency() {
|
|
989
|
+
const issues = [];
|
|
990
|
+
// Common separator patterns to check
|
|
991
|
+
const textSeparators = [
|
|
992
|
+
{ pattern: /["']\/["']|>\s*\/\s*</, name: "slash (/)" },
|
|
993
|
+
{ pattern: /["']\|["']|>\s*\|\s*</, name: "pipe (|)" },
|
|
994
|
+
{ pattern: /["']•["']|>\s*•\s*</, name: "bullet (•)" },
|
|
995
|
+
{ pattern: /["']-["']|>\s*-\s*</, name: "dash (-)" },
|
|
996
|
+
];
|
|
997
|
+
const iconSeparators = [
|
|
998
|
+
{ pattern: /<ChevronRight|chevron-right/i, name: "ChevronRight icon" },
|
|
999
|
+
{ pattern: /<ChevronLeft|chevron-left/i, name: "ChevronLeft icon" },
|
|
1000
|
+
{ pattern: /<ArrowRight|arrow-right/i, name: "ArrowRight icon" },
|
|
1001
|
+
];
|
|
1002
|
+
const skeletonFiles = await file_cache_1.fileCache.getFiles("components/**/*[Ss]keleton*.tsx", {
|
|
1003
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
1004
|
+
});
|
|
1005
|
+
for (const skeletonFile of skeletonFiles) {
|
|
1006
|
+
const skeletonContent = fs.readFileSync(skeletonFile, "utf8");
|
|
1007
|
+
// Find matching component
|
|
1008
|
+
const baseName = path
|
|
1009
|
+
.basename(skeletonFile)
|
|
1010
|
+
.replace(/Skeleton/gi, "")
|
|
1011
|
+
.replace(/Loading/gi, "")
|
|
1012
|
+
.replace(".tsx", "");
|
|
1013
|
+
if (!baseName || baseName.length < 3)
|
|
1014
|
+
continue;
|
|
1015
|
+
const possibleComponents = await (0, glob_1.glob)(`components/**/${baseName}*.tsx`, {
|
|
1016
|
+
ignore: [...glob_patterns_1.STANDARD_EXCLUDES],
|
|
1017
|
+
});
|
|
1018
|
+
const componentFile = possibleComponents.find((f) => !f.includes("Skeleton") && !f.includes("Loading"));
|
|
1019
|
+
if (!componentFile || !fs.existsSync(componentFile))
|
|
1020
|
+
continue;
|
|
1021
|
+
const componentContent = fs.readFileSync(componentFile, "utf8");
|
|
1022
|
+
// Check if skeleton uses text separator but component uses icon
|
|
1023
|
+
for (const textSep of textSeparators) {
|
|
1024
|
+
if (textSep.pattern.test(skeletonContent)) {
|
|
1025
|
+
for (const iconSep of iconSeparators) {
|
|
1026
|
+
if (iconSep.pattern.test(componentContent)) {
|
|
1027
|
+
issues.push({
|
|
1028
|
+
file: skeletonFile,
|
|
1029
|
+
line: 1,
|
|
1030
|
+
severity: "warning",
|
|
1031
|
+
category: "SEPARATOR_MISMATCH",
|
|
1032
|
+
message: `Skeleton uses ${textSep.name} but component uses ${iconSep.name}`,
|
|
1033
|
+
suggestion: `Replace text separator with matching icon placeholder or inline SVG`,
|
|
1034
|
+
});
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
// Check if component uses text separator but skeleton uses icon (less common but possible)
|
|
1041
|
+
for (const iconSep of iconSeparators) {
|
|
1042
|
+
if (iconSep.pattern.test(skeletonContent)) {
|
|
1043
|
+
let componentHasMatchingIcon = false;
|
|
1044
|
+
for (const checkIcon of iconSeparators) {
|
|
1045
|
+
if (checkIcon.pattern.test(componentContent)) {
|
|
1046
|
+
componentHasMatchingIcon = true;
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
if (!componentHasMatchingIcon) {
|
|
1051
|
+
// Check if component uses text separator instead
|
|
1052
|
+
for (const textSep of textSeparators) {
|
|
1053
|
+
if (textSep.pattern.test(componentContent)) {
|
|
1054
|
+
issues.push({
|
|
1055
|
+
file: skeletonFile,
|
|
1056
|
+
line: 1,
|
|
1057
|
+
severity: "info",
|
|
1058
|
+
category: "SEPARATOR_MISMATCH",
|
|
1059
|
+
message: `Skeleton uses ${iconSep.name} but component uses ${textSep.name}`,
|
|
1060
|
+
suggestion: "Align separator style with actual component",
|
|
1061
|
+
});
|
|
1062
|
+
break;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
return issues;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Validates that skeleton item counts are reasonable for the component.
|
|
1073
|
+
* Too few items = jarring expansion, too many = jarring contraction.
|
|
1074
|
+
*/
|
|
1075
|
+
async function validateSkeletonItemCounts() {
|
|
1076
|
+
const issues = [];
|
|
1077
|
+
const loadingFiles = await file_cache_1.fileCache.getFiles("app/**/loading.tsx", { ignore: [...glob_patterns_1.STANDARD_EXCLUDES] });
|
|
1078
|
+
for (const loadingFile of loadingFiles) {
|
|
1079
|
+
const content = fs.readFileSync(loadingFile, "utf8");
|
|
1080
|
+
// Extract skeleton item counts from array patterns like [1,2,3].map or Array.from({length: N})
|
|
1081
|
+
const arrayMapMatches = content.match(/\[([^\]]+)\]\.map/g) || [];
|
|
1082
|
+
const arrayFromMatches = content.match(/Array\.from\(\s*\{\s*length:\s*(\d+)\s*\}/g) || [];
|
|
1083
|
+
const countPropMatches = content.match(/count\s*[=:]\s*(\d+)/g) || [];
|
|
1084
|
+
// Extract counts
|
|
1085
|
+
const counts = [];
|
|
1086
|
+
for (const match of arrayMapMatches) {
|
|
1087
|
+
const nums = match.match(/\d+/g);
|
|
1088
|
+
if (nums)
|
|
1089
|
+
counts.push(nums.length);
|
|
1090
|
+
}
|
|
1091
|
+
for (const match of arrayFromMatches) {
|
|
1092
|
+
const num = match.match(/length:\s*(\d+)/)?.[1];
|
|
1093
|
+
if (num)
|
|
1094
|
+
counts.push(parseInt(num));
|
|
1095
|
+
}
|
|
1096
|
+
for (const match of countPropMatches) {
|
|
1097
|
+
const num = match.match(/(\d+)/)?.[1];
|
|
1098
|
+
if (num)
|
|
1099
|
+
counts.push(parseInt(num));
|
|
1100
|
+
}
|
|
1101
|
+
// Check for very low counts (likely to cause expansion)
|
|
1102
|
+
for (const count of counts) {
|
|
1103
|
+
if (count === 1) {
|
|
1104
|
+
issues.push({
|
|
1105
|
+
file: loadingFile,
|
|
1106
|
+
line: 1,
|
|
1107
|
+
severity: "info",
|
|
1108
|
+
category: "ITEM_COUNT",
|
|
1109
|
+
message: "Skeleton shows only 1 placeholder item",
|
|
1110
|
+
suggestion: "Consider showing 3-6 items to better represent typical content",
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
else if (count === 2) {
|
|
1114
|
+
issues.push({
|
|
1115
|
+
file: loadingFile,
|
|
1116
|
+
line: 1,
|
|
1117
|
+
severity: "info",
|
|
1118
|
+
category: "ITEM_COUNT",
|
|
1119
|
+
message: "Skeleton shows only 2 placeholder items",
|
|
1120
|
+
suggestion: "Consider showing 4-8 items for grid layouts",
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
else if (count > 20) {
|
|
1124
|
+
issues.push({
|
|
1125
|
+
file: loadingFile,
|
|
1126
|
+
line: 1,
|
|
1127
|
+
severity: "info",
|
|
1128
|
+
category: "ITEM_COUNT",
|
|
1129
|
+
message: `Skeleton shows ${count} placeholder items (may be excessive)`,
|
|
1130
|
+
suggestion: "Consider showing 8-12 items max to avoid overwhelming skeleton",
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return issues;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Helper to extract CSS variable references from content
|
|
1139
|
+
*/
|
|
1140
|
+
function extractCssVariables(content) {
|
|
1141
|
+
const vars = [];
|
|
1142
|
+
// Match var(--xxx) patterns
|
|
1143
|
+
const varMatches = content.match(/var\(--[a-z-]+\)/gi) || [];
|
|
1144
|
+
vars.push(...varMatches);
|
|
1145
|
+
// Match Tailwind bg-xxx patterns
|
|
1146
|
+
const bgMatches = content.match(/bg-\[var\(--[a-z-]+\)\]|bg-[a-z]+/gi) || [];
|
|
1147
|
+
vars.push(...bgMatches);
|
|
1148
|
+
return vars;
|
|
1149
|
+
}
|
|
1150
|
+
// MAIN
|
|
1151
|
+
async function checkSkeletonSizeConsistency() {
|
|
1152
|
+
const reporter = (0, universal_progress_reporter_1.createUniversalProgressReporter)(exports.name);
|
|
1153
|
+
console.log(`\n${console_chars_1.emoji.search} Running Enhanced Skeleton Size Consistency Check...\n`);
|
|
1154
|
+
const allIssues = [];
|
|
1155
|
+
// Run all validations
|
|
1156
|
+
const [knownMappingIssues, structuralIssues, autoDiscoveredIssues, loadingFileIssues, documentationIssues, spacingIssues,] = await Promise.all([
|
|
1157
|
+
validateKnownMappings(),
|
|
1158
|
+
validateStructuralMappings(),
|
|
1159
|
+
validateAutoDiscoveredPairs(),
|
|
1160
|
+
validateLoadingFiles(),
|
|
1161
|
+
validateSkeletonDocumentation(),
|
|
1162
|
+
validateSpacingConsistency(),
|
|
1163
|
+
]);
|
|
1164
|
+
// Run additional validations (these are newer and can run in parallel)
|
|
1165
|
+
const [designTokenIssues, accessibilityIssues, separatorIssues, itemCountIssues] = await Promise.all([
|
|
1166
|
+
validateDesignTokenConsistency(),
|
|
1167
|
+
validateSkeletonAccessibility(),
|
|
1168
|
+
validateSeparatorConsistency(),
|
|
1169
|
+
validateSkeletonItemCounts(),
|
|
1170
|
+
]);
|
|
1171
|
+
allIssues.push(...knownMappingIssues, ...structuralIssues, ...autoDiscoveredIssues, ...loadingFileIssues, ...documentationIssues, ...spacingIssues, ...designTokenIssues, ...accessibilityIssues, ...separatorIssues, ...itemCountIssues);
|
|
1172
|
+
// Print results
|
|
1173
|
+
const RED = "\x1b[31m";
|
|
1174
|
+
const YELLOW = "\x1b[33m";
|
|
1175
|
+
const BLUE = "\x1b[34m";
|
|
1176
|
+
const GREEN = "\x1b[32m";
|
|
1177
|
+
const DIM = "\x1b[2m";
|
|
1178
|
+
const RESET = "\x1b[0m";
|
|
1179
|
+
const errors = allIssues.filter((i) => i.severity === "error");
|
|
1180
|
+
const warnings = allIssues.filter((i) => i.severity === "warning");
|
|
1181
|
+
const infos = allIssues.filter((i) => i.severity === "info");
|
|
1182
|
+
if (allIssues.length === 0) {
|
|
1183
|
+
console.log(`${GREEN}${console_chars_1.emoji.success} No skeleton consistency issues found!${RESET}\n`);
|
|
1184
|
+
}
|
|
1185
|
+
else {
|
|
1186
|
+
// Group by category
|
|
1187
|
+
const byCategory = new Map();
|
|
1188
|
+
for (const issue of allIssues) {
|
|
1189
|
+
const list = byCategory.get(issue.category) ?? [];
|
|
1190
|
+
list.push(issue);
|
|
1191
|
+
byCategory.set(issue.category, list);
|
|
1192
|
+
}
|
|
1193
|
+
console.log(`Found ${errors.length} errors, ${warnings.length} warnings, ${infos.length} info\n`);
|
|
1194
|
+
if (errors.length > 0) {
|
|
1195
|
+
console.log(`${RED}${console_chars_1.emoji.error} ERRORS:${RESET}\n`);
|
|
1196
|
+
for (const issue of errors) {
|
|
1197
|
+
printIssue(issue, RED);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
if (warnings.length > 0) {
|
|
1201
|
+
console.log(`${YELLOW}${console_chars_1.emoji.warning} WARNINGS:${RESET}\n`);
|
|
1202
|
+
for (const issue of warnings) {
|
|
1203
|
+
printIssue(issue, YELLOW);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
if (infos.length > 0 && process.argv.includes("--verbose")) {
|
|
1207
|
+
console.log(`${BLUE}${console_chars_1.emoji.info} INFO:${RESET}\n`);
|
|
1208
|
+
for (const issue of infos) {
|
|
1209
|
+
printIssue(issue, DIM);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
else if (infos.length > 0) {
|
|
1213
|
+
console.log(`${DIM}(${infos.length} info items - use --verbose to see)${RESET}\n`);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
return {
|
|
1217
|
+
passed: errors.length === 0,
|
|
1218
|
+
issues: allIssues,
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
function printIssue(issue, color) {
|
|
1222
|
+
const RESET = "\x1b[0m";
|
|
1223
|
+
const DIM = "\x1b[2m";
|
|
1224
|
+
const relPath = path.relative(process.cwd(), issue.file).replace(/\\/g, "/");
|
|
1225
|
+
console.log(` ${color}[${issue.category}]${RESET} ${relPath}:${issue.line}`);
|
|
1226
|
+
console.log(` ${issue.message}`);
|
|
1227
|
+
console.log(` ${DIM}Fix: ${issue.suggestion}${RESET}`);
|
|
1228
|
+
if (issue.details) {
|
|
1229
|
+
const detailStr = Object.entries(issue.details)
|
|
1230
|
+
.map(([k, v]) => `${k}=${v}`)
|
|
1231
|
+
.join(", ");
|
|
1232
|
+
console.log(` ${DIM}Details: ${detailStr}${RESET}`);
|
|
1233
|
+
}
|
|
1234
|
+
console.log("");
|
|
1235
|
+
}
|
|
1236
|
+
// Run if executed directly
|
|
1237
|
+
// Export run function for framework compatibility
|
|
1238
|
+
async function run() {
|
|
1239
|
+
const result = await checkSkeletonSizeConsistency();
|
|
1240
|
+
return result.passed;
|
|
1241
|
+
}
|
|
1242
|
+
// Allow direct execution
|
|
1243
|
+
if (require.main === module) {
|
|
1244
|
+
run().then((passed) => {
|
|
1245
|
+
process.exit(passed ? 0 : 1);
|
|
1246
|
+
}).catch((error) => {
|
|
1247
|
+
console.error("Preflight error:", error);
|
|
1248
|
+
process.exit(1);
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
//# sourceMappingURL=skeleton-size-consistency.js.map
|