@codyswann/lisa 7.1.5 → 8.0.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/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +0 -2
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +3 -6
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +31 -32
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +201 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -2
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +16 -10
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +2 -2
- package/dist/cli/apply.js.map +1 -1
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +8 -4
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +2 -2
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts +5 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.js +44 -10
- package/dist/cli/doctor-readiness-supply-chain-python.js.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -2
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-worker-journey.js +2 -2
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +7 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/file-upstream-cmd.d.ts.map +1 -1
- package/dist/cli/file-upstream-cmd.js +20 -25
- package/dist/cli/file-upstream-cmd.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -2
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +13 -6
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/health-cmd.d.ts.map +1 -1
- package/dist/cli/health-cmd.js +7 -19
- package/dist/cli/health-cmd.js.map +1 -1
- package/dist/cli/lisa-test-run-jest-merge.js +5 -5
- package/dist/cli/lisa-test-run-jest-merge.js.map +1 -1
- package/dist/cli/lisa-test-run.js +8 -4
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/pr-landing.js +2 -2
- package/dist/cli/pr-landing.js.map +1 -1
- package/dist/cli/update-check.d.ts.map +1 -1
- package/dist/cli/update-check.js +7 -4
- package/dist/cli/update-check.js.map +1 -1
- package/dist/cli/update-cmd.d.ts.map +1 -1
- package/dist/cli/update-cmd.js +7 -4
- package/dist/cli/update-cmd.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/cli/worktree-ownership.js +3 -3
- package/dist/cli/worktree-ownership.js.map +1 -1
- package/dist/codex/hooks-catalog.d.ts +151 -0
- package/dist/codex/hooks-catalog.d.ts.map +1 -0
- package/dist/codex/hooks-catalog.js +315 -0
- package/dist/codex/hooks-catalog.js.map +1 -0
- package/dist/codex/hooks-compatibility.d.ts +14 -0
- package/dist/codex/hooks-compatibility.d.ts.map +1 -0
- package/dist/codex/hooks-compatibility.js +196 -0
- package/dist/codex/hooks-compatibility.js.map +1 -0
- package/dist/codex/hooks-installer.d.ts +2 -49
- package/dist/codex/hooks-installer.d.ts.map +1 -1
- package/dist/codex/hooks-installer.js +5 -546
- package/dist/codex/hooks-installer.js.map +1 -1
- package/dist/codex/hooks-source-links.d.ts +11 -0
- package/dist/codex/hooks-source-links.d.ts.map +1 -0
- package/dist/codex/hooks-source-links.js +74 -0
- package/dist/codex/hooks-source-links.js.map +1 -0
- package/dist/codex/scripts/block-migration-edits.sh +2 -2
- package/dist/codex/scripts/block-suppress-directives.sh +3 -3
- package/dist/codex/scripts/format-on-edit.sh +2 -2
- package/dist/codex/scripts/lint-on-edit.sh +2 -2
- package/dist/codex/scripts/lisa-edit-gate.sh +19 -15
- package/dist/codex/scripts/rubocop-on-edit.sh +2 -2
- package/dist/codex/scripts/sg-scan-on-edit.sh +2 -2
- package/dist/configs/coverage-scope.d.ts +0 -23
- package/dist/configs/coverage-scope.d.ts.map +1 -1
- package/dist/configs/coverage-scope.js +2 -3
- package/dist/configs/coverage-scope.js.map +1 -1
- package/dist/configs/eslint/base.d.ts +2 -113
- package/dist/configs/eslint/base.d.ts.map +1 -1
- package/dist/configs/eslint/base.js +2 -165
- package/dist/configs/eslint/base.js.map +1 -1
- package/dist/configs/eslint/cdk.d.ts.map +1 -1
- package/dist/configs/eslint/cdk.js +82 -66
- package/dist/configs/eslint/cdk.js.map +1 -1
- package/dist/configs/eslint/expo-overrides.d.ts +103 -0
- package/dist/configs/eslint/expo-overrides.d.ts.map +1 -0
- package/dist/configs/eslint/expo-overrides.js +187 -0
- package/dist/configs/eslint/expo-overrides.js.map +1 -0
- package/dist/configs/eslint/expo.d.ts +2 -7
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +186 -258
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/nestjs.d.ts.map +1 -1
- package/dist/configs/eslint/nestjs.js +86 -70
- package/dist/configs/eslint/nestjs.js.map +1 -1
- package/dist/configs/eslint/process-environment-bans.d.ts +41 -0
- package/dist/configs/eslint/process-environment-bans.d.ts.map +1 -0
- package/dist/configs/eslint/process-environment-bans.js +50 -0
- package/dist/configs/eslint/process-environment-bans.js.map +1 -0
- package/dist/configs/eslint/shared-rules.d.ts +130 -0
- package/dist/configs/eslint/shared-rules.d.ts.map +1 -0
- package/dist/configs/eslint/shared-rules.js +233 -0
- package/dist/configs/eslint/shared-rules.js.map +1 -0
- package/dist/configs/eslint/typescript.d.ts.map +1 -1
- package/dist/configs/eslint/typescript.js +2 -4
- package/dist/configs/eslint/typescript.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +2 -2
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +5 -5
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +3 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.js +2 -2
- package/dist/configs/vitest/refusal-announcement.js.map +1 -1
- package/dist/core/admission-lock.js +2 -3
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +11 -5
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +2 -2
- package/dist/core/admission.js.map +1 -1
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +8 -5
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +48 -47
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +3 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +46 -27
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/kane-cli-process.d.ts.map +1 -1
- package/dist/core/kane-cli-process.js +46 -33
- package/dist/core/kane-cli-process.js.map +1 -1
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +3 -4
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/lisa-agent-emit-extra.d.ts +75 -0
- package/dist/core/lisa-agent-emit-extra.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit-extra.js +231 -0
- package/dist/core/lisa-agent-emit-extra.js.map +1 -0
- package/dist/core/lisa-agent-emit.d.ts +79 -0
- package/dist/core/lisa-agent-emit.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit.js +224 -0
- package/dist/core/lisa-agent-emit.js.map +1 -0
- package/dist/core/lisa-deletions.d.ts +116 -0
- package/dist/core/lisa-deletions.d.ts.map +1 -0
- package/dist/core/lisa-deletions.js +316 -0
- package/dist/core/lisa-deletions.js.map +1 -0
- package/dist/core/lisa-file-results.d.ts +58 -0
- package/dist/core/lisa-file-results.d.ts.map +1 -0
- package/dist/core/lisa-file-results.js +173 -0
- package/dist/core/lisa-file-results.js.map +1 -0
- package/dist/core/lisa-maintenance.d.ts +139 -0
- package/dist/core/lisa-maintenance.d.ts.map +1 -0
- package/dist/core/lisa-maintenance.js +324 -0
- package/dist/core/lisa-maintenance.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts +7 -5
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -6036
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6021 -0
- package/dist/core/lisa-plugin-sync.d.ts +96 -0
- package/dist/core/lisa-plugin-sync.d.ts.map +1 -0
- package/dist/core/lisa-plugin-sync.js +216 -0
- package/dist/core/lisa-plugin-sync.js.map +1 -0
- package/dist/core/lisa-plugins.d.ts +42 -0
- package/dist/core/lisa-plugins.d.ts.map +1 -0
- package/dist/core/lisa-plugins.js +155 -0
- package/dist/core/lisa-plugins.js.map +1 -0
- package/dist/core/lisa-state.d.ts +202 -0
- package/dist/core/lisa-state.d.ts.map +1 -0
- package/dist/core/lisa-state.js +205 -0
- package/dist/core/lisa-state.js.map +1 -0
- package/dist/core/lisa-summary-stats.d.ts +74 -0
- package/dist/core/lisa-summary-stats.d.ts.map +1 -0
- package/dist/core/lisa-summary-stats.js +189 -0
- package/dist/core/lisa-summary-stats.js.map +1 -0
- package/dist/core/lisa-summary.d.ts +34 -0
- package/dist/core/lisa-summary.d.ts.map +1 -0
- package/dist/core/lisa-summary.js +144 -0
- package/dist/core/lisa-summary.js.map +1 -0
- package/dist/core/lisa-templates.d.ts +98 -0
- package/dist/core/lisa-templates.d.ts.map +1 -0
- package/dist/core/lisa-templates.js +251 -0
- package/dist/core/lisa-templates.js.map +1 -0
- package/dist/core/lisa.d.ts +14 -903
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +30 -2275
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +117 -61
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/template-ownership.js +0 -1
- package/dist/core/template-ownership.js.map +1 -1
- package/dist/core/upstream-attribution-body.d.ts +4 -11
- package/dist/core/upstream-attribution-body.d.ts.map +1 -1
- package/dist/core/upstream-attribution-body.js +61 -373
- package/dist/core/upstream-attribution-body.js.map +1 -1
- package/dist/core/upstream-attribution-fields.d.ts +40 -0
- package/dist/core/upstream-attribution-fields.d.ts.map +1 -0
- package/dist/core/upstream-attribution-fields.js +167 -0
- package/dist/core/upstream-attribution-fields.js.map +1 -0
- package/dist/core/upstream-attribution-files.d.ts +15 -0
- package/dist/core/upstream-attribution-files.d.ts.map +1 -0
- package/dist/core/upstream-attribution-files.js +156 -0
- package/dist/core/upstream-attribution-files.js.map +1 -0
- package/dist/core/upstream-attribution-guards.d.ts +80 -0
- package/dist/core/upstream-attribution-guards.d.ts.map +1 -0
- package/dist/core/upstream-attribution-guards.js +284 -0
- package/dist/core/upstream-attribution-guards.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +67 -30435
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +30520 -0
- package/dist/health/agentic-contract.d.ts +94 -0
- package/dist/health/agentic-contract.d.ts.map +1 -0
- package/dist/health/agentic-contract.js +2 -0
- package/dist/health/agentic-contract.js.map +1 -0
- package/dist/health/agentic-evidence.d.ts +16 -0
- package/dist/health/agentic-evidence.d.ts.map +1 -0
- package/dist/health/agentic-evidence.js +213 -0
- package/dist/health/agentic-evidence.js.map +1 -0
- package/dist/health/agentic.d.ts +11 -74
- package/dist/health/agentic.d.ts.map +1 -1
- package/dist/health/agentic.js +42 -216
- package/dist/health/agentic.js.map +1 -1
- package/dist/health/deadline.d.ts +4 -1
- package/dist/health/deadline.d.ts.map +1 -1
- package/dist/health/deadline.js +4 -3
- package/dist/health/deadline.js.map +1 -1
- package/dist/health/deterministic-inputs.d.ts.map +1 -1
- package/dist/health/deterministic-inputs.js +3 -11
- package/dist/health/deterministic-inputs.js.map +1 -1
- package/dist/health/deterministic-probes.d.ts +52 -0
- package/dist/health/deterministic-probes.d.ts.map +1 -0
- package/dist/health/deterministic-probes.js +142 -0
- package/dist/health/deterministic-probes.js.map +1 -0
- package/dist/health/deterministic.d.ts +2 -25
- package/dist/health/deterministic.d.ts.map +1 -1
- package/dist/health/deterministic.js +14 -106
- package/dist/health/deterministic.js.map +1 -1
- package/dist/health/finding-utils.d.ts +4 -3
- package/dist/health/finding-utils.d.ts.map +1 -1
- package/dist/health/finding-utils.js +4 -4
- package/dist/health/finding-utils.js.map +1 -1
- package/dist/health/governance-probes.d.ts +29 -24
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +29 -25
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/hook-inspection.d.ts +4 -3
- package/dist/health/hook-inspection.d.ts.map +1 -1
- package/dist/health/hook-inspection.js +17 -11
- package/dist/health/hook-inspection.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -4
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -9
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/prepare.js +24 -8
- package/dist/health/prepare.js.map +1 -1
- package/dist/health/project-probes.d.ts +14 -7
- package/dist/health/project-probes.d.ts.map +1 -1
- package/dist/health/project-probes.js +14 -9
- package/dist/health/project-probes.js.map +1 -1
- package/dist/health/ruleset-compare.d.ts +30 -0
- package/dist/health/ruleset-compare.d.ts.map +1 -0
- package/dist/health/ruleset-compare.js +143 -0
- package/dist/health/ruleset-compare.js.map +1 -0
- package/dist/health/ruleset-config-checks.d.ts +66 -0
- package/dist/health/ruleset-config-checks.d.ts.map +1 -0
- package/dist/health/ruleset-config-checks.js +190 -0
- package/dist/health/ruleset-config-checks.js.map +1 -0
- package/dist/health/ruleset-expected.d.ts +39 -0
- package/dist/health/ruleset-expected.d.ts.map +1 -0
- package/dist/health/ruleset-expected.js +181 -0
- package/dist/health/ruleset-expected.js.map +1 -0
- package/dist/health/ruleset-gh.d.ts +85 -0
- package/dist/health/ruleset-gh.d.ts.map +1 -0
- package/dist/health/ruleset-gh.js +177 -0
- package/dist/health/ruleset-gh.js.map +1 -0
- package/dist/health/ruleset-inspection.d.ts +13 -117
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +8 -738
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/health/ruleset-normalize.d.ts +32 -0
- package/dist/health/ruleset-normalize.d.ts.map +1 -0
- package/dist/health/ruleset-normalize.js +160 -0
- package/dist/health/ruleset-normalize.js.map +1 -0
- package/dist/health/template-compose.d.ts +9 -0
- package/dist/health/template-compose.d.ts.map +1 -0
- package/dist/health/template-compose.js +105 -0
- package/dist/health/template-compose.js.map +1 -0
- package/dist/health/template-inspection.d.ts +5 -52
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +13 -435
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/health/template-plan.d.ts +33 -0
- package/dist/health/template-plan.d.ts.map +1 -0
- package/dist/health/template-plan.js +154 -0
- package/dist/health/template-plan.js.map +1 -0
- package/dist/health/template-shape.d.ts +19 -0
- package/dist/health/template-shape.d.ts.map +1 -0
- package/dist/health/template-shape.js +122 -0
- package/dist/health/template-shape.js.map +1 -0
- package/dist/health/workflow-excerpt.d.ts +15 -0
- package/dist/health/workflow-excerpt.d.ts.map +1 -0
- package/dist/health/workflow-excerpt.js +88 -0
- package/dist/health/workflow-excerpt.js.map +1 -0
- package/dist/health/workflow-inputs-inspection.d.ts +16 -0
- package/dist/health/workflow-inputs-inspection.d.ts.map +1 -0
- package/dist/health/workflow-inputs-inspection.js +116 -0
- package/dist/health/workflow-inputs-inspection.js.map +1 -0
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +201 -20
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +73 -25
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +26 -9
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/git-state.d.ts.map +1 -1
- package/dist/standards/git-state.js +2 -2
- package/dist/standards/git-state.js.map +1 -1
- package/dist/standards/registry-checks.d.ts +34 -0
- package/dist/standards/registry-checks.d.ts.map +1 -0
- package/dist/standards/registry-checks.js +137 -0
- package/dist/standards/registry-checks.js.map +1 -0
- package/dist/standards/registry.d.ts +3 -13
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +105 -194
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/storage.js +8 -10
- package/dist/standards/storage.js.map +1 -1
- package/dist/strategies/deduplicate-arrays.d.ts +18 -0
- package/dist/strategies/deduplicate-arrays.d.ts.map +1 -0
- package/dist/strategies/deduplicate-arrays.js +25 -0
- package/dist/strategies/deduplicate-arrays.js.map +1 -0
- package/dist/strategies/package-lisa-detect.d.ts +10 -0
- package/dist/strategies/package-lisa-detect.d.ts.map +1 -0
- package/dist/strategies/package-lisa-detect.js +178 -0
- package/dist/strategies/package-lisa-detect.js.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts +16 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.js +37 -0
- package/dist/strategies/package-lisa-direct-floors.js.map +1 -0
- package/dist/strategies/package-lisa-host-pins.d.ts +43 -0
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -0
- package/dist/strategies/package-lisa-host-pins.js +254 -0
- package/dist/strategies/package-lisa-host-pins.js.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts +59 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.js +234 -0
- package/dist/strategies/package-lisa-manifest-guards.js.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts +34 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.js +106 -0
- package/dist/strategies/package-lisa-pin-alignment.js.map +1 -0
- package/dist/strategies/package-lisa-script-notes.d.ts +19 -0
- package/dist/strategies/package-lisa-script-notes.d.ts.map +1 -0
- package/dist/strategies/package-lisa-script-notes.js +145 -0
- package/dist/strategies/package-lisa-script-notes.js.map +1 -0
- package/dist/strategies/package-lisa-template-apply.d.ts +53 -0
- package/dist/strategies/package-lisa-template-apply.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-apply.js +216 -0
- package/dist/strategies/package-lisa-template-apply.js.map +1 -0
- package/dist/strategies/package-lisa-template-merge.d.ts +42 -0
- package/dist/strategies/package-lisa-template-merge.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-merge.js +202 -0
- package/dist/strategies/package-lisa-template-merge.js.map +1 -0
- package/dist/strategies/package-lisa-types.d.ts +5 -0
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +1 -195
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +27 -1333
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/tagged-merge-sections.d.ts +68 -0
- package/dist/strategies/tagged-merge-sections.d.ts.map +1 -0
- package/dist/strategies/tagged-merge-sections.js +113 -0
- package/dist/strategies/tagged-merge-sections.js.map +1 -0
- package/dist/strategies/tagged-merge.d.ts +1 -90
- package/dist/strategies/tagged-merge.d.ts.map +1 -1
- package/dist/strategies/tagged-merge.js +19 -190
- package/dist/strategies/tagged-merge.js.map +1 -1
- package/dist/utils/bounded-stream.d.ts +30 -0
- package/dist/utils/bounded-stream.d.ts.map +1 -0
- package/dist/utils/bounded-stream.js +63 -0
- package/dist/utils/bounded-stream.js.map +1 -0
- package/dist/utils/fibonacci.d.ts +3 -3
- package/dist/utils/fibonacci.d.ts.map +1 -1
- package/dist/utils/fibonacci.js +48 -10
- package/dist/utils/fibonacci.js.map +1 -1
- package/dist/utils/memo.d.ts +25 -0
- package/dist/utils/memo.d.ts.map +1 -0
- package/dist/utils/memo.js +32 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +3 -20
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/process-environment.d.ts +42 -0
- package/dist/utils/process-environment.d.ts.map +1 -0
- package/dist/utils/process-environment.js +52 -0
- package/dist/utils/process-environment.js.map +1 -0
- package/dist/utils/resolve-executable.d.ts +89 -0
- package/dist/utils/resolve-executable.d.ts.map +1 -0
- package/dist/utils/resolve-executable.js +224 -0
- package/dist/utils/resolve-executable.js.map +1 -0
- package/dist/utils/shell-command-line.d.ts +9 -0
- package/dist/utils/shell-command-line.d.ts.map +1 -0
- package/dist/utils/shell-command-line.js +43 -0
- package/dist/utils/shell-command-line.js.map +1 -0
- package/dist/utils/usage-accounting-totals.d.ts +19 -0
- package/dist/utils/usage-accounting-totals.d.ts.map +1 -0
- package/dist/utils/usage-accounting-totals.js +145 -0
- package/dist/utils/usage-accounting-totals.js.map +1 -0
- package/dist/utils/usage-accounting.d.ts +2 -14
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -169
- package/dist/utils/usage-accounting.js.map +1 -1
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-react-violations.test.js +213 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-valid.test.js +251 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-violations.test.js +222 -0
- package/eslint-plugin-code-organization/__tests__/statement-order-tester.js +42 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +6 -8
- package/expo/copy-overwrite/jest.setup.ts +11 -10
- package/expo/create-only/scripts/zap-baseline.sh +6 -18
- package/harper-fabric/create-only/scripts/zap-baseline.sh +7 -9
- package/nestjs/create-only/scripts/zap-baseline.sh +6 -7
- package/package.json +5 -5
- package/phaser/copy-overwrite/.husky/pre-push.verify +2 -0
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/lisa/hooks/track-plan-sessions.sh +7 -131
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-copilot/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-copilot/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-cursor/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-cursor/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-devin/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-devin/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/.codex-plugin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-agy/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-copilot/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-cursor/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-devin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-copilot/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-cursor/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-devin/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/.codex-plugin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-agy/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-copilot/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-copilot/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-cursor/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-cursor/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-devin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-devin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-devin/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/src/base/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/src/base/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/src/base/hooks/track-plan-sessions.sh +7 -131
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/src/harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/src/harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/src/nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/src/nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/src/nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/src/rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/src/rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/src/typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/src/typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/scripts/build-plugins.sh +1 -1
- package/scripts/check-derived-artifacts.mjs +2 -2
- package/scripts/check-generated-artifact-merge-coverage.mjs +45 -4
- package/scripts/check-orphan-test-processes.mjs +0 -1
- package/scripts/check-self-dependency-pin.mjs +0 -2
- package/scripts/claude-remote-setup.sh +12 -7
- package/scripts/cleanup-amplify-branches.sh +0 -1
- package/scripts/generate-export-surface.mjs +131 -61
- package/scripts/generate-lisa-owned-hash-ledger.mjs +87 -102
- package/scripts/generate-upstream-evidence-manifest.mjs +56 -49
- package/scripts/github-status-check.sh +5 -25
- package/scripts/install-claude-plugins.sh +10 -8
- package/scripts/lib/merge-generated-json.mjs +274 -0
- package/scripts/lib/upstream-manifest-staleness.mjs +38 -34
- package/scripts/lib/upstream-public-commits.mjs +35 -18
- package/scripts/lisa-commit-and-pr-local.sh +1 -1
- package/scripts/lisa-enforcement-fallback.sh +31 -32
- package/scripts/lisa-github-environments.sh +5 -1
- package/scripts/lisa-github-repo-settings.sh +5 -1
- package/scripts/lisa-github-repo-setup.sh +1 -2
- package/scripts/lisa-github-rulesets.sh +8 -8
- package/scripts/lisa-remote-env/session-start.sh +18 -5
- package/scripts/lisa-rollback-release.mjs +0 -2
- package/scripts/lisa-update-local.sh +1 -1
- package/scripts/merge-generated-artifact.mjs +18 -6
- package/scripts/raise-self-dependency-pin.mjs +0 -2
- package/scripts/run-artifact-checks.mjs +1 -1
- package/scripts/verify-packed-learnings-contract.mjs +36 -3
- package/scripts/verify-self-pin-raise.mjs +0 -2
- package/typescript/copy-contents/.husky/commit-msg +8 -2
- package/typescript/copy-contents/.husky/post-checkout +2 -0
- package/typescript/copy-contents/.husky/post-merge +2 -0
- package/typescript/copy-contents/.husky/pre-commit +10 -3
- package/typescript/copy-contents/.husky/pre-push +29 -16
- package/typescript/copy-contents/.husky/prepare-commit-msg +2 -0
- package/typescript/create-only/.husky/pre-push.local +2 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +0 -643
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines-per-function, max-lines -- config file needs a lot of lines */
|
|
2
1
|
/**
|
|
3
2
|
* ESLint 9 Flat Config - Shared Base
|
|
4
3
|
*
|
|
@@ -17,6 +16,7 @@ import prettier from "eslint-plugin-prettier/recommended";
|
|
|
17
16
|
import sonarjs from "eslint-plugin-sonarjs";
|
|
18
17
|
import globals from "globals";
|
|
19
18
|
import tseslint from "typescript-eslint";
|
|
19
|
+
import { getSharedRules } from "./shared-rules.js";
|
|
20
20
|
const specFilePattern = "**/*spec.ts";
|
|
21
21
|
/**
|
|
22
22
|
* Default ignore patterns used when not specified in project config.
|
|
@@ -147,168 +147,6 @@ export const getBaseConfigs = () => [
|
|
|
147
147
|
...oxlint.configs["flat/jest"],
|
|
148
148
|
...oxlint.configs["flat/vitest"],
|
|
149
149
|
];
|
|
150
|
-
/**
|
|
151
|
-
* Shared rules that apply to all TypeScript projects.
|
|
152
|
-
* These are rules that should be identical across typescript, expo, nestjs, etc.
|
|
153
|
-
* @param {object} thresholds - Threshold values for configurable rules
|
|
154
|
-
* @param {number} thresholds.cognitiveComplexity - Max cognitive complexity
|
|
155
|
-
* @param {number} thresholds.maxLines - Max lines per file
|
|
156
|
-
* @param {number} thresholds.maxLinesPerFunction - Max lines per function
|
|
157
|
-
* @returns {object} Rules configuration object
|
|
158
|
-
*/
|
|
159
|
-
export const getSharedRules = (thresholds) => ({
|
|
160
|
-
// Prettier: Disabled because running Prettier inside ESLint is redundant and slower.
|
|
161
|
-
// We use `format:check` from package.json for formatting validation and editor Prettier integration.
|
|
162
|
-
// The eslint-config-prettier (imported above) still disables conflicting ESLint rules.
|
|
163
|
-
// @see https://prettier.io/docs/en/integrating-with-linters.html
|
|
164
|
-
"prettier/prettier": "off",
|
|
165
|
-
// Import rules
|
|
166
|
-
"no-restricted-imports": [
|
|
167
|
-
"warn",
|
|
168
|
-
{
|
|
169
|
-
patterns: ["@/features/*/*"],
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
// File size - threshold loaded from eslint.thresholds.config.json
|
|
173
|
-
"max-lines": [
|
|
174
|
-
"error",
|
|
175
|
-
{
|
|
176
|
-
max: thresholds.maxLines,
|
|
177
|
-
skipBlankLines: true,
|
|
178
|
-
skipComments: true,
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
"max-lines-per-function": [
|
|
182
|
-
"error",
|
|
183
|
-
{
|
|
184
|
-
max: thresholds.maxLinesPerFunction,
|
|
185
|
-
skipBlankLines: true,
|
|
186
|
-
skipComments: true,
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
// Folder naming
|
|
190
|
-
// NOTE: eslint-plugin-folders is not compatible with ESLint 9 flat config
|
|
191
|
-
// The rule has no schema defined and ESLint 9 validates rule options strictly
|
|
192
|
-
// This needs to be addressed in a separate PR or the plugin needs to be updated
|
|
193
|
-
// "folders/match-regex": ["error", "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$", "/src/"],
|
|
194
|
-
// SonarJS rules - threshold loaded from eslint.thresholds.config.json
|
|
195
|
-
"sonarjs/cognitive-complexity": ["error", thresholds.cognitiveComplexity],
|
|
196
|
-
"sonarjs/no-identical-functions": "error",
|
|
197
|
-
"sonarjs/no-duplicate-string": "error",
|
|
198
|
-
"sonarjs/no-nested-functions": "error",
|
|
199
|
-
"sonarjs/no-nested-template-literals": "warn",
|
|
200
|
-
"sonarjs/prefer-immediate-return": "warn",
|
|
201
|
-
"sonarjs/prefer-single-boolean-return": "warn",
|
|
202
|
-
"sonarjs/no-collapsible-if": "warn",
|
|
203
|
-
"sonarjs/pseudo-random": "error",
|
|
204
|
-
"sonarjs/no-clear-text-protocols": "error",
|
|
205
|
-
"sonarjs/prefer-read-only-props": "error",
|
|
206
|
-
"sonarjs/no-empty-test-file": "warn",
|
|
207
|
-
"sonarjs/no-nested-conditional": "off",
|
|
208
|
-
"sonarjs/no-commented-code": "warn",
|
|
209
|
-
"sonarjs/no-ignored-exceptions": "warn",
|
|
210
|
-
"sonarjs/todo-tag": "warn",
|
|
211
|
-
// Next takes forever and doesn't provide much value
|
|
212
|
-
"sonarjs/deprecation": "off",
|
|
213
|
-
// Next takes forever and doesn't provide value
|
|
214
|
-
"sonarjs/aws-restricted-ip-admin-access": "off",
|
|
215
|
-
// This gives too many false positives
|
|
216
|
-
"sonarjs/no-hardcoded-ip": "off",
|
|
217
|
-
// This just seems to be wrong and gives all kinds of false positives
|
|
218
|
-
"sonarjs/different-types-comparison": "off",
|
|
219
|
-
// This duplicates another lint check
|
|
220
|
-
"sonarjs/no-unused-vars": "off",
|
|
221
|
-
// ESLint comments
|
|
222
|
-
"@eslint-community/eslint-comments/require-description": "error",
|
|
223
|
-
"@eslint-community/eslint-comments/disable-enable-pair": "error",
|
|
224
|
-
"@eslint-community/eslint-comments/no-unlimited-disable": "error",
|
|
225
|
-
// General rules
|
|
226
|
-
"no-extra-boolean-cast": "off",
|
|
227
|
-
"prefer-const": "error",
|
|
228
|
-
"no-param-reassign": "error",
|
|
229
|
-
"no-var": "error",
|
|
230
|
-
"brace-style": "error",
|
|
231
|
-
"prefer-template": "error",
|
|
232
|
-
radix: "error",
|
|
233
|
-
"space-before-blocks": "error",
|
|
234
|
-
"no-unused-vars": "off",
|
|
235
|
-
// TypeScript rules
|
|
236
|
-
"@typescript-eslint/no-explicit-any": "error",
|
|
237
|
-
"@typescript-eslint/no-unused-vars": [
|
|
238
|
-
"error",
|
|
239
|
-
{
|
|
240
|
-
argsIgnorePattern: "^_",
|
|
241
|
-
varsIgnorePattern: "^_|^unstable_settings$|^React$",
|
|
242
|
-
caughtErrorsIgnorePattern: "^_",
|
|
243
|
-
destructuredArrayIgnorePattern: "^_",
|
|
244
|
-
ignoreRestSiblings: true,
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
// New rules in typescript-eslint v8 - disabled temporarily
|
|
248
|
-
"@typescript-eslint/no-require-imports": "off",
|
|
249
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
|
|
250
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
251
|
-
"@typescript-eslint/prefer-as-const": "off",
|
|
252
|
-
"@typescript-eslint/no-empty-object-type": "off",
|
|
253
|
-
"@typescript-eslint/no-unused-expressions": "off",
|
|
254
|
-
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
255
|
-
// Functional rules - configured to avoid type-checking requirements
|
|
256
|
-
// Rules that require type info are disabled
|
|
257
|
-
"functional/no-mixed-types": "off",
|
|
258
|
-
"functional/functional-parameters": "off",
|
|
259
|
-
"functional/prefer-immutable-types": "off",
|
|
260
|
-
"functional/no-expression-statements": "off",
|
|
261
|
-
"functional/no-conditional-statements": "off",
|
|
262
|
-
"functional/prefer-property-signatures": "off",
|
|
263
|
-
"functional/no-return-void": "off",
|
|
264
|
-
"functional/no-throw-statements": "off",
|
|
265
|
-
"functional/prefer-readonly-type": "off",
|
|
266
|
-
"functional/prefer-tacit": "off",
|
|
267
|
-
"functional/readonly-type": "off",
|
|
268
|
-
"functional/type-declaration-immutability": "off",
|
|
269
|
-
// Rules we want - these work without type info
|
|
270
|
-
// NOTE: functional/immutable-data requires type info - enabled in TypeScript file config below
|
|
271
|
-
"functional/immutable-data": "off",
|
|
272
|
-
"functional/no-let": "error",
|
|
273
|
-
// JSDoc rules
|
|
274
|
-
"jsdoc/require-jsdoc": [
|
|
275
|
-
"error",
|
|
276
|
-
{
|
|
277
|
-
require: {
|
|
278
|
-
FunctionDeclaration: true,
|
|
279
|
-
MethodDefinition: true,
|
|
280
|
-
ClassDeclaration: true,
|
|
281
|
-
ArrowFunctionExpression: false,
|
|
282
|
-
FunctionExpression: false,
|
|
283
|
-
},
|
|
284
|
-
contexts: [
|
|
285
|
-
"TSInterfaceDeclaration",
|
|
286
|
-
"TSTypeAliasDeclaration",
|
|
287
|
-
"VariableDeclaration[declarations.0.init.type='ArrowFunctionExpression']:has([id.name=/^[A-Z]/])",
|
|
288
|
-
],
|
|
289
|
-
},
|
|
290
|
-
],
|
|
291
|
-
"jsdoc/require-description": "error",
|
|
292
|
-
"jsdoc/require-param": "error",
|
|
293
|
-
"jsdoc/require-returns": "error",
|
|
294
|
-
"jsdoc/require-param-description": "error",
|
|
295
|
-
"jsdoc/require-returns-description": "error",
|
|
296
|
-
"jsdoc/require-property-description": "error",
|
|
297
|
-
// prettier-ignore
|
|
298
|
-
"jsdoc/check-tag-names": ["error", { definedTags: ["remarks", "precondition", "entity", "security", "jest-config-loader", "jest-config-loader-options"] }],
|
|
299
|
-
"jsdoc/no-types": "off",
|
|
300
|
-
"jsdoc/require-param-type": "off",
|
|
301
|
-
"jsdoc/require-returns-type": "off",
|
|
302
|
-
"jsdoc/require-property-type": "off",
|
|
303
|
-
// Keep these at the "warn" JSDoc's recommended-typescript-flavor gives them.
|
|
304
|
-
// From eslint-plugin-oxlint 1.65.0 its `flat/jsdoc` preset turns both OFF,
|
|
305
|
-
// because oxlint implements them — but in its pedantic category, and Lisa's
|
|
306
|
-
// oxlint config enables only correctness, so nothing would check them. Shared
|
|
307
|
-
// rules are spread after getBaseConfigs() in every stack, so this wins over
|
|
308
|
-
// the preset and lets the forced oxlint range reach below 1.86.0 (#4508).
|
|
309
|
-
"jsdoc/require-throws-type": "warn",
|
|
310
|
-
"jsdoc/require-yields-type": "warn",
|
|
311
|
-
});
|
|
312
150
|
/**
|
|
313
151
|
* Base language options for all files.
|
|
314
152
|
* @returns {object} Language options configuration
|
|
@@ -533,6 +371,5 @@ export const getTsTestFilesOverride = (filePatterns = ["**/*.test.ts", specFileP
|
|
|
533
371
|
},
|
|
534
372
|
});
|
|
535
373
|
// Re-export plugins and configs for use in project-specific configs
|
|
536
|
-
export { eslintComments, functional, globals, js, jsdoc, prettier, sonarjs, tseslint, };
|
|
537
|
-
/* eslint-enable max-lines-per-function, max-lines -- config file needs a lot of lines */
|
|
374
|
+
export { eslintComments, getSharedRules, functional, globals, js, jsdoc, prettier, sonarjs, tseslint, };
|
|
538
375
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/configs/eslint/base.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/configs/eslint/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,cAAc,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,QAAQ,MAAM,oCAAoC,CAAC;AAC1D,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,eAAe,GAAG,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,UAAU;IACV,SAAS;IACT,WAAW;IACX,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,iBAAiB;IACjB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,0BAA0B;IAC1B,kBAAkB;IAClB,YAAY;I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AAO;YACP;gBACE,aAAa,EAAE,IAAI;gBACnB,uBAAuB,EAAE,IAAI;gBAC7B,0BAA0B,EAAE;oBAC1B,sBAAsB,EAAE,IAAI;iBAC7B;gBACD,qBAAqB,EAAE,CAAC,eAAe,EAAE,WAAW,EAAE,SAAS,CAAC;aACjE;SACF;KACF;CACF,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,eAAyB,CAAC,cAAc,EAAE,eAAe,CAAC,EAC1D,EAAE,CAAC,CAAC;IACJ,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE;QACL,oEAAoE;QACpE,2BAA2B,EAAE,KAAK;QAClC,6CAA6C;QAC7C,wBAAwB,EAAE,KAAK;KAChC;CACF,CAAC,CAAC;AAEH,oEAAoE;AACpE,OAAO,EACL,cAAc,EACd,cAAc,EACd,UAAU,EACV,OAAO,EACP,EAAE,EACF,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,GACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/cdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cdk.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/cdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAEL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EAItB,cAAc,EAIf,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,cAAc,GACf,CAAC;AAsGF;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,eAAe,EACf,cAA2B,EAC3B,UAA8B,GAC/B,EAAE;IACD,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,iBAAiB,CAAC;CACvC,GAAG,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAoCnC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines-per-function -- config file requires many lines */
|
|
2
1
|
/**
|
|
3
2
|
* ESLint 9 Flat Config - CDK Stack
|
|
4
3
|
*
|
|
@@ -15,6 +14,7 @@
|
|
|
15
14
|
*/
|
|
16
15
|
// Import TypeScript config and utilities
|
|
17
16
|
import { codeOrganization, defaultIgnores, defaultThresholds, getBaseConfigs, getBaseLanguageOptions, getJsFilesOverride, getScriptsFilesOverride, getSharedFilesOverride, getSharedRules, getTestFilesOverride, getTsFilesOverride, getTsTestFilesOverride, } from "./typescript.js";
|
|
17
|
+
import { processEnvironmentBans } from "./process-environment-bans.js";
|
|
18
18
|
// Re-export for downstream configs
|
|
19
19
|
export { defaultIgnores, defaultThresholds, getBaseConfigs, getBaseLanguageOptions, getSharedRules, };
|
|
20
20
|
// CDK-specific ignores
|
|
@@ -25,74 +25,59 @@ const cdkIgnores = [
|
|
|
25
25
|
"*.d.ts",
|
|
26
26
|
];
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
31
|
-
* @
|
|
32
|
-
* @param {object} [options.thresholds] - Threshold overrides
|
|
33
|
-
* @returns {import("eslint").Linter.Config[]} ESLint flat config array
|
|
28
|
+
* The CDK rule block applied to every file: shared rules plus the CDK
|
|
29
|
+
* process.env ban, class allowance, and documentation requirements.
|
|
30
|
+
* @param thresholds - Threshold values for the shared size and complexity rules
|
|
31
|
+
* @returns The ESLint flat config object for all CDK files
|
|
34
32
|
*/
|
|
35
|
-
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
|
|
33
|
+
function getCdkAllFilesConfig(thresholds) {
|
|
34
|
+
return {
|
|
35
|
+
languageOptions: getBaseLanguageOptions(),
|
|
36
|
+
plugins: {
|
|
37
|
+
"code-organization": codeOrganization,
|
|
40
38
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
...
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"functional/no-classes": "off",
|
|
66
|
-
// CDK constructs and stacks require documentation
|
|
67
|
-
"jsdoc/require-jsdoc": [
|
|
68
|
-
"error",
|
|
69
|
-
{
|
|
70
|
-
require: {
|
|
71
|
-
FunctionDeclaration: true,
|
|
72
|
-
MethodDefinition: true,
|
|
73
|
-
ClassDeclaration: true,
|
|
74
|
-
ArrowFunctionExpression: false,
|
|
75
|
-
FunctionExpression: false,
|
|
76
|
-
},
|
|
77
|
-
contexts: [
|
|
78
|
-
"TSInterfaceDeclaration",
|
|
79
|
-
"TSTypeAliasDeclaration",
|
|
80
|
-
"VariableDeclaration[declarations.0.init.type='ArrowFunctionExpression']:has([id.name=/^[A-Z]/])",
|
|
81
|
-
],
|
|
39
|
+
rules: {
|
|
40
|
+
// Shared rules from base
|
|
41
|
+
...getSharedRules(thresholds),
|
|
42
|
+
// Code organization
|
|
43
|
+
"code-organization/enforce-statement-order": "error",
|
|
44
|
+
// Configuration enforcement - prevent direct process.env access
|
|
45
|
+
// All configuration should go through config module
|
|
46
|
+
// @see the host rules in .agents/rules/
|
|
47
|
+
"no-restricted-syntax": [
|
|
48
|
+
"error",
|
|
49
|
+
...processEnvironmentBans("Direct process.env access is forbidden. Use config module for type-safe configuration. See the host rules in .agents/rules/."),
|
|
50
|
+
],
|
|
51
|
+
// CDK uses classes for constructs and stacks
|
|
52
|
+
"functional/no-classes": "off",
|
|
53
|
+
// CDK constructs and stacks require documentation
|
|
54
|
+
"jsdoc/require-jsdoc": [
|
|
55
|
+
"error",
|
|
56
|
+
{
|
|
57
|
+
require: {
|
|
58
|
+
FunctionDeclaration: true,
|
|
59
|
+
MethodDefinition: true,
|
|
60
|
+
ClassDeclaration: true,
|
|
61
|
+
ArrowFunctionExpression: false,
|
|
62
|
+
FunctionExpression: false,
|
|
82
63
|
},
|
|
83
|
-
|
|
84
|
-
|
|
64
|
+
contexts: [
|
|
65
|
+
"TSInterfaceDeclaration",
|
|
66
|
+
"TSTypeAliasDeclaration",
|
|
67
|
+
"VariableDeclaration[declarations.0.init.type='ArrowFunctionExpression']:has([id.name=/^[A-Z]/])",
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
85
71
|
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
getTsTestFilesOverride(["**/*.test.ts", "**/*.spec.ts"]),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* CDK path overrides: entry points and config files may read process.env, and
|
|
76
|
+
* Lambda handlers get their own complexity ceiling.
|
|
77
|
+
* @returns ESLint flat config objects for CDK-specific paths
|
|
78
|
+
*/
|
|
79
|
+
function getCdkPathOverrides() {
|
|
80
|
+
return [
|
|
96
81
|
// CDK bin files - entry points can access process.env for stage selection
|
|
97
82
|
{
|
|
98
83
|
files: ["bin/**/*.ts"],
|
|
@@ -119,11 +104,42 @@ export function getCdkConfig({ tsconfigRootDir, ignorePatterns = cdkIgnores, thr
|
|
|
119
104
|
"sonarjs/cognitive-complexity": ["error", 15],
|
|
120
105
|
},
|
|
121
106
|
},
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates the CDK ESLint configuration.
|
|
111
|
+
* @param {object} options - Configuration options
|
|
112
|
+
* @param {string} options.tsconfigRootDir - Root directory for tsconfig.json
|
|
113
|
+
* @param {string[]} [options.ignorePatterns] - Patterns to ignore
|
|
114
|
+
* @param {object} [options.thresholds] - Threshold overrides
|
|
115
|
+
* @returns {import("eslint").Linter.Config[]} ESLint flat config array
|
|
116
|
+
*/
|
|
117
|
+
export function getCdkConfig({ tsconfigRootDir, ignorePatterns = cdkIgnores, thresholds = defaultThresholds, }) {
|
|
118
|
+
return [
|
|
119
|
+
// Global ignores
|
|
120
|
+
{
|
|
121
|
+
ignores: ignorePatterns,
|
|
122
|
+
},
|
|
123
|
+
// Base configurations from shared module
|
|
124
|
+
...getBaseConfigs(),
|
|
125
|
+
// Base configuration for all files
|
|
126
|
+
getCdkAllFilesConfig(thresholds),
|
|
127
|
+
// JavaScript files override
|
|
128
|
+
getJsFilesOverride(),
|
|
129
|
+
// Shared hooks and components
|
|
130
|
+
getSharedFilesOverride(),
|
|
131
|
+
// Test files
|
|
132
|
+
getTestFilesOverride(),
|
|
133
|
+
// TypeScript files - enable type-checked linting
|
|
134
|
+
getTsFilesOverride(["**/*.ts"], tsconfigRootDir),
|
|
135
|
+
// TypeScript test files - disable immutable-data
|
|
136
|
+
getTsTestFilesOverride(["**/*.test.ts", "**/*.spec.ts"]),
|
|
137
|
+
// CDK bin files, config files, and Lambda handlers
|
|
138
|
+
...getCdkPathOverrides(),
|
|
122
139
|
// Standalone maintenance scripts — MUST stay last so it wins over the
|
|
123
140
|
// application-oriented overrides above. These files used to be ignored
|
|
124
141
|
// outright; they are linted now, under a profile that suits a CLI.
|
|
125
142
|
getScriptsFilesOverride(),
|
|
126
143
|
];
|
|
127
144
|
}
|
|
128
|
-
/* eslint-enable max-lines-per-function -- config file requires many lines */
|
|
129
145
|
//# sourceMappingURL=cdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.js","sourceRoot":"","sources":["../../../src/configs/eslint/cdk.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cdk.js","sourceRoot":"","sources":["../../../src/configs/eslint/cdk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
2
|
+
* jsx-a11y `strict` rules that eslint-plugin-oxlint's `flat/jsx-a11y` preset
|
|
3
|
+
* hands to oxlint from 1.63.0–1.65.0, where they only warn. Expo restores them
|
|
4
|
+
* after the preset so they keep blocking (#4508).
|
|
5
|
+
*/
|
|
6
|
+
export declare const OXLINT_HANDED_OFF_A11Y_RULES: readonly ["jsx-a11y/interactive-supports-focus", "jsx-a11y/no-interactive-element-to-noninteractive-role", "jsx-a11y/no-noninteractive-element-interactions", "jsx-a11y/no-noninteractive-element-to-interactive-role"];
|
|
7
|
+
/**
|
|
8
|
+
* Overrides keyed on file type: JS, shared, UI components, tests, TS and TSX.
|
|
9
|
+
* @param sourceRoot - Prefix for source-relative file globs
|
|
10
|
+
* @param tsconfigRootDir - Root directory for tsconfig.json
|
|
11
|
+
* @returns ESLint flat config objects for Expo file types
|
|
12
|
+
*/
|
|
13
|
+
export declare function getExpoSourceOverrides(sourceRoot: string, tsconfigRootDir: string): ({
|
|
14
|
+
files: string[];
|
|
15
|
+
rules: {
|
|
16
|
+
"sonarjs/cognitive-complexity": string;
|
|
17
|
+
"@typescript-eslint/no-require-imports": string;
|
|
18
|
+
"max-lines-per-function": string;
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
files: string[];
|
|
22
|
+
rules: {
|
|
23
|
+
"no-restricted-imports": string;
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
files: string[];
|
|
27
|
+
rules: {
|
|
28
|
+
"functional/immutable-data": string;
|
|
29
|
+
"max-lines-per-function": string;
|
|
30
|
+
};
|
|
31
|
+
} | {
|
|
32
|
+
files: string[];
|
|
33
|
+
rules: {
|
|
34
|
+
"ui-standards/no-classname-outside-ui": string;
|
|
35
|
+
"jsdoc/require-returns"?: never;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
rules: {
|
|
39
|
+
"react/prop-types": string;
|
|
40
|
+
"functional/immutable-data": (string | {
|
|
41
|
+
ignoreClasses: boolean;
|
|
42
|
+
ignoreImmediateMutation: boolean;
|
|
43
|
+
ignoreNonConstDeclarations: {
|
|
44
|
+
treatParametersAsConst: boolean;
|
|
45
|
+
};
|
|
46
|
+
ignoreAccessorPattern: string[];
|
|
47
|
+
})[];
|
|
48
|
+
"ui-standards/no-classname-outside-ui"?: never;
|
|
49
|
+
"jsdoc/require-returns"?: never;
|
|
50
|
+
};
|
|
51
|
+
files: string[];
|
|
52
|
+
languageOptions: {
|
|
53
|
+
parserOptions: {
|
|
54
|
+
project: string;
|
|
55
|
+
tsconfigRootDir: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
} | {
|
|
59
|
+
files: string[];
|
|
60
|
+
rules: {
|
|
61
|
+
"jsdoc/require-returns": string;
|
|
62
|
+
"ui-standards/no-classname-outside-ui"?: never;
|
|
63
|
+
};
|
|
64
|
+
})[];
|
|
65
|
+
/**
|
|
66
|
+
* Component-structure, view-gate and view-memo overrides.
|
|
67
|
+
* @param sourceRoot - Prefix for source-relative file globs
|
|
68
|
+
* @returns ESLint flat config objects enforcing component structure
|
|
69
|
+
*/
|
|
70
|
+
export declare function getExpoStructureOverrides(sourceRoot: string): import("eslint").Linter.Config[];
|
|
71
|
+
/**
|
|
72
|
+
* Files allowed to read process.env directly: the env module, the tests that
|
|
73
|
+
* mock it, and configuration files.
|
|
74
|
+
* @returns ESLint flat config objects relaxing the env ban
|
|
75
|
+
*/
|
|
76
|
+
export declare function getExpoEnvOverrides(): {
|
|
77
|
+
files: string[];
|
|
78
|
+
rules: {
|
|
79
|
+
"no-restricted-syntax": string;
|
|
80
|
+
};
|
|
81
|
+
}[];
|
|
82
|
+
/**
|
|
83
|
+
* The oxlint hand-off presets and the jsx-a11y strict restore that must follow
|
|
84
|
+
* them.
|
|
85
|
+
* @returns ESLint flat config objects that close the Expo config
|
|
86
|
+
*/
|
|
87
|
+
export declare function getExpoOxlintConfigs(): ({
|
|
88
|
+
name?: string;
|
|
89
|
+
rules?: Record<string, "off">;
|
|
90
|
+
ignores?: string[];
|
|
91
|
+
} | {
|
|
92
|
+
readonly name: "oxlint/react";
|
|
93
|
+
readonly rules: Record<string, "off">;
|
|
94
|
+
} | {
|
|
95
|
+
readonly name: "oxlint/jsx-a11y";
|
|
96
|
+
readonly rules: Record<string, "off">;
|
|
97
|
+
} | {
|
|
98
|
+
name: string;
|
|
99
|
+
rules: {
|
|
100
|
+
[k: string]: any;
|
|
101
|
+
};
|
|
102
|
+
})[];
|
|
103
|
+
//# sourceMappingURL=expo-overrides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expo-overrides.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/expo-overrides.ts"],"names":[],"mappings":"AAuBA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,yNAK/B,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuDxB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAuClC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB;;;;;IAiClC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB;;;;;;;;;;;;;;;KAuBnC"}
|