@od-oneapp/config 2026.2.2001-canary.1
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/CHANGELOG.md +25 -0
- package/README.md +830 -0
- package/eslint/__tests__/config-structure.test.mjs +61 -0
- package/eslint/base.mjs +350 -0
- package/eslint/expo.mjs +97 -0
- package/eslint/next-test.mjs +43 -0
- package/eslint/next.mjs +74 -0
- package/eslint/node.mjs +106 -0
- package/eslint/react.mjs +313 -0
- package/eslint/rules/__tests__/no-used-underscore-vars.test.mjs +147 -0
- package/eslint/rules/no-used-underscore-vars.mjs +297 -0
- package/eslint/shared/__tests__/common-ignores.test.mjs +19 -0
- package/eslint/shared/common-ignores.mjs +172 -0
- package/eslint/shared/disabled-type-aware-rules.mjs +35 -0
- package/eslint/shared/file-patterns.mjs +124 -0
- package/eslint/shared/node-globals.mjs +50 -0
- package/eslint/storybook.mjs +81 -0
- package/eslint/test.mjs +298 -0
- package/eslint/utils/__tests__/create-validated-config.test.mjs +42 -0
- package/eslint/utils/__tests__/filter-ts-eslint-configs.test.mjs +57 -0
- package/eslint/utils/__tests__/validate-config.test.mjs +104 -0
- package/eslint/utils/create-validated-config.mjs +69 -0
- package/eslint/utils/filter-ts-eslint-configs.mjs +129 -0
- package/eslint/utils/validate-config.mjs +88 -0
- package/package.json +37 -0
- package/prettier/index.mjs +15 -0
- package/stylelint/index.mjs +129 -0
- package/tsdown/README.md +287 -0
- package/tsdown/base.mjs +77 -0
- package/tsdown/browser.mjs +34 -0
- package/tsdown/client.mjs +32 -0
- package/tsdown/dist.mjs +179 -0
- package/tsdown/index.mjs +53 -0
- package/tsdown/node.mjs +39 -0
- package/tsdown/react.mjs +30 -0
- package/typescript/base.json +52 -0
- package/typescript/dist/__tests__/browser-stub.test.d.ts +2 -0
- package/typescript/dist/__tests__/browser-stub.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/browser-stub.test.js +40 -0
- package/typescript/dist/__tests__/browser-stub.test.js.map +1 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.d.ts +2 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.js +149 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.js.map +1 -0
- package/typescript/dist/__tests__/server/abort-support.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/abort-support.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/abort-support.test.js +333 -0
- package/typescript/dist/__tests__/server/abort-support.test.js.map +1 -0
- package/typescript/dist/__tests__/server/batch-processor.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/batch-processor.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/batch-processor.test.js +173 -0
- package/typescript/dist/__tests__/server/batch-processor.test.js.map +1 -0
- package/typescript/dist/__tests__/server/cache.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/cache.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/cache.test.js +343 -0
- package/typescript/dist/__tests__/server/cache.test.js.map +1 -0
- package/typescript/dist/__tests__/server/circular-deps.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/circular-deps.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/circular-deps.test.js +412 -0
- package/typescript/dist/__tests__/server/circular-deps.test.js.map +1 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.js +387 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.js.map +1 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.js +430 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.js.map +1 -0
- package/typescript/dist/__tests__/server/code-transformation.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/code-transformation.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/code-transformation.test.js +173 -0
- package/typescript/dist/__tests__/server/code-transformation.test.js.map +1 -0
- package/typescript/dist/__tests__/server/concurrency.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/concurrency.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/concurrency.test.js +31 -0
- package/typescript/dist/__tests__/server/concurrency.test.js.map +1 -0
- package/typescript/dist/__tests__/server/context.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/context.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/context.test.js +483 -0
- package/typescript/dist/__tests__/server/context.test.js.map +1 -0
- package/typescript/dist/__tests__/server/error-handling.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/error-handling.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/error-handling.test.js +68 -0
- package/typescript/dist/__tests__/server/error-handling.test.js.map +1 -0
- package/typescript/dist/__tests__/server/error-utils.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/error-utils.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/error-utils.test.js +268 -0
- package/typescript/dist/__tests__/server/error-utils.test.js.map +1 -0
- package/typescript/dist/__tests__/server/files.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/files.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/files.test.js +160 -0
- package/typescript/dist/__tests__/server/files.test.js.map +1 -0
- package/typescript/dist/__tests__/server/logger.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/logger.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/logger.test.js +412 -0
- package/typescript/dist/__tests__/server/logger.test.js.map +1 -0
- package/typescript/dist/__tests__/server/path-manager.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/path-manager.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/path-manager.test.js +406 -0
- package/typescript/dist/__tests__/server/path-manager.test.js.map +1 -0
- package/typescript/dist/__tests__/server/retry-operations.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/retry-operations.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/retry-operations.test.js +119 -0
- package/typescript/dist/__tests__/server/retry-operations.test.js.map +1 -0
- package/typescript/dist/__tests__/server/retry.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/retry.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/retry.test.js +70 -0
- package/typescript/dist/__tests__/server/retry.test.js.map +1 -0
- package/typescript/dist/__tests__/server/retryable.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/retryable.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/retryable.test.js +23 -0
- package/typescript/dist/__tests__/server/retryable.test.js.map +1 -0
- package/typescript/dist/__tests__/server/scheduler.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/scheduler.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/scheduler.test.js +14 -0
- package/typescript/dist/__tests__/server/scheduler.test.js.map +1 -0
- package/typescript/dist/__tests__/server/security.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/security.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/security.test.js +286 -0
- package/typescript/dist/__tests__/server/security.test.js.map +1 -0
- package/typescript/dist/__tests__/server/session-management.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/session-management.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/session-management.test.js +399 -0
- package/typescript/dist/__tests__/server/session-management.test.js.map +1 -0
- package/typescript/dist/__tests__/server/session-recovery.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/session-recovery.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/session-recovery.test.js +417 -0
- package/typescript/dist/__tests__/server/session-recovery.test.js.map +1 -0
- package/typescript/dist/__tests__/server/session.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/session.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/session.test.js +102 -0
- package/typescript/dist/__tests__/server/session.test.js.map +1 -0
- package/typescript/dist/__tests__/server/simple-tools.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/simple-tools.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/simple-tools.test.js +56 -0
- package/typescript/dist/__tests__/server/simple-tools.test.js.map +1 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.js +338 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.js.map +1 -0
- package/typescript/dist/__tests__/server/streams.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/streams.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/streams.test.js +282 -0
- package/typescript/dist/__tests__/server/streams.test.js.map +1 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.js +152 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.js.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.js +751 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.js.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/structured-clone.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone.test.js +305 -0
- package/typescript/dist/__tests__/server/structured-clone.test.js.map +1 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.js +51 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.js.map +1 -0
- package/typescript/dist/__tests__/server/validation.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/validation.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/validation.test.js +585 -0
- package/typescript/dist/__tests__/server/validation.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/constants.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/constants.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/constants.test.js +11 -0
- package/typescript/dist/__tests__/shared/constants.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/environment.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/environment.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/environment.test.js +279 -0
- package/typescript/dist/__tests__/shared/environment.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/stringify.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/stringify.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/stringify.test.js +171 -0
- package/typescript/dist/__tests__/shared/stringify.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/timeout.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/timeout.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/timeout.test.js +262 -0
- package/typescript/dist/__tests__/shared/timeout.test.js.map +1 -0
- package/typescript/dist/src/App.d.ts +3 -0
- package/typescript/dist/src/App.d.ts.map +1 -0
- package/typescript/dist/src/App.js +27 -0
- package/typescript/dist/src/App.js.map +1 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.d.ts +12 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.js +23 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.js.map +1 -0
- package/typescript/dist/src/components/charts/ComparisonBar.d.ts +11 -0
- package/typescript/dist/src/components/charts/ComparisonBar.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/ComparisonBar.js +34 -0
- package/typescript/dist/src/components/charts/ComparisonBar.js.map +1 -0
- package/typescript/dist/src/components/charts/PercentileGauge.d.ts +10 -0
- package/typescript/dist/src/components/charts/PercentileGauge.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/PercentileGauge.js +68 -0
- package/typescript/dist/src/components/charts/PercentileGauge.js.map +1 -0
- package/typescript/dist/src/components/charts/index.d.ts +4 -0
- package/typescript/dist/src/components/charts/index.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/index.js +4 -0
- package/typescript/dist/src/components/charts/index.js.map +1 -0
- package/typescript/dist/src/components/filters/FilterPanel.d.ts +9 -0
- package/typescript/dist/src/components/filters/FilterPanel.d.ts.map +1 -0
- package/typescript/dist/src/components/filters/FilterPanel.js +42 -0
- package/typescript/dist/src/components/filters/FilterPanel.js.map +1 -0
- package/typescript/dist/src/components/filters/index.d.ts +2 -0
- package/typescript/dist/src/components/filters/index.d.ts.map +1 -0
- package/typescript/dist/src/components/filters/index.js +2 -0
- package/typescript/dist/src/components/filters/index.js.map +1 -0
- package/typescript/dist/src/components/ui/Button.d.ts +8 -0
- package/typescript/dist/src/components/ui/Button.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Button.js +16 -0
- package/typescript/dist/src/components/ui/Button.js.map +1 -0
- package/typescript/dist/src/components/ui/Card.d.ts +14 -0
- package/typescript/dist/src/components/ui/Card.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Card.js +27 -0
- package/typescript/dist/src/components/ui/Card.js.map +1 -0
- package/typescript/dist/src/components/ui/Input.d.ts +9 -0
- package/typescript/dist/src/components/ui/Input.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Input.js +13 -0
- package/typescript/dist/src/components/ui/Input.js.map +1 -0
- package/typescript/dist/src/components/ui/Select.d.ts +14 -0
- package/typescript/dist/src/components/ui/Select.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Select.js +13 -0
- package/typescript/dist/src/components/ui/Select.js.map +1 -0
- package/typescript/dist/src/components/ui/index.d.ts +5 -0
- package/typescript/dist/src/components/ui/index.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/index.js +5 -0
- package/typescript/dist/src/components/ui/index.js.map +1 -0
- package/typescript/dist/src/index.d.ts +4 -0
- package/typescript/dist/src/index.d.ts.map +1 -0
- package/typescript/dist/src/index.js +4 -0
- package/typescript/dist/src/index.js.map +1 -0
- package/typescript/dist/src/layouts/MainLayout.d.ts +2 -0
- package/typescript/dist/src/layouts/MainLayout.d.ts.map +1 -0
- package/typescript/dist/src/layouts/MainLayout.js +45 -0
- package/typescript/dist/src/layouts/MainLayout.js.map +1 -0
- package/typescript/dist/src/lib/api/benchmarks.d.ts +87 -0
- package/typescript/dist/src/lib/api/benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/api/benchmarks.js +274 -0
- package/typescript/dist/src/lib/api/benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/api/index.d.ts +2 -0
- package/typescript/dist/src/lib/api/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/api/index.js +2 -0
- package/typescript/dist/src/lib/api/index.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.d.ts +33 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.js +124 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.d.ts +47 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.js +83 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.d.ts +39 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.js +130 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.d.ts +42 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.js +137 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.d.ts +37 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.js +128 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/index.d.ts +3 -0
- package/typescript/dist/src/lib/mock-data/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/index.js +3 -0
- package/typescript/dist/src/lib/mock-data/index.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.d.ts +59 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.js +127 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.d.ts +51 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.js +111 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.d.ts +32 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.js +151 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.d.ts +39 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.js +97 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.d.ts +42 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.d.ts.map +1 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.js +206 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.js.map +1 -0
- package/typescript/dist/src/lib/transformers/index.d.ts +2 -0
- package/typescript/dist/src/lib/transformers/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/transformers/index.js +2 -0
- package/typescript/dist/src/lib/transformers/index.js.map +1 -0
- package/typescript/dist/src/lib/types/accident.d.ts +46 -0
- package/typescript/dist/src/lib/types/accident.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/accident.js +223 -0
- package/typescript/dist/src/lib/types/accident.js.map +1 -0
- package/typescript/dist/src/lib/types/api-schema.d.ts +476 -0
- package/typescript/dist/src/lib/types/api-schema.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/api-schema.js +2 -0
- package/typescript/dist/src/lib/types/api-schema.js.map +1 -0
- package/typescript/dist/src/lib/types/basic-life.d.ts +30 -0
- package/typescript/dist/src/lib/types/basic-life.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/basic-life.js +137 -0
- package/typescript/dist/src/lib/types/basic-life.js.map +1 -0
- package/typescript/dist/src/lib/types/common.d.ts +99 -0
- package/typescript/dist/src/lib/types/common.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/common.js +29 -0
- package/typescript/dist/src/lib/types/common.js.map +1 -0
- package/typescript/dist/src/lib/types/critical-illness.d.ts +52 -0
- package/typescript/dist/src/lib/types/critical-illness.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/critical-illness.js +254 -0
- package/typescript/dist/src/lib/types/critical-illness.js.map +1 -0
- package/typescript/dist/src/lib/types/dental.d.ts +41 -0
- package/typescript/dist/src/lib/types/dental.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/dental.js +188 -0
- package/typescript/dist/src/lib/types/dental.js.map +1 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.d.ts +41 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.js +191 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.js.map +1 -0
- package/typescript/dist/src/lib/types/index.d.ts +12 -0
- package/typescript/dist/src/lib/types/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/index.js +12 -0
- package/typescript/dist/src/lib/types/index.js.map +1 -0
- package/typescript/dist/src/lib/types/ltd.d.ts +42 -0
- package/typescript/dist/src/lib/types/ltd.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/ltd.js +200 -0
- package/typescript/dist/src/lib/types/ltd.js.map +1 -0
- package/typescript/dist/src/lib/types/std.d.ts +31 -0
- package/typescript/dist/src/lib/types/std.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/std.js +144 -0
- package/typescript/dist/src/lib/types/std.js.map +1 -0
- package/typescript/dist/src/lib/types/vision.d.ts +31 -0
- package/typescript/dist/src/lib/types/vision.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/vision.js +129 -0
- package/typescript/dist/src/lib/types/vision.js.map +1 -0
- package/typescript/dist/src/lib/types/voluntary-life.d.ts +33 -0
- package/typescript/dist/src/lib/types/voluntary-life.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/voluntary-life.js +144 -0
- package/typescript/dist/src/lib/types/voluntary-life.js.map +1 -0
- package/typescript/dist/src/lib/utils/format.d.ts +11 -0
- package/typescript/dist/src/lib/utils/format.d.ts.map +1 -0
- package/typescript/dist/src/lib/utils/format.js +95 -0
- package/typescript/dist/src/lib/utils/format.js.map +1 -0
- package/typescript/dist/src/lib/utils/index.d.ts +2 -0
- package/typescript/dist/src/lib/utils/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/utils/index.js +2 -0
- package/typescript/dist/src/lib/utils/index.js.map +1 -0
- package/typescript/dist/src/main.d.ts +2 -0
- package/typescript/dist/src/main.d.ts.map +1 -0
- package/typescript/dist/src/main.js +20 -0
- package/typescript/dist/src/main.js.map +1 -0
- package/typescript/dist/src/pages/AccidentComparison.d.ts +2 -0
- package/typescript/dist/src/pages/AccidentComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/AccidentComparison.js +56 -0
- package/typescript/dist/src/pages/AccidentComparison.js.map +1 -0
- package/typescript/dist/src/pages/AccidentExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/AccidentExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/AccidentExplorer.js +29 -0
- package/typescript/dist/src/pages/AccidentExplorer.js.map +1 -0
- package/typescript/dist/src/pages/BasicLifeComparison.d.ts +2 -0
- package/typescript/dist/src/pages/BasicLifeComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/BasicLifeComparison.js +59 -0
- package/typescript/dist/src/pages/BasicLifeComparison.js.map +1 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.js +29 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.js.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.d.ts +2 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.js +56 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.js.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.js +29 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.js.map +1 -0
- package/typescript/dist/src/pages/Dashboard.d.ts +2 -0
- package/typescript/dist/src/pages/Dashboard.d.ts.map +1 -0
- package/typescript/dist/src/pages/Dashboard.js +8 -0
- package/typescript/dist/src/pages/Dashboard.js.map +1 -0
- package/typescript/dist/src/pages/DentalComparison.d.ts +2 -0
- package/typescript/dist/src/pages/DentalComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/DentalComparison.js +64 -0
- package/typescript/dist/src/pages/DentalComparison.js.map +1 -0
- package/typescript/dist/src/pages/DentalExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/DentalExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/DentalExplorer.js +29 -0
- package/typescript/dist/src/pages/DentalExplorer.js.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.d.ts +2 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.js +53 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.js.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.js +29 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.js.map +1 -0
- package/typescript/dist/src/pages/LTDComparison.d.ts +2 -0
- package/typescript/dist/src/pages/LTDComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/LTDComparison.js +64 -0
- package/typescript/dist/src/pages/LTDComparison.js.map +1 -0
- package/typescript/dist/src/pages/LTDExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/LTDExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/LTDExplorer.js +29 -0
- package/typescript/dist/src/pages/LTDExplorer.js.map +1 -0
- package/typescript/dist/src/pages/STDComparison.d.ts +2 -0
- package/typescript/dist/src/pages/STDComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/STDComparison.js +58 -0
- package/typescript/dist/src/pages/STDComparison.js.map +1 -0
- package/typescript/dist/src/pages/STDExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/STDExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/STDExplorer.js +29 -0
- package/typescript/dist/src/pages/STDExplorer.js.map +1 -0
- package/typescript/dist/src/pages/VisionComparison.d.ts +2 -0
- package/typescript/dist/src/pages/VisionComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/VisionComparison.js +64 -0
- package/typescript/dist/src/pages/VisionComparison.js.map +1 -0
- package/typescript/dist/src/pages/VisionExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/VisionExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/VisionExplorer.js +29 -0
- package/typescript/dist/src/pages/VisionExplorer.js.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.d.ts +2 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.js +51 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.js.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.js +29 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.js.map +1 -0
- package/typescript/dist/src/runtime/index.d.ts +2 -0
- package/typescript/dist/src/runtime/index.d.ts.map +1 -0
- package/typescript/dist/src/runtime/index.js +2 -0
- package/typescript/dist/src/runtime/index.js.map +1 -0
- package/typescript/dist/src/runtime/lifecycle.d.ts +16 -0
- package/typescript/dist/src/runtime/lifecycle.d.ts.map +1 -0
- package/typescript/dist/src/runtime/lifecycle.js +50 -0
- package/typescript/dist/src/runtime/lifecycle.js.map +1 -0
- package/typescript/dist/src/server/abort-support.d.ts +20 -0
- package/typescript/dist/src/server/abort-support.d.ts.map +1 -0
- package/typescript/dist/src/server/abort-support.js +101 -0
- package/typescript/dist/src/server/abort-support.js.map +1 -0
- package/typescript/dist/src/server/advanced-memory-monitor.d.ts +189 -0
- package/typescript/dist/src/server/advanced-memory-monitor.d.ts.map +1 -0
- package/typescript/dist/src/server/advanced-memory-monitor.js +718 -0
- package/typescript/dist/src/server/advanced-memory-monitor.js.map +1 -0
- package/typescript/dist/src/server/architecture-detector.d.ts +72 -0
- package/typescript/dist/src/server/architecture-detector.d.ts.map +1 -0
- package/typescript/dist/src/server/architecture-detector.js +282 -0
- package/typescript/dist/src/server/architecture-detector.js.map +1 -0
- package/typescript/dist/src/server/batch-processor-tool.d.ts +69 -0
- package/typescript/dist/src/server/batch-processor-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/batch-processor-tool.js +651 -0
- package/typescript/dist/src/server/batch-processor-tool.js.map +1 -0
- package/typescript/dist/src/server/batch-processor.d.ts +73 -0
- package/typescript/dist/src/server/batch-processor.d.ts.map +1 -0
- package/typescript/dist/src/server/batch-processor.js +264 -0
- package/typescript/dist/src/server/batch-processor.js.map +1 -0
- package/typescript/dist/src/server/browser-stub.d.ts +18 -0
- package/typescript/dist/src/server/browser-stub.d.ts.map +1 -0
- package/typescript/dist/src/server/browser-stub.js +21 -0
- package/typescript/dist/src/server/browser-stub.js.map +1 -0
- package/typescript/dist/src/server/cache.d.ts +92 -0
- package/typescript/dist/src/server/cache.d.ts.map +1 -0
- package/typescript/dist/src/server/cache.js +217 -0
- package/typescript/dist/src/server/cache.js.map +1 -0
- package/typescript/dist/src/server/circular-deps.d.ts +85 -0
- package/typescript/dist/src/server/circular-deps.d.ts.map +1 -0
- package/typescript/dist/src/server/circular-deps.js +331 -0
- package/typescript/dist/src/server/circular-deps.js.map +1 -0
- package/typescript/dist/src/server/claude-code-env.d.ts +50 -0
- package/typescript/dist/src/server/claude-code-env.d.ts.map +1 -0
- package/typescript/dist/src/server/claude-code-env.js +116 -0
- package/typescript/dist/src/server/claude-code-env.js.map +1 -0
- package/typescript/dist/src/server/code-analysis-tool.d.ts +79 -0
- package/typescript/dist/src/server/code-analysis-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/code-analysis-tool.js +94 -0
- package/typescript/dist/src/server/code-analysis-tool.js.map +1 -0
- package/typescript/dist/src/server/code-analysis.d.ts +16 -0
- package/typescript/dist/src/server/code-analysis.d.ts.map +1 -0
- package/typescript/dist/src/server/code-analysis.js +462 -0
- package/typescript/dist/src/server/code-analysis.js.map +1 -0
- package/typescript/dist/src/server/code-transformation.d.ts +141 -0
- package/typescript/dist/src/server/code-transformation.d.ts.map +1 -0
- package/typescript/dist/src/server/code-transformation.js +918 -0
- package/typescript/dist/src/server/code-transformation.js.map +1 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.d.ts +77 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.d.ts.map +1 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.js +613 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.js.map +1 -0
- package/typescript/dist/src/server/concurrency.d.ts +5 -0
- package/typescript/dist/src/server/concurrency.d.ts.map +1 -0
- package/typescript/dist/src/server/concurrency.js +20 -0
- package/typescript/dist/src/server/concurrency.js.map +1 -0
- package/typescript/dist/src/server/context-manager.d.ts +97 -0
- package/typescript/dist/src/server/context-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/context-manager.js +410 -0
- package/typescript/dist/src/server/context-manager.js.map +1 -0
- package/typescript/dist/src/server/context-session-manager.d.ts +47 -0
- package/typescript/dist/src/server/context-session-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/context-session-manager.js +594 -0
- package/typescript/dist/src/server/context-session-manager.js.map +1 -0
- package/typescript/dist/src/server/context.d.ts +66 -0
- package/typescript/dist/src/server/context.d.ts.map +1 -0
- package/typescript/dist/src/server/context.js +275 -0
- package/typescript/dist/src/server/context.js.map +1 -0
- package/typescript/dist/src/server/dependency-analyzer.d.ts +100 -0
- package/typescript/dist/src/server/dependency-analyzer.d.ts.map +1 -0
- package/typescript/dist/src/server/dependency-analyzer.js +1117 -0
- package/typescript/dist/src/server/dependency-analyzer.js.map +1 -0
- package/typescript/dist/src/server/error-handling.d.ts +106 -0
- package/typescript/dist/src/server/error-handling.d.ts.map +1 -0
- package/typescript/dist/src/server/error-handling.js +363 -0
- package/typescript/dist/src/server/error-handling.js.map +1 -0
- package/typescript/dist/src/server/file-discovery.d.ts +60 -0
- package/typescript/dist/src/server/file-discovery.d.ts.map +1 -0
- package/typescript/dist/src/server/file-discovery.js +282 -0
- package/typescript/dist/src/server/file-discovery.js.map +1 -0
- package/typescript/dist/src/server/file-streaming.d.ts +152 -0
- package/typescript/dist/src/server/file-streaming.d.ts.map +1 -0
- package/typescript/dist/src/server/file-streaming.js +627 -0
- package/typescript/dist/src/server/file-streaming.js.map +1 -0
- package/typescript/dist/src/server/files.d.ts +100 -0
- package/typescript/dist/src/server/files.d.ts.map +1 -0
- package/typescript/dist/src/server/files.js +609 -0
- package/typescript/dist/src/server/files.js.map +1 -0
- package/typescript/dist/src/server/index.d.ts +54 -0
- package/typescript/dist/src/server/index.d.ts.map +1 -0
- package/typescript/dist/src/server/index.js +54 -0
- package/typescript/dist/src/server/index.js.map +1 -0
- package/typescript/dist/src/server/logger.d.ts +95 -0
- package/typescript/dist/src/server/logger.d.ts.map +1 -0
- package/typescript/dist/src/server/logger.js +271 -0
- package/typescript/dist/src/server/logger.js.map +1 -0
- package/typescript/dist/src/server/memory-aware-cache.d.ts +169 -0
- package/typescript/dist/src/server/memory-aware-cache.d.ts.map +1 -0
- package/typescript/dist/src/server/memory-aware-cache.js +655 -0
- package/typescript/dist/src/server/memory-aware-cache.js.map +1 -0
- package/typescript/dist/src/server/memory-monitor-tool.d.ts +46 -0
- package/typescript/dist/src/server/memory-monitor-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/memory-monitor-tool.js +381 -0
- package/typescript/dist/src/server/memory-monitor-tool.js.map +1 -0
- package/typescript/dist/src/server/memory-monitor.d.ts +79 -0
- package/typescript/dist/src/server/memory-monitor.d.ts.map +1 -0
- package/typescript/dist/src/server/memory-monitor.js +333 -0
- package/typescript/dist/src/server/memory-monitor.js.map +1 -0
- package/typescript/dist/src/server/optimization-engine.d.ts +68 -0
- package/typescript/dist/src/server/optimization-engine.d.ts.map +1 -0
- package/typescript/dist/src/server/optimization-engine.js +728 -0
- package/typescript/dist/src/server/optimization-engine.js.map +1 -0
- package/typescript/dist/src/server/path-manager.d.ts +46 -0
- package/typescript/dist/src/server/path-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/path-manager.js +155 -0
- package/typescript/dist/src/server/path-manager.js.map +1 -0
- package/typescript/dist/src/server/pattern-analyzer.d.ts +69 -0
- package/typescript/dist/src/server/pattern-analyzer.d.ts.map +1 -0
- package/typescript/dist/src/server/pattern-analyzer.js +497 -0
- package/typescript/dist/src/server/pattern-analyzer.js.map +1 -0
- package/typescript/dist/src/server/performance-observer.d.ts +61 -0
- package/typescript/dist/src/server/performance-observer.d.ts.map +1 -0
- package/typescript/dist/src/server/performance-observer.js +394 -0
- package/typescript/dist/src/server/performance-observer.js.map +1 -0
- package/typescript/dist/src/server/performance.d.ts +121 -0
- package/typescript/dist/src/server/performance.d.ts.map +1 -0
- package/typescript/dist/src/server/performance.js +520 -0
- package/typescript/dist/src/server/performance.js.map +1 -0
- package/typescript/dist/src/server/report-generator.d.ts +131 -0
- package/typescript/dist/src/server/report-generator.d.ts.map +1 -0
- package/typescript/dist/src/server/report-generator.js +1158 -0
- package/typescript/dist/src/server/report-generator.js.map +1 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.d.ts +231 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.js +839 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.js.map +1 -0
- package/typescript/dist/src/server/retry-operations.d.ts +59 -0
- package/typescript/dist/src/server/retry-operations.d.ts.map +1 -0
- package/typescript/dist/src/server/retry-operations.js +68 -0
- package/typescript/dist/src/server/retry-operations.js.map +1 -0
- package/typescript/dist/src/server/retry.d.ts +18 -0
- package/typescript/dist/src/server/retry.d.ts.map +1 -0
- package/typescript/dist/src/server/retry.js +44 -0
- package/typescript/dist/src/server/retry.js.map +1 -0
- package/typescript/dist/src/server/retryable.d.ts +2 -0
- package/typescript/dist/src/server/retryable.d.ts.map +1 -0
- package/typescript/dist/src/server/retryable.js +21 -0
- package/typescript/dist/src/server/retryable.js.map +1 -0
- package/typescript/dist/src/server/scheduler.d.ts +4 -0
- package/typescript/dist/src/server/scheduler.d.ts.map +1 -0
- package/typescript/dist/src/server/scheduler.js +21 -0
- package/typescript/dist/src/server/scheduler.js.map +1 -0
- package/typescript/dist/src/server/security-scanner.d.ts +59 -0
- package/typescript/dist/src/server/security-scanner.d.ts.map +1 -0
- package/typescript/dist/src/server/security-scanner.js +915 -0
- package/typescript/dist/src/server/security-scanner.js.map +1 -0
- package/typescript/dist/src/server/security.d.ts +25 -0
- package/typescript/dist/src/server/security.d.ts.map +1 -0
- package/typescript/dist/src/server/security.js +298 -0
- package/typescript/dist/src/server/security.js.map +1 -0
- package/typescript/dist/src/server/session-management.d.ts +103 -0
- package/typescript/dist/src/server/session-management.d.ts.map +1 -0
- package/typescript/dist/src/server/session-management.js +149 -0
- package/typescript/dist/src/server/session-management.js.map +1 -0
- package/typescript/dist/src/server/session-recovery.d.ts +91 -0
- package/typescript/dist/src/server/session-recovery.d.ts.map +1 -0
- package/typescript/dist/src/server/session-recovery.js +384 -0
- package/typescript/dist/src/server/session-recovery.js.map +1 -0
- package/typescript/dist/src/server/session.d.ts +18 -0
- package/typescript/dist/src/server/session.d.ts.map +1 -0
- package/typescript/dist/src/server/session.js +46 -0
- package/typescript/dist/src/server/session.js.map +1 -0
- package/typescript/dist/src/server/simple-tools.d.ts +15 -0
- package/typescript/dist/src/server/simple-tools.d.ts.map +1 -0
- package/typescript/dist/src/server/simple-tools.js +15 -0
- package/typescript/dist/src/server/simple-tools.js.map +1 -0
- package/typescript/dist/src/server/streaming-utilities.d.ts +107 -0
- package/typescript/dist/src/server/streaming-utilities.d.ts.map +1 -0
- package/typescript/dist/src/server/streaming-utilities.js +822 -0
- package/typescript/dist/src/server/streaming-utilities.js.map +1 -0
- package/typescript/dist/src/server/streams.d.ts +48 -0
- package/typescript/dist/src/server/streams.d.ts.map +1 -0
- package/typescript/dist/src/server/streams.js +489 -0
- package/typescript/dist/src/server/streams.js.map +1 -0
- package/typescript/dist/src/server/stringify-advanced.d.ts +31 -0
- package/typescript/dist/src/server/stringify-advanced.d.ts.map +1 -0
- package/typescript/dist/src/server/stringify-advanced.js +183 -0
- package/typescript/dist/src/server/stringify-advanced.js.map +1 -0
- package/typescript/dist/src/server/structured-clone-tool.d.ts +101 -0
- package/typescript/dist/src/server/structured-clone-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/structured-clone-tool.js +450 -0
- package/typescript/dist/src/server/structured-clone-tool.js.map +1 -0
- package/typescript/dist/src/server/structured-clone.d.ts +59 -0
- package/typescript/dist/src/server/structured-clone.d.ts.map +1 -0
- package/typescript/dist/src/server/structured-clone.js +307 -0
- package/typescript/dist/src/server/structured-clone.js.map +1 -0
- package/typescript/dist/src/server/test-runner.d.ts +78 -0
- package/typescript/dist/src/server/test-runner.d.ts.map +1 -0
- package/typescript/dist/src/server/test-runner.js +1024 -0
- package/typescript/dist/src/server/test-runner.js.map +1 -0
- package/typescript/dist/src/server/tool-helpers.d.ts +6 -0
- package/typescript/dist/src/server/tool-helpers.d.ts.map +1 -0
- package/typescript/dist/src/server/tool-helpers.js +27 -0
- package/typescript/dist/src/server/tool-helpers.js.map +1 -0
- package/typescript/dist/src/server/validation.d.ts +79 -0
- package/typescript/dist/src/server/validation.d.ts.map +1 -0
- package/typescript/dist/src/server/validation.js +613 -0
- package/typescript/dist/src/server/validation.js.map +1 -0
- package/typescript/dist/src/server/worker-pool.d.ts +87 -0
- package/typescript/dist/src/server/worker-pool.d.ts.map +1 -0
- package/typescript/dist/src/server/worker-pool.js +586 -0
- package/typescript/dist/src/server/worker-pool.js.map +1 -0
- package/typescript/dist/src/server/worker-threads.d.ts +95 -0
- package/typescript/dist/src/server/worker-threads.d.ts.map +1 -0
- package/typescript/dist/src/server/worker-threads.js +1074 -0
- package/typescript/dist/src/server/worker-threads.js.map +1 -0
- package/typescript/dist/src/server/workflow-orchestrator.d.ts +122 -0
- package/typescript/dist/src/server/workflow-orchestrator.d.ts.map +1 -0
- package/typescript/dist/src/server/workflow-orchestrator.js +2131 -0
- package/typescript/dist/src/server/workflow-orchestrator.js.map +1 -0
- package/typescript/dist/src/server/worktree-manager.d.ts +70 -0
- package/typescript/dist/src/server/worktree-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/worktree-manager.js +741 -0
- package/typescript/dist/src/server/worktree-manager.js.map +1 -0
- package/typescript/dist/src/shared/constants.d.ts +5 -0
- package/typescript/dist/src/shared/constants.d.ts.map +1 -0
- package/typescript/dist/src/shared/constants.js +5 -0
- package/typescript/dist/src/shared/constants.js.map +1 -0
- package/typescript/dist/src/shared/entity-config.d.ts +76 -0
- package/typescript/dist/src/shared/entity-config.d.ts.map +1 -0
- package/typescript/dist/src/shared/entity-config.js +2 -0
- package/typescript/dist/src/shared/entity-config.js.map +1 -0
- package/typescript/dist/src/shared/environment.d.ts +18 -0
- package/typescript/dist/src/shared/environment.d.ts.map +1 -0
- package/typescript/dist/src/shared/environment.js +39 -0
- package/typescript/dist/src/shared/environment.js.map +1 -0
- package/typescript/dist/src/shared/index.d.ts +6 -0
- package/typescript/dist/src/shared/index.d.ts.map +1 -0
- package/typescript/dist/src/shared/index.js +6 -0
- package/typescript/dist/src/shared/index.js.map +1 -0
- package/typescript/dist/src/shared/stringify.d.ts +16 -0
- package/typescript/dist/src/shared/stringify.d.ts.map +1 -0
- package/typescript/dist/src/shared/stringify.js +195 -0
- package/typescript/dist/src/shared/stringify.js.map +1 -0
- package/typescript/dist/src/shared/timeout.d.ts +27 -0
- package/typescript/dist/src/shared/timeout.d.ts.map +1 -0
- package/typescript/dist/src/shared/timeout.js +196 -0
- package/typescript/dist/src/shared/timeout.js.map +1 -0
- package/typescript/dist/src/types/mcp.d.ts +23 -0
- package/typescript/dist/src/types/mcp.d.ts.map +1 -0
- package/typescript/dist/src/types/mcp.js +2 -0
- package/typescript/dist/src/types/mcp.js.map +1 -0
- package/typescript/dist/tsconfig.tsbuildinfo +1 -0
- package/typescript/dist/vite.config.d.ts +3 -0
- package/typescript/dist/vite.config.d.ts.map +1 -0
- package/typescript/dist/vite.config.js +12 -0
- package/typescript/dist/vite.config.js.map +1 -0
- package/typescript/nextjs.json +17 -0
- package/typescript/node.json +10 -0
- package/typescript/react-native.json +8 -0
- package/typescript/react.json +12 -0
package/README.md
ADDED
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
# @od-oneapp/config
|
|
2
|
+
|
|
3
|
+
Shared configuration for ESLint, Stylelint, and Prettier in the OneApp monorepo, optimized for Next.js 16, React 19,
|
|
4
|
+
TypeScript 5, Node.js 22, and Expo.
|
|
5
|
+
|
|
6
|
+
**✨ Latest Optimizations:**
|
|
7
|
+
|
|
8
|
+
- ⚛️ **React 19**: Full support for new hooks (`use`, `useActionState`, `useFormStatus`, `useOptimistic`)
|
|
9
|
+
- 🟢 **Node.js 22**: ES2024 target, native Fetch API, WebSocket, and Web globals
|
|
10
|
+
- 📦 **Single Source of Truth**: Prettier config re-exports from root (zero duplication)
|
|
11
|
+
- 🎨 **Enhanced Stylelint**: Comprehensive CSS rules with Tailwind and CSS Modules support
|
|
12
|
+
- 🔒 **Immutable Configs**: No side effects or mutations in config composition
|
|
13
|
+
- ✅ **All Tests Passing**: 21/21 tests, full type safety, zero lint errors
|
|
14
|
+
|
|
15
|
+
## 📦 Packages
|
|
16
|
+
|
|
17
|
+
This package provides modular configurations organized by type:
|
|
18
|
+
|
|
19
|
+
### ESLint Configurations
|
|
20
|
+
|
|
21
|
+
- **Node** (`@od-oneapp/config/eslint/node`) - Node.js projects
|
|
22
|
+
- **React** (`@od-oneapp/config/eslint/react`) - React 19.2 projects
|
|
23
|
+
- **Next.js** (`@od-oneapp/config/eslint/next`) - Next.js 16 projects (extends React)
|
|
24
|
+
- **Expo** (`@od-oneapp/config/eslint/expo`) - React Native/Expo projects (extends React)
|
|
25
|
+
- **Storybook** (`@od-oneapp/config/eslint/storybook`) - Storybook v10 projects (extends Next.js)
|
|
26
|
+
- **Test** (`@od-oneapp/config/eslint/test`) - Test files for Vitest, Cypress, and Playwright
|
|
27
|
+
|
|
28
|
+
Note: Base config is internal-only and not exported.
|
|
29
|
+
|
|
30
|
+
### Other Configurations
|
|
31
|
+
|
|
32
|
+
- **Stylelint** (`@od-oneapp/config/stylelint`) - CSS linting
|
|
33
|
+
- **Prettier** (`@od-oneapp/config/prettier`) - Code formatting
|
|
34
|
+
|
|
35
|
+
## 🚀 Quick Start
|
|
36
|
+
|
|
37
|
+
### Next.js 16 Projects
|
|
38
|
+
|
|
39
|
+
```javascript
|
|
40
|
+
// eslint.config.mjs
|
|
41
|
+
import nextConfig from "@od-oneapp/config/eslint/next";
|
|
42
|
+
|
|
43
|
+
export default nextConfig;
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### React 19.2 Projects
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
// eslint.config.mjs
|
|
50
|
+
import reactConfig from "@od-oneapp/config/eslint/react";
|
|
51
|
+
|
|
52
|
+
export default reactConfig;
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Expo/React Native Projects
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
// eslint.config.mjs
|
|
59
|
+
import expoConfig from "@od-oneapp/config/eslint/expo";
|
|
60
|
+
|
|
61
|
+
export default expoConfig;
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Node.js / TypeScript Projects
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
// eslint.config.mjs
|
|
68
|
+
import nodeConfig from "@od-oneapp/config/eslint/node";
|
|
69
|
+
|
|
70
|
+
export default nodeConfig;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Storybook v10 Projects (with Next.js)
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
// eslint.config.mjs
|
|
77
|
+
import nextConfig from "@od-oneapp/config/eslint/next";
|
|
78
|
+
import storybookConfig from "@od-oneapp/config/eslint/storybook";
|
|
79
|
+
import testConfig from "@od-oneapp/config/eslint/test";
|
|
80
|
+
|
|
81
|
+
// Merge configs - Storybook extends Next.js
|
|
82
|
+
const config = [...nextConfig, ...storybookConfig, ...testConfig];
|
|
83
|
+
export default config;
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Test Files (Vitest, Cypress, Playwright)
|
|
87
|
+
|
|
88
|
+
The test config automatically applies to test files. Include it alongside your framework config:
|
|
89
|
+
|
|
90
|
+
```javascript
|
|
91
|
+
// eslint.config.mjs
|
|
92
|
+
import nextConfig from "@od-oneapp/config/eslint/next";
|
|
93
|
+
import testConfig from "@od-oneapp/config/eslint/test";
|
|
94
|
+
|
|
95
|
+
const config = [...nextConfig, ...testConfig];
|
|
96
|
+
export default config;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Stylelint
|
|
100
|
+
|
|
101
|
+
```javascript
|
|
102
|
+
// stylelint.config.mjs
|
|
103
|
+
export { default } from '@od-oneapp/config/stylelint';
|
|
104
|
+
|
|
105
|
+
// Or with custom overrides
|
|
106
|
+
import baseConfig from '@od-oneapp/config/stylelint';
|
|
107
|
+
|
|
108
|
+
export default {
|
|
109
|
+
...baseConfig,
|
|
110
|
+
rules: {
|
|
111
|
+
// Your overrides
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Prettier
|
|
117
|
+
|
|
118
|
+
```javascript
|
|
119
|
+
// prettier.config.mjs
|
|
120
|
+
export { default } from '@od-oneapp/config/prettier';
|
|
121
|
+
|
|
122
|
+
// Or with custom overrides
|
|
123
|
+
import baseConfig from '@od-oneapp/config/prettier';
|
|
124
|
+
|
|
125
|
+
export default {
|
|
126
|
+
...baseConfig,
|
|
127
|
+
printWidth: 120, // Your override
|
|
128
|
+
};
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Note:** For `.prettierignore` patterns, use the root `/.prettierignore` file which is kept in sync with
|
|
132
|
+
`eslint/shared/common-ignores.mjs`.
|
|
133
|
+
|
|
134
|
+
## ? Features
|
|
135
|
+
|
|
136
|
+
This configuration package provides **23 ESLint plugins** with comprehensive rules for security, testing, code quality,
|
|
137
|
+
and framework-specific best practices.
|
|
138
|
+
|
|
139
|
+
### React 19.2 Optimizations
|
|
140
|
+
|
|
141
|
+
- React 19.2 version detection
|
|
142
|
+
- Support for new hooks (`use`, `useActionState`, `useFormStatus`, `useOptimistic`)
|
|
143
|
+
- React 19 concurrent features rules
|
|
144
|
+
- JSX optimizations
|
|
145
|
+
|
|
146
|
+
### Next.js 16 Optimizations
|
|
147
|
+
|
|
148
|
+
- Next.js 16 App Router rules
|
|
149
|
+
- Core Web Vitals enforcement
|
|
150
|
+
- Next.js-specific best practices
|
|
151
|
+
- Performance optimizations
|
|
152
|
+
|
|
153
|
+
### Code Quality
|
|
154
|
+
|
|
155
|
+
- **55+ Unicorn rules** - Code quality improvements from ESLint XO
|
|
156
|
+
- **14 strict TypeScript rules** - Enhanced type safety (floating promises, nullish coalescing, optional chaining, etc.)
|
|
157
|
+
- **14 React performance rules** - Fragment optimization, context values, nested components, etc.
|
|
158
|
+
- **JSDoc plugin** - Documentation consistency checks (format and style)
|
|
159
|
+
- **Storybook v10 rules** - Storybook-specific linting rules
|
|
160
|
+
- **Test framework support** - Vitest, Cypress, and Playwright test file linting
|
|
161
|
+
- **Import organization** - Consistent import ordering with React/Next.js prioritization
|
|
162
|
+
- **TypeScript strict mode** - Enhanced type safety
|
|
163
|
+
- **Prettier integration** - No conflicts with Prettier formatting
|
|
164
|
+
- **JavaScript file support** - Lints `.js`, `.jsx`, `.mjs` files (TypeScript `.ts`/`.tsx` preferred)
|
|
165
|
+
|
|
166
|
+
### Security Rules (OWASP)
|
|
167
|
+
|
|
168
|
+
- **Secret detection** - Find hardcoded API keys, tokens, and credentials
|
|
169
|
+
- **Eval protection** - Detect dangerous code execution patterns
|
|
170
|
+
- **Buffer security** - Prevent buffer overflow vulnerabilities
|
|
171
|
+
- **Timing attacks** - Identify timing attack vulnerabilities
|
|
172
|
+
- **Unsafe regex** - Find regex patterns vulnerable to ReDoS attacks
|
|
173
|
+
- **Child process** - Detect unsafe child process usage
|
|
174
|
+
- **Non-literal requires** - Prevent dynamic require() calls
|
|
175
|
+
|
|
176
|
+
### Promise Handling
|
|
177
|
+
|
|
178
|
+
- **Promise returns** - Ensure promises are properly returned or awaited
|
|
179
|
+
- **Consistent patterns** - Enforce standard promise naming conventions
|
|
180
|
+
- **Error handling** - Validate catch-or-return patterns
|
|
181
|
+
- **Avoid callbacks** - Discourage callback usage within promises
|
|
182
|
+
- **Prefer await** - Suggest await over .then() for cleaner code
|
|
183
|
+
|
|
184
|
+
### Testing Enhancements
|
|
185
|
+
|
|
186
|
+
- **Playwright rules** - Browser automation best practices (15+ rules)
|
|
187
|
+
- **Testing Library** - React Testing Library best practices
|
|
188
|
+
- **Jest-DOM matchers** - Encourage better DOM assertion methods
|
|
189
|
+
- **Enhanced Vitest** - Comprehensive test quality rules (35+ rules)
|
|
190
|
+
- **Cypress support** - E2E testing patterns
|
|
191
|
+
|
|
192
|
+
### PNPM Workspace Validation
|
|
193
|
+
|
|
194
|
+
- **Catalog enforcement** - Validate catalog: version references
|
|
195
|
+
- **Workspace settings** - Ensure proper workspace configuration
|
|
196
|
+
- **Unused catalog detection** - Find unused catalog entries
|
|
197
|
+
- **Duplicate detection** - Prevent duplicate catalog items
|
|
198
|
+
|
|
199
|
+
### Import Resolution
|
|
200
|
+
|
|
201
|
+
- TypeScript path aliases supported (`#/*`, `@repo/*`)
|
|
202
|
+
- Monorepo workspace imports resolved
|
|
203
|
+
- Type-aware import validation
|
|
204
|
+
|
|
205
|
+
## ?? Configuration Details
|
|
206
|
+
|
|
207
|
+
### Base Config
|
|
208
|
+
|
|
209
|
+
TypeScript-first configuration with:
|
|
210
|
+
|
|
211
|
+
- Strict TypeScript rules
|
|
212
|
+
- Consistent type imports
|
|
213
|
+
- Unused variable handling (with `_` prefix pattern)
|
|
214
|
+
- **14 additional strict TypeScript rules**
|
|
215
|
+
- **OWASP security rules** - Detect dangerous code patterns
|
|
216
|
+
- **Promise handling** - Ensure proper async/await usage
|
|
217
|
+
- **Unused imports** - Automatic dead code detection
|
|
218
|
+
- **PNPM validation** - Catalog and workspace enforcement
|
|
219
|
+
- **File-specific overrides** - Context-aware linting for configs, scripts, types
|
|
220
|
+
- **Custom underscore rule** - Prevent using `_` prefixed variables
|
|
221
|
+
- **JavaScript file support** - Supports `.js`, `.jsx`, and `.mjs` files. TypeScript (`.ts`/`.tsx`) is preferred for
|
|
222
|
+
type safety.
|
|
223
|
+
|
|
224
|
+
### React Config
|
|
225
|
+
|
|
226
|
+
Extends base and adds:
|
|
227
|
+
|
|
228
|
+
- React 19.2 optimizations
|
|
229
|
+
- React Hooks rules (including React 19 hooks)
|
|
230
|
+
- JSX best practices
|
|
231
|
+
- **14 additional React performance/best practice rules**
|
|
232
|
+
- **55+ Unicorn rules** (code quality)
|
|
233
|
+
- **Accessibility rules** (jsx-a11y)
|
|
234
|
+
- **Regexp optimization** - Improved regex pattern detection
|
|
235
|
+
- **Secret detection** - Find hardcoded credentials in React code
|
|
236
|
+
- Import organization
|
|
237
|
+
- Prettier integration
|
|
238
|
+
- **JavaScript file support** - Supports `.js`, `.jsx`, and `.mjs` files. TypeScript (`.ts`/`.tsx`) is preferred for
|
|
239
|
+
type safety.
|
|
240
|
+
|
|
241
|
+
### Next.js Config
|
|
242
|
+
|
|
243
|
+
Extends React and adds:
|
|
244
|
+
|
|
245
|
+
- Next.js 16 rules
|
|
246
|
+
- Core Web Vitals
|
|
247
|
+
- App Router-specific rules
|
|
248
|
+
- Next.js performance optimizations
|
|
249
|
+
|
|
250
|
+
### Expo Config
|
|
251
|
+
|
|
252
|
+
Extends React and adds:
|
|
253
|
+
|
|
254
|
+
- React Native-specific rules
|
|
255
|
+
- React Native prop handling
|
|
256
|
+
- Platform-specific component rules
|
|
257
|
+
|
|
258
|
+
### Test Config
|
|
259
|
+
|
|
260
|
+
Extends base and adds:
|
|
261
|
+
|
|
262
|
+
- **Vitest rules** - Comprehensive test quality rules (35+ rules)
|
|
263
|
+
- **Cypress rules** - E2E testing patterns
|
|
264
|
+
- **Playwright rules** - Browser automation best practices (15+ rules)
|
|
265
|
+
- **Testing Library rules** - React Testing Library best practices
|
|
266
|
+
- **Jest-DOM rules** - Better DOM assertion patterns
|
|
267
|
+
- Test-specific overrides (relaxed TypeScript rules, disabled security/promise checks)
|
|
268
|
+
|
|
269
|
+
## ?? Customization
|
|
270
|
+
|
|
271
|
+
### Override Rules
|
|
272
|
+
|
|
273
|
+
```javascript
|
|
274
|
+
import nextConfig from "@od-oneapp/config/eslint/next";
|
|
275
|
+
import tseslint from "typescript-eslint";
|
|
276
|
+
|
|
277
|
+
export default tseslint.config(...nextConfig, {
|
|
278
|
+
rules: {
|
|
279
|
+
// Your custom overrides
|
|
280
|
+
"no-console": "off"
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Add Plugins
|
|
286
|
+
|
|
287
|
+
```javascript
|
|
288
|
+
import reactConfig from "@od-oneapp/config/eslint/react";
|
|
289
|
+
import tseslint from "typescript-eslint";
|
|
290
|
+
import customPlugin from "eslint-plugin-custom";
|
|
291
|
+
|
|
292
|
+
export default tseslint.config(...reactConfig, {
|
|
293
|
+
plugins: {
|
|
294
|
+
custom: customPlugin
|
|
295
|
+
},
|
|
296
|
+
rules: {
|
|
297
|
+
"custom/rule": "error"
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
## ?? Rule Categories
|
|
303
|
+
|
|
304
|
+
### TypeScript Rules
|
|
305
|
+
|
|
306
|
+
- Type safety enforcement
|
|
307
|
+
- Consistent type imports
|
|
308
|
+
- Unused variable detection
|
|
309
|
+
|
|
310
|
+
### React Rules
|
|
311
|
+
|
|
312
|
+
- React 19.2 optimizations
|
|
313
|
+
- Hooks rules
|
|
314
|
+
- JSX best practices
|
|
315
|
+
- Component patterns
|
|
316
|
+
|
|
317
|
+
### Code Quality (Unicorn)
|
|
318
|
+
|
|
319
|
+
- Array method improvements
|
|
320
|
+
- String method improvements
|
|
321
|
+
- Regex optimizations
|
|
322
|
+
- Modern JavaScript patterns
|
|
323
|
+
|
|
324
|
+
### Import Organization
|
|
325
|
+
|
|
326
|
+
- Consistent import ordering
|
|
327
|
+
- Duplicate import prevention
|
|
328
|
+
- Circular dependency detection
|
|
329
|
+
- Path segment cleanup
|
|
330
|
+
|
|
331
|
+
## ⚠️ Edge Cases & Known Issues
|
|
332
|
+
|
|
333
|
+
### Test Files with Type-Aware Rules
|
|
334
|
+
|
|
335
|
+
**Issue:** Type-aware ESLint rules (like `@typescript-eslint/no-floating-promises`) are disabled in test files for
|
|
336
|
+
performance.
|
|
337
|
+
|
|
338
|
+
**Why:** Test files often use dynamic imports, mocks, and other patterns that make type-aware linting slow and
|
|
339
|
+
unreliable.
|
|
340
|
+
|
|
341
|
+
**Solution:** If you need type-aware rules in tests, create a custom config:
|
|
342
|
+
|
|
343
|
+
```javascript
|
|
344
|
+
import testConfig from "@od-oneapp/config/eslint/test";
|
|
345
|
+
|
|
346
|
+
export default [
|
|
347
|
+
...testConfig,
|
|
348
|
+
{
|
|
349
|
+
files: ["**/*.test.ts"],
|
|
350
|
+
rules: {
|
|
351
|
+
"@typescript-eslint/no-floating-promises": "error" // Re-enable
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
];
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### Next.js Config Without Next.js Installed
|
|
358
|
+
|
|
359
|
+
**Issue:** The `@od-oneapp/config/eslint/next` config requires `next` and `eslint-config-next` as peer dependencies. If
|
|
360
|
+
Next.js is not installed, imports will fail.
|
|
361
|
+
|
|
362
|
+
**Error:**
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
Error: Cannot find module 'next/dist/compiled/babel/eslint-parser'
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
**Solution:** Ensure Next.js is installed:
|
|
369
|
+
|
|
370
|
+
```bash
|
|
371
|
+
pnpm add next eslint-config-next
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
Or use the React config instead if you're not using Next.js:
|
|
375
|
+
|
|
376
|
+
```javascript
|
|
377
|
+
import reactConfig from "@od-oneapp/config/eslint/react";
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Plugin Conflicts When Combining Configs
|
|
381
|
+
|
|
382
|
+
**Issue:** Some configs intentionally filter out plugins to avoid conflicts (e.g., `next.mjs` removes `import` and
|
|
383
|
+
`jsx-a11y` plugins from `react.mjs` because `eslint-config-next` provides them).
|
|
384
|
+
|
|
385
|
+
**Why:** ESLint flat config doesn't allow redefining plugins, so configs must coordinate to avoid conflicts.
|
|
386
|
+
|
|
387
|
+
**Solution:** The configs handle this automatically. If you encounter plugin conflicts:
|
|
388
|
+
|
|
389
|
+
1. Check import order - later configs override earlier ones
|
|
390
|
+
2. Don't manually add plugins that are already in parent configs
|
|
391
|
+
3. Use `tseslint.config()` wrapper to properly merge configs
|
|
392
|
+
|
|
393
|
+
### Underscore-Prefixed Variables
|
|
394
|
+
|
|
395
|
+
**Issue:** The custom `no-used-underscore-vars` rule prevents using variables that start with `_` (they're for unused
|
|
396
|
+
variables only).
|
|
397
|
+
|
|
398
|
+
**Valid:**
|
|
399
|
+
|
|
400
|
+
```javascript
|
|
401
|
+
const _unused = 1; // ✅ Declaration
|
|
402
|
+
function _helper() {} // ✅ Declaration
|
|
403
|
+
obj._private; // ✅ Property access
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
**Invalid:**
|
|
407
|
+
|
|
408
|
+
```javascript
|
|
409
|
+
const x = _unused; // ❌ Usage
|
|
410
|
+
if (_condition) {
|
|
411
|
+
} // ❌ Usage
|
|
412
|
+
console.log(_data); // ❌ Usage
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
**Exception:** Some names are allowed by default in Node config (`__dirname`, `__filename`):
|
|
416
|
+
|
|
417
|
+
```javascript
|
|
418
|
+
// Node.js config
|
|
419
|
+
export default [
|
|
420
|
+
...nodeConfig,
|
|
421
|
+
{
|
|
422
|
+
rules: {
|
|
423
|
+
"no-used-underscore-vars/no-used-underscore-vars": [
|
|
424
|
+
"error",
|
|
425
|
+
{
|
|
426
|
+
allow: ["__dirname", "__filename"] // Allowed in node.mjs
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
];
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### Prettier Plugin Order
|
|
435
|
+
|
|
436
|
+
**Issue:** `prettier-plugin-tailwindcss` must be last in the plugins array for proper composition.
|
|
437
|
+
|
|
438
|
+
**Why:** Tailwind CSS plugin needs to run after other formatters to properly sort class names.
|
|
439
|
+
|
|
440
|
+
**Correct:**
|
|
441
|
+
|
|
442
|
+
```javascript
|
|
443
|
+
{
|
|
444
|
+
plugins: [
|
|
445
|
+
"prettier-plugin-organize-imports",
|
|
446
|
+
"prettier-plugin-sh",
|
|
447
|
+
"prettier-plugin-packagejson",
|
|
448
|
+
"prettier-plugin-tailwindcss" // Must be last
|
|
449
|
+
];
|
|
450
|
+
}
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
**Incorrect:**
|
|
454
|
+
|
|
455
|
+
```javascript
|
|
456
|
+
{
|
|
457
|
+
plugins: [
|
|
458
|
+
"prettier-plugin-tailwindcss", // ❌ Too early
|
|
459
|
+
"prettier-plugin-organize-imports"
|
|
460
|
+
];
|
|
461
|
+
}
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### YAML Quote Style
|
|
465
|
+
|
|
466
|
+
**Issue:** ESLint rule `yml/quotes` enforces double quotes, but Prettier defaults to single quotes for YAML.
|
|
467
|
+
|
|
468
|
+
**Why:** ESLint can enforce quote style, but Prettier can't change it (Prettier only formats structure, not semantics).
|
|
469
|
+
|
|
470
|
+
**Solution:** The ESLint rule handles quote style enforcement. Prettier handles indentation and line length.
|
|
471
|
+
|
|
472
|
+
### Stylelint Color Rules in Theme Files
|
|
473
|
+
|
|
474
|
+
**Issue:** `stylelint-no-indistinguishable-colors` may flag similar colors in theme/token files.
|
|
475
|
+
|
|
476
|
+
**Why:** Design systems often use intentionally similar colors (e.g., gray-100, gray-200).
|
|
477
|
+
|
|
478
|
+
**Solution:** The config disables this rule for theme files:
|
|
479
|
+
|
|
480
|
+
```javascript
|
|
481
|
+
overrides: [
|
|
482
|
+
{
|
|
483
|
+
files: ["**/tailwind-theme.css", "**/theme.css", "**/tokens.css", "**/styles.css"],
|
|
484
|
+
rules: {
|
|
485
|
+
"plugin/stylelint-no-indistinguishable-colors": null // Disabled
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
];
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
Add your theme files to this override if needed.
|
|
492
|
+
|
|
493
|
+
## 🔧 Troubleshooting
|
|
494
|
+
|
|
495
|
+
### Import Resolution Issues
|
|
496
|
+
|
|
497
|
+
If imports aren't resolving:
|
|
498
|
+
|
|
499
|
+
1. Ensure `tsconfig.json` has path mappings:
|
|
500
|
+
|
|
501
|
+
```json
|
|
502
|
+
{
|
|
503
|
+
"compilerOptions": {
|
|
504
|
+
"paths": {
|
|
505
|
+
"#/*": ["./src/*"]
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
2. Verify `eslint-import-resolver-typescript` is installed in your project
|
|
512
|
+
|
|
513
|
+
### Prettier Conflicts
|
|
514
|
+
|
|
515
|
+
Prettier integration is included. If you see formatting conflicts:
|
|
516
|
+
|
|
517
|
+
1. Run `pnpm prettier --write` to format files
|
|
518
|
+
2. ESLint will not conflict with Prettier rules (they're disabled)
|
|
519
|
+
|
|
520
|
+
### TypeScript Errors
|
|
521
|
+
|
|
522
|
+
If TypeScript errors appear in ESLint:
|
|
523
|
+
|
|
524
|
+
1. Ensure `typescript` is installed
|
|
525
|
+
2. Verify `tsconfig.json` is properly configured
|
|
526
|
+
3. Check that `projectService: true` is in parser options (already configured)
|
|
527
|
+
|
|
528
|
+
## 🔧 Additional Documentation
|
|
529
|
+
|
|
530
|
+
- [XO-Inspired Rules](./eslint/docs/XO_RULES.md) - Details on XO-inspired rules
|
|
531
|
+
- [File Types](./eslint/docs/FILE_TYPES.md) - Supported file types
|
|
532
|
+
- [Migration Guide](./eslint/docs/MIGRATION.md) - Upgrade guide from v0.1.0
|
|
533
|
+
- [Troubleshooting](./eslint/docs/TROUBLESHOOTING.md) - Common issues and solutions
|
|
534
|
+
- [Linting Analysis](../../docs/linting-analysis.md) - Comprehensive analysis
|
|
535
|
+
|
|
536
|
+
## ⚙️ Development
|
|
537
|
+
|
|
538
|
+
### Adding New Rules
|
|
539
|
+
|
|
540
|
+
1. Add rules to the appropriate config file in `eslint/`, `stylelint/`, or `prettier/`
|
|
541
|
+
2. Test with `pnpm lint`
|
|
542
|
+
3. Document in this README or relevant docs
|
|
543
|
+
4. Update version if breaking changes
|
|
544
|
+
|
|
545
|
+
### Testing Configs
|
|
546
|
+
|
|
547
|
+
```bash
|
|
548
|
+
# Test an ESLint config
|
|
549
|
+
node -e "import('./eslint/react.mjs').then(m => console.log('Loaded:', m.default))"
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
## 🏗️ Architecture & Design Decisions
|
|
553
|
+
|
|
554
|
+
### Config Composition Strategy
|
|
555
|
+
|
|
556
|
+
The package uses a hierarchical composition strategy where configs extend each other:
|
|
557
|
+
|
|
558
|
+
```
|
|
559
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
560
|
+
│ BASE CONFIG │
|
|
561
|
+
│ Plugins: security, promise, unused-imports, no-used-underscore-vars, │
|
|
562
|
+
│ jsdoc, yml, pnpm │
|
|
563
|
+
│ Spreads: tseslint.configs.recommended (@typescript-eslint), prettier │
|
|
564
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
565
|
+
│ │
|
|
566
|
+
┌─────────┴─────────┐ ┌─────────┴─────────┐
|
|
567
|
+
▼ ▼ ▼ ▼
|
|
568
|
+
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
|
|
569
|
+
│ REACT CONFIG │ │ NODE CONFIG │ │ TEST CONFIG │
|
|
570
|
+
│ +react │ │ +unicorn │ │ +vitest │
|
|
571
|
+
│ +react-hooks │ │ +n (node) │ │ +cypress │
|
|
572
|
+
│ +unicorn │ │ │ │ +playwright │
|
|
573
|
+
│ +import │ │ ⚠️ Don't mix │ │ +testing-lib │
|
|
574
|
+
│ +jsx-a11y │ │ with react! │ │ +jest-dom │
|
|
575
|
+
│ +regexp │ │ │ │ │
|
|
576
|
+
│ +no-secrets │ │ │ │ │
|
|
577
|
+
└─────────────────┘ └─────────────────┘ └─────────────────┘
|
|
578
|
+
│ │
|
|
579
|
+
┌─────┴─────┐ │
|
|
580
|
+
▼ ▼ │
|
|
581
|
+
┌────────┐ ┌────────┐ │
|
|
582
|
+
│ EXPO │ │ NEXT │◄────────────────────────────┤
|
|
583
|
+
│+react- │ │(filter)│ │
|
|
584
|
+
│native │ │+nextjs │ │
|
|
585
|
+
└────────┘ └────────┘ │
|
|
586
|
+
│ │
|
|
587
|
+
▼ │
|
|
588
|
+
┌────────────┐ ┌───────┴───────┐
|
|
589
|
+
│ STORYBOOK │ │ NEXT-TEST │
|
|
590
|
+
│ +storybook │ │ next + test │
|
|
591
|
+
└────────────┘ │ (filtered) │
|
|
592
|
+
└───────────────┘
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
**Plugin Inheritance Summary:**
|
|
596
|
+
|
|
597
|
+
| Config | Extends | Additional Plugins | Conflicts |
|
|
598
|
+
| ------------- | ---------------- | ----------------------------------------------------------------- | --------------------------------------------- |
|
|
599
|
+
| react.mjs | base | react, react-hooks, unicorn, import, jsx-a11y, regexp, no-secrets | None |
|
|
600
|
+
| node.mjs | base | unicorn, n | ⚠️ Don't mix with react (unicorn conflict) |
|
|
601
|
+
| expo.mjs | react | react-native | None |
|
|
602
|
+
| next.mjs | react (filtered) | @next/next | Filters: import, jsx-a11y, @typescript-eslint |
|
|
603
|
+
| test.mjs | base | vitest, cypress, playwright, testing-library, jest-dom | None |
|
|
604
|
+
| storybook.mjs | next | storybook | None |
|
|
605
|
+
| next-test.mjs | next + test | (combined) | Filters @typescript-eslint from test |
|
|
606
|
+
|
|
607
|
+
**Shared utilities (internal):**
|
|
608
|
+
|
|
609
|
+
```
|
|
610
|
+
shared/
|
|
611
|
+
├── common-ignores.mjs # Shared ignore patterns (single source of truth)
|
|
612
|
+
├── disabled-type-aware-rules.mjs # TypeScript rules to disable for performance
|
|
613
|
+
├── file-patterns.mjs # Reusable file glob patterns
|
|
614
|
+
└── node-globals.mjs # Node.js 22+ global definitions
|
|
615
|
+
utils/
|
|
616
|
+
├── create-validated-config.mjs # Config validation with caching
|
|
617
|
+
├── filter-ts-eslint-configs.mjs # Plugin conflict resolution for Next.js
|
|
618
|
+
└── validate-config.mjs # Structure validation
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
**Why:** This reduces duplication and ensures consistency across related configs.
|
|
622
|
+
|
|
623
|
+
### TypeScript Config Hierarchy
|
|
624
|
+
|
|
625
|
+
TypeScript configs follow a similar pattern:
|
|
626
|
+
|
|
627
|
+
```
|
|
628
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
629
|
+
│ BASE CONFIG (internal) │
|
|
630
|
+
│ Target: ES2024 (Node 22+) Module: ESNext Resolution: Bundler │
|
|
631
|
+
│ Strict: true + noImplicitReturns + noUncheckedIndexedAccess │
|
|
632
|
+
│ Unused vars: delegated to ESLint (noUnusedLocals/Parameters: false) │
|
|
633
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
634
|
+
│ │
|
|
635
|
+
▼ ▼
|
|
636
|
+
┌────────────────────┐ ┌────────────────────┐
|
|
637
|
+
│ NODE CONFIG │ │ REACT CONFIG │
|
|
638
|
+
│ +types: ["node"] │ │ +lib: DOM, ES2024 │
|
|
639
|
+
│ (Node 22+ APIs) │ │ +jsx: react-jsx │
|
|
640
|
+
└────────────────────┘ └────────────────────┘
|
|
641
|
+
│
|
|
642
|
+
┌────────────────┴────────────────┐
|
|
643
|
+
▼ ▼
|
|
644
|
+
┌────────────────────┐ ┌────────────────────┐
|
|
645
|
+
│ NEXTJS CONFIG │ │ REACT-NATIVE CONFIG│
|
|
646
|
+
│ +jsx: preserve │ │ +jsx: react-native│
|
|
647
|
+
│ +types: ["node"] │ │ │
|
|
648
|
+
│ +plugins: [next] │ │ │
|
|
649
|
+
└────────────────────┘ └────────────────────┘
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
**Configuration Inheritance:**
|
|
653
|
+
|
|
654
|
+
| Config | Extends | Key Additions |
|
|
655
|
+
| ----------------- | ------- | -------------------------------------------------- |
|
|
656
|
+
| base.json | - | ES2024, strict mode, bundler resolution |
|
|
657
|
+
| node.json | base | `types: ["node"]` for Node 22+ APIs |
|
|
658
|
+
| react.json | base | DOM libs, `jsx: react-jsx` |
|
|
659
|
+
| nextjs.json | react | `jsx: preserve`, `types: ["node"]`, Next.js plugin |
|
|
660
|
+
| react-native.json | react | `jsx: react-native` |
|
|
661
|
+
|
|
662
|
+
**Note:** `nextjs.json` includes Node types because Next.js apps need both DOM types (for client components) and Node
|
|
663
|
+
types (for server components, API routes, and middleware).
|
|
664
|
+
|
|
665
|
+
**Key Decision:** `base.json` is not exported because it contains monorepo-specific settings and should not be used
|
|
666
|
+
directly by consumers.
|
|
667
|
+
|
|
668
|
+
### Plugin Filtering in Next.js Config
|
|
669
|
+
|
|
670
|
+
The `next.mjs` config uses `filterPluginsForNextJs()` utility to filter out plugins from `react.mjs` that conflict with
|
|
671
|
+
`eslint-config-next`:
|
|
672
|
+
|
|
673
|
+
- `import` → Provided by Next.js config
|
|
674
|
+
- `jsx-a11y` → Provided by Next.js config
|
|
675
|
+
- `@typescript-eslint` → Provided by Next.js config
|
|
676
|
+
|
|
677
|
+
**Why:** ESLint flat config doesn't allow plugin redefinition. This approach prevents errors while maintaining all rules
|
|
678
|
+
from both configs.
|
|
679
|
+
|
|
680
|
+
**Implementation:** The `utils/filter-ts-eslint-configs.mjs` module provides immutable filtering operations.
|
|
681
|
+
|
|
682
|
+
### Type-Aware Linting Performance
|
|
683
|
+
|
|
684
|
+
Type-aware rules are disabled in:
|
|
685
|
+
|
|
686
|
+
- Test files (`test.mjs`)
|
|
687
|
+
- Storybook files (`storybook.mjs`)
|
|
688
|
+
- Test config files (`vitest.config.ts`, etc.)
|
|
689
|
+
|
|
690
|
+
**Why:** Type-aware linting requires TypeScript compilation, which is slow for test files and config files. Performance
|
|
691
|
+
improvement: ~60-80% faster linting.
|
|
692
|
+
|
|
693
|
+
**Trade-off:** Some type-safety checks are missed in test code.
|
|
694
|
+
|
|
695
|
+
### Custom Rules
|
|
696
|
+
|
|
697
|
+
The package includes one custom rule: `no-used-underscore-vars`
|
|
698
|
+
|
|
699
|
+
**Why:** Enforces the convention that underscore-prefixed variables are for unused parameters only, preventing
|
|
700
|
+
accidental usage.
|
|
701
|
+
|
|
702
|
+
**Implementation:** AST-based rule that distinguishes declaration contexts from usage contexts.
|
|
703
|
+
|
|
704
|
+
### Prettier Plugin Selection
|
|
705
|
+
|
|
706
|
+
Includes 4 plugins:
|
|
707
|
+
|
|
708
|
+
1. `prettier-plugin-organize-imports` - Import organization
|
|
709
|
+
2. `prettier-plugin-sh` - Shell script formatting
|
|
710
|
+
3. `prettier-plugin-packagejson` - package.json formatting
|
|
711
|
+
4. `prettier-plugin-tailwindcss` - Tailwind class sorting (must be last)
|
|
712
|
+
|
|
713
|
+
**Why:** These cover the most common file types in the monorepo while avoiding plugin conflicts.
|
|
714
|
+
|
|
715
|
+
**Not included:** MDX, PHP, Ruby, etc. (not used in this monorepo)
|
|
716
|
+
|
|
717
|
+
### Stylelint Minimal Configuration
|
|
718
|
+
|
|
719
|
+
Only 2 plugins and 2 rules are enabled in Stylelint config.
|
|
720
|
+
|
|
721
|
+
**Why:** The monorepo primarily uses Tailwind CSS and CSS-in-JS, which don't need extensive CSS linting. The minimal
|
|
722
|
+
config focuses on performance and accessibility.
|
|
723
|
+
|
|
724
|
+
**If you need more:** Extend with `stylelint-config-standard` or `stylelint-config-recommended`.
|
|
725
|
+
|
|
726
|
+
### File Type Support
|
|
727
|
+
|
|
728
|
+
**TypeScript preferred:** The configs support `.js`, `.jsx`, and `.mjs` files but encourage TypeScript (`.ts`, `.tsx`)
|
|
729
|
+
for better type safety.
|
|
730
|
+
|
|
731
|
+
**JavaScript discouraged:** The base config warns developers to prefer TypeScript for better DX.
|
|
732
|
+
|
|
733
|
+
### Ignore Patterns
|
|
734
|
+
|
|
735
|
+
Ignores are defined in base config rather than separate `.eslintignore` file.
|
|
736
|
+
|
|
737
|
+
**Why:** ESLint flat config doesn't use `.eslintignore`. All ignores are in the config for visibility and version
|
|
738
|
+
control.
|
|
739
|
+
|
|
740
|
+
**Utilities provided:** `read-eslintignore.mjs` converts gitignore-style patterns to flat config glob patterns for
|
|
741
|
+
migration.
|
|
742
|
+
|
|
743
|
+
## 📌 Version
|
|
744
|
+
|
|
745
|
+
Current version: `2025.11.1201` (see [package.json](./package.json))
|
|
746
|
+
|
|
747
|
+
**Breaking Changes in v0.2.0 (now v2025.11.1201):**
|
|
748
|
+
|
|
749
|
+
- Package renamed from `@od-oneapp/config-eslint` to `@od-oneapp/config`
|
|
750
|
+
- All configs moved to subfolders (`eslint/`, `stylelint/`, `prettier/`)
|
|
751
|
+
- All files converted to `.mjs` extension
|
|
752
|
+
- Base config is no longer exported (internal use only)
|
|
753
|
+
- No default export - use explicit imports like `@od-oneapp/config/eslint/node`
|
|
754
|
+
|
|
755
|
+
## 📦 Exported vs Internal
|
|
756
|
+
|
|
757
|
+
### Exported Configurations
|
|
758
|
+
|
|
759
|
+
The following configurations are exported and available to consumers:
|
|
760
|
+
|
|
761
|
+
**ESLint:**
|
|
762
|
+
|
|
763
|
+
- `@od-oneapp/config/eslint/node` - Node.js projects
|
|
764
|
+
- `@od-oneapp/config/eslint/react` - React 19.2 projects
|
|
765
|
+
- `@od-oneapp/config/eslint/next` - Next.js 16 projects
|
|
766
|
+
- `@od-oneapp/config/eslint/next-test` - Next.js 16 + Test configs combined
|
|
767
|
+
- `@od-oneapp/config/eslint/expo` - React Native/Expo projects
|
|
768
|
+
- `@od-oneapp/config/eslint/storybook` - Storybook v10 projects
|
|
769
|
+
- `@od-oneapp/config/eslint/test` - Test files (Vitest, Cypress, Playwright)
|
|
770
|
+
|
|
771
|
+
**Other:**
|
|
772
|
+
|
|
773
|
+
- `@od-oneapp/config/stylelint` - Stylelint configuration
|
|
774
|
+
- `@od-oneapp/config/prettier` - Prettier configuration
|
|
775
|
+
- `@od-oneapp/config/typescript/node.json` - TypeScript for Node.js
|
|
776
|
+
- `@od-oneapp/config/typescript/react.json` - TypeScript for React
|
|
777
|
+
- `@od-oneapp/config/typescript/nextjs.json` - TypeScript for Next.js (includes Node types for server-side code)
|
|
778
|
+
- `@od-oneapp/config/typescript/react-native.json` - TypeScript for React Native
|
|
779
|
+
|
|
780
|
+
### Internal (Not Exported)
|
|
781
|
+
|
|
782
|
+
The following are used internally by the exported configs but are not exported separately:
|
|
783
|
+
|
|
784
|
+
- `eslint/base.mjs` - Internal base configuration (not exported)
|
|
785
|
+
- `eslint/rules/*` - Custom ESLint rules (bundled in configs)
|
|
786
|
+
- `eslint/utils/*` - Utility functions (bundled in configs)
|
|
787
|
+
- `eslint/__tests__/*` - Test files (development only)
|
|
788
|
+
- `typescript/base.json` - Base TypeScript configuration (internal only, not in package exports)
|
|
789
|
+
|
|
790
|
+
**Note:** The `base.json` TypeScript configuration is internal-only and not exported. Projects should extend from
|
|
791
|
+
`node.json`, `react.json`, `nextjs.json`, or `react-native.json` instead.
|
|
792
|
+
|
|
793
|
+
## 🔗 Relationship with .linters/
|
|
794
|
+
|
|
795
|
+
This package (`@od-oneapp/config`) and the `.linters/` directory serve complementary purposes:
|
|
796
|
+
|
|
797
|
+
| Scope | `.linters/` | `@od-oneapp/config` |
|
|
798
|
+
| --------------- | ----------------------------------------------------- | ---------------------- |
|
|
799
|
+
| **Primary Use** | MegaLinter CI pipeline | Direct package imports |
|
|
800
|
+
| **Languages** | Non-JS/TS (Python, Terraform, Docker, Markdown, YAML) | JS/TS ecosystem |
|
|
801
|
+
| **Runtime** | CI/CD only | Development + CI |
|
|
802
|
+
|
|
803
|
+
MegaLinter references configs from this package for consistency:
|
|
804
|
+
|
|
805
|
+
- **Prettier**: `@od-oneapp/config/prettier` for TypeScript, JavaScript, JSON, YAML formatting
|
|
806
|
+
- **Stylelint**: `@od-oneapp/config/stylelint` for CSS linting
|
|
807
|
+
|
|
808
|
+
See `.linters/README.md` for MegaLinter configuration details.
|
|
809
|
+
|
|
810
|
+
## 🎯 Contributing
|
|
811
|
+
|
|
812
|
+
When adding rules:
|
|
813
|
+
|
|
814
|
+
- Document why the rule is valuable
|
|
815
|
+
- Test with existing codebase
|
|
816
|
+
- Consider framework compatibility (React, Next.js, Expo)
|
|
817
|
+
- Update documentation
|
|
818
|
+
|
|
819
|
+
## ?? License
|
|
820
|
+
|
|
821
|
+
Private package for OneApp monorepo.
|
|
822
|
+
|
|
823
|
+
## 📚 Comprehensive Documentation
|
|
824
|
+
|
|
825
|
+
For detailed documentation, see:
|
|
826
|
+
|
|
827
|
+
- **[Audit Reports](../../apps/docs/content/docs/audits/config/)** - Comprehensive audits, fixes, and security reviews
|
|
828
|
+
- **[Technical Guides](../../apps/docs/content/docs/packages/config/)** - Implementation guides and best practices
|
|
829
|
+
|
|
830
|
+
All comprehensive documentation has been centralized in the docs app.
|