@hailstails/hone 1.4.0 → 2.0.0-pre.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/ADOPTING.md +239 -168
- package/CHANGELOG.md +141 -0
- package/MIGRATING.md +145 -45
- package/README.md +148 -182
- package/chunks/chunk-5HRMJ4O2.js +608 -0
- package/chunks/chunk-5U4JMWNV.js +9 -0
- package/chunks/{chunk-FEWCJU7H.js → chunk-ASUN4AVC.js} +31 -12
- package/chunks/chunk-DGOLOS5A.js +9 -0
- package/chunks/{chunk-HJA4CX7C.js → chunk-FBZBSDED.js} +1 -1
- package/chunks/{chunk-Y2KPZDDV.js → chunk-GNOMK7CR.js} +201 -98
- package/chunks/chunk-IX2VZTBO.js +887 -0
- package/chunks/{chunk-QWA6OVLC.js → chunk-K2W3D3NB.js} +8 -2
- package/chunks/chunk-L7BGRC6D.js +22 -0
- package/chunks/chunk-M6SOGWT7.js +82 -0
- package/chunks/chunk-MWLBA4B3.js +849 -0
- package/chunks/chunk-NRIQD3PI.js +38 -0
- package/chunks/chunk-OKLYWD2Z.js +823 -0
- package/chunks/{chunk-3HFJHJDO.js → chunk-QP5TLOBY.js} +17 -8
- package/chunks/chunk-R75QELTA.js +481 -0
- package/chunks/chunk-RANAKCTW.js +31 -0
- package/chunks/{chunk-NA5L6PUE.js → chunk-RANIXNWY.js} +1 -2
- package/chunks/chunk-RFR3ITBS.js +9 -0
- package/chunks/{chunk-Z4UBS7WI.js → chunk-RGSHTPLA.js} +26 -7
- package/chunks/{chunk-T32FOWZA.js → chunk-TNY2PASL.js} +14 -18
- package/chunks/{chunk-Y4SMWOD2.js → chunk-UJONWHA4.js} +2 -2
- package/chunks/{chunk-WF3PPYRR.js → chunk-VYBO2Q65.js} +4 -2
- package/chunks/chunk-Z6JHBNDS.js +15 -0
- package/chunks/eslint-10-boundary-A4JIQ734.js +14 -0
- package/chunks/eslint-9-boundary-CL5DDBHX.js +34 -0
- package/docs/adding-a-discipline-or-mechanism.md +23 -19
- package/docs/extending.md +6 -5
- package/docs/output-contract.md +713 -16
- package/docs/why-chain-contract.md +6 -6
- package/methods/README.md +2 -2
- package/methods/assessment-template.md +3 -3
- package/methods/lenses/clean-architecture.md +26 -62
- package/methods/lenses/decomposition.md +7 -7
- package/methods/lenses/defended-on-intent.md +6 -6
- package/methods/lenses/di-discipline.md +18 -21
- package/methods/lenses/errors-as-data.md +6 -6
- package/methods/lenses/function-first.md +25 -27
- package/methods/lenses/naming.md +6 -6
- package/methods/lenses/test-discipline.md +8 -8
- package/methods/lenses/type-soundness.md +6 -6
- package/methods/lenses/zod-boundary.md +9 -9
- package/package.json +30 -28
- package/rules/README.md +335 -54
- package/rules/SPIRIT.md +4 -4
- package/rules/cases/a-value-is-one-of-several-kinds-or-states.md +20 -0
- package/rules/cases/an-adopter-is-not-handed-our-risk.md +17 -0
- package/rules/cases/an-operation-can-fail.md +20 -0
- package/rules/cases/builds-the-real-implementations.md +25 -0
- package/rules/cases/causes-an-effect.md +26 -0
- package/rules/cases/checks-a-value-that-may-be-one-of-several-outcomes.md +20 -0
- package/rules/cases/checks-conditions-before-its-work.md +20 -0
- package/rules/cases/coordinates-other-units.md +20 -0
- package/rules/cases/does-one-job.md +23 -0
- package/rules/cases/explains-something-in-prose.md +20 -0
- package/rules/cases/gives-a-value-its-type.md +26 -0
- package/rules/cases/gives-each-unit-its-test.md +20 -0
- package/rules/cases/keeps-state-or-settings-across-calls.md +20 -0
- package/rules/cases/makes-a-new-value-from-what-it-has.md +17 -0
- package/rules/cases/names-something.md +20 -0
- package/rules/cases/needs-the-current-time-a-random-value-a-new-id-or-an-outside-ordering.md +26 -0
- package/rules/cases/puts-code-in-a-file-or-folder.md +20 -0
- package/rules/cases/reads-data-from-outside.md +23 -0
- package/rules/cases/reuses-behaviour-from-another-unit-or-type.md +20 -0
- package/rules/cases/sends-data-out-of-the-program.md +20 -0
- package/rules/cases/sets-how-strictly-the-checker-works.md +14 -0
- package/rules/cases/ships-code-for-others.md +17 -0
- package/rules/cases/states-what-the-unit-gives-back-for-one-case-or-several.md +20 -0
- package/rules/cases/takes-an-outside-dependency.md +38 -0
- package/rules/cases/tests-across-units-or-against-a-real-system.md +20 -0
- package/rules/cases/uses-a-system-or-service-outside-the-program.md +29 -0
- package/rules/cases/uses-what-a-collaborator-gives-back.md +20 -0
- package/rules/cases/writes-basic-logic.md +17 -0
- package/rules/cases.md +71 -0
- package/rules/numbers.md +155 -0
- package/rules/principles/external-behaviour-sits-at-a-boundary.md +12 -0
- package/rules/principles/no-hidden-effects.md +17 -0
- package/rules/principles/no-leak-across-a-boundary.md +19 -0
- package/rules/principles/one-place-decides.md +12 -0
- package/rules/principles/our-code-reads-in-the-common-language.md +12 -0
- package/rules/principles/outside-risk-is-carried-on-purpose.md +13 -0
- package/rules/principles/tests-are-ours.md +12 -0
- package/rules/principles/the-type-checker-proves-it.md +12 -0
- package/rules/principles.md +93 -0
- package/rules/record-kinds/authorised-location.md +26 -0
- package/rules/record-kinds/boundary-record.md +9 -0
- package/rules/record-kinds/debt.md +23 -0
- package/rules/record-kinds/dependency-record.md +9 -0
- package/rules/record-kinds/deviation.md +9 -0
- package/rules/records.md +137 -0
- package/rules/rules/declared-not-asserted.md +16 -0
- package/rules/rules/doer-or-orchestrator.md +16 -0
- package/rules/rules/failures-are-values.md +15 -0
- package/rules/rules/fixed-versions.md +11 -0
- package/rules/rules/guard-first.md +14 -0
- package/rules/rules/handed-what-it-uses.md +16 -0
- package/rules/rules/kinds-are-named.md +16 -0
- package/rules/rules/one-reason-per-module.md +18 -0
- package/rules/rules/one-word-everywhere.md +19 -0
- package/rules/rules/outside-dependencies-justified.md +14 -0
- package/rules/rules/outside-dependencies-stay-at-boundaries.md +18 -0
- package/rules/rules/ports-declared-inside.md +22 -0
- package/rules/rules/shipped-risk-declared.md +11 -0
- package/rules/rules/straight-through-tests.md +15 -0
- package/rules/rules/tested-where-its-owned.md +20 -0
- package/rules/rules/tools-live-in-the-repo.md +11 -0
- package/rules/rules/upstream-stays-untouched.md +11 -0
- package/rules/rules/written-out-answers.md +17 -0
- package/rules/rules.md +185 -0
- package/rules/sources.md +142 -0
- package/rules/typescript/checks.md +1685 -0
- package/rules/typescript/recipes/adapter-per-outside-party.md +18 -0
- package/rules/typescript/recipes/assert-to-narrow.md +18 -0
- package/rules/typescript/recipes/bounded-context-generic.md +19 -0
- package/rules/typescript/recipes/closure-factory.md +20 -0
- package/rules/typescript/recipes/companion-test-file.md +18 -0
- package/rules/typescript/recipes/composed-orchestrator.md +18 -0
- package/rules/typescript/recipes/composition-root.md +18 -0
- package/rules/typescript/recipes/copy-never-write-in.md +18 -0
- package/rules/typescript/recipes/declared-not-bundled.md +17 -0
- package/rules/typescript/recipes/dependency-record.md +20 -0
- package/rules/typescript/recipes/domain-vocabulary-list.md +18 -0
- package/rules/typescript/recipes/entity-module.md +20 -0
- package/rules/typescript/recipes/exact-pins-and-a-lock-file.md +18 -0
- package/rules/typescript/recipes/extension-outside-the-vendored-code.md +18 -0
- package/rules/typescript/recipes/failure-asserted-as-a-value.md +18 -0
- package/rules/typescript/recipes/failure-mapping-at-the-adapter.md +20 -0
- package/rules/typescript/recipes/fix-the-declaration-not-the-value.md +18 -0
- package/rules/typescript/recipes/functional-iteration.md +18 -0
- package/rules/typescript/recipes/guard-clauses.md +18 -0
- package/rules/typescript/recipes/integration-test-owns-its-scratch.md +18 -0
- package/rules/typescript/recipes/integration-test-suffix.md +18 -0
- package/rules/typescript/recipes/iteach-over-typed-rows.md +18 -0
- package/rules/typescript/recipes/map-out-at-the-adapter.md +18 -0
- package/rules/typescript/recipes/meaning-in-names-not-comments.md +22 -0
- package/rules/typescript/recipes/named-exported-type.md +18 -0
- package/rules/typescript/recipes/narrow-ports.md +18 -0
- package/rules/typescript/recipes/one-argument-object.md +19 -0
- package/rules/typescript/recipes/port-in-the-domain.md +19 -0
- package/rules/typescript/recipes/ports-in-the-argument.md +18 -0
- package/rules/typescript/recipes/repo-scripts-only.md +18 -0
- package/rules/typescript/recipes/result-union.md +22 -0
- package/rules/typescript/recipes/screaming-folders.md +20 -0
- package/rules/typescript/recipes/shared-strict-base-config.md +20 -0
- package/rules/typescript/recipes/stub-with-vifn.md +20 -0
- package/rules/typescript/recipes/tagged-union-and-exhaustive-switch.md +18 -0
- package/rules/typescript/recipes/whole-words.md +18 -0
- package/rules/typescript/recipes/whole-written-out-expectation.md +18 -0
- package/rules/typescript/recipes/world-values-through-a-port.md +18 -0
- package/rules/typescript/recipes/zod-at-the-producers-adapter.md +19 -0
- package/rules/typescript/recipes.md +390 -0
- package/rules/typescript/symptoms/absence-standing-for-a-state.md +36 -0
- package/rules/typescript/symptoms/adapter-built-outside-the-root.md +30 -0
- package/rules/typescript/symptoms/ambient-randomness.md +36 -0
- package/rules/typescript/symptoms/answer-set-in-a-hook.md +45 -0
- package/rules/typescript/symptoms/authored-class-or-this/class-keyword.md +30 -0
- package/rules/typescript/symptoms/authored-class-or-this/static-members-only.md +18 -0
- package/rules/typescript/symptoms/authored-class-or-this.md +49 -0
- package/rules/typescript/symptoms/behaviour-tested-away-from-its-owner.md +44 -0
- package/rules/typescript/symptoms/boolean-in-a-signature/boolean-annotation.md +30 -0
- package/rules/typescript/symptoms/boolean-in-a-signature.md +43 -0
- package/rules/typescript/symptoms/branch-in-a-test/test-body.md +213 -0
- package/rules/typescript/symptoms/branch-in-a-test.md +48 -0
- package/rules/typescript/symptoms/bundled-dependency.md +28 -0
- package/rules/typescript/symptoms/catch-all-failure-kind.md +37 -0
- package/rules/typescript/symptoms/change-spread-across-modules.md +27 -0
- package/rules/typescript/symptoms/claimed-type/cast-to-any.md +29 -0
- package/rules/typescript/symptoms/claimed-type/non-null-assertions.md +34 -0
- package/rules/typescript/symptoms/claimed-type/unlisted-cast-site.md +34 -0
- package/rules/typescript/symptoms/claimed-type.md +56 -0
- package/rules/typescript/symptoms/computed-value-in-a-test/test-body.md +144 -0
- package/rules/typescript/symptoms/computed-value-in-a-test.md +36 -0
- package/rules/typescript/symptoms/coverage-gate.md +27 -0
- package/rules/typescript/symptoms/date-used-directly/clock-sources.md +31 -0
- package/rules/typescript/symptoms/date-used-directly.md +46 -0
- package/rules/typescript/symptoms/default-for-a-required-value.md +45 -0
- package/rules/typescript/symptoms/default-on-a-closed-union/default-arm.md +32 -0
- package/rules/typescript/symptoms/default-on-a-closed-union.md +32 -0
- package/rules/typescript/symptoms/dependency-without-a-record.md +33 -0
- package/rules/typescript/symptoms/doer-calling-our-own-unit.md +36 -0
- package/rules/typescript/symptoms/double-with-a-body/logic-in-a-passed-function.md +32 -0
- package/rules/typescript/symptoms/double-with-a-body/stub-implementation.md +31 -0
- package/rules/typescript/symptoms/double-with-a-body.md +55 -0
- package/rules/typescript/symptoms/drawer-path/drawer-names.md +28 -0
- package/rules/typescript/symptoms/drawer-path.md +32 -0
- package/rules/typescript/symptoms/duplicate-decision.md +36 -0
- package/rules/typescript/symptoms/edit-inside-vendored-code.md +33 -0
- package/rules/typescript/symptoms/failure-shaped-as-success.md +28 -0
- package/rules/typescript/symptoms/floating-version.md +27 -0
- package/rules/typescript/symptoms/inherited-environment-in-a-subprocess/git-spawn-environment.md +30 -0
- package/rules/typescript/symptoms/inherited-environment-in-a-subprocess.md +33 -0
- package/rules/typescript/symptoms/inner-layer-imports-outer.md +33 -0
- package/rules/typescript/symptoms/integration-heavy-suite.md +29 -0
- package/rules/typescript/symptoms/large-input-for-a-few-fields.md +37 -0
- package/rules/typescript/symptoms/library-class-built-in-place.md +42 -0
- package/rules/typescript/symptoms/long-function/function-length.md +47 -0
- package/rules/typescript/symptoms/long-function.md +75 -0
- package/rules/typescript/symptoms/loop-keyword/loop-statement.md +34 -0
- package/rules/typescript/symptoms/loop-keyword.md +49 -0
- package/rules/typescript/symptoms/machine-touched-in-a-unit-test.md +40 -0
- package/rules/typescript/symptoms/many-spellings-of-one-concept.md +29 -0
- package/rules/typescript/symptoms/module-level-state.md +30 -0
- package/rules/typescript/symptoms/module-or-global-patched/module-mock-call.md +29 -0
- package/rules/typescript/symptoms/module-or-global-patched.md +38 -0
- package/rules/typescript/symptoms/name-off-its-casing/filename-case.md +16 -0
- package/rules/typescript/symptoms/name-off-its-casing/naming-convention.md +20 -0
- package/rules/typescript/symptoms/name-off-its-casing.md +31 -0
- package/rules/typescript/symptoms/no-lock-file.md +27 -0
- package/rules/typescript/symptoms/orchestrator-that-computes.md +27 -0
- package/rules/typescript/symptoms/outside-dependency-vocabulary-for-basic-logic.md +33 -0
- package/rules/typescript/symptoms/outside-import-past-a-boundary/import-or-require.md +44 -0
- package/rules/typescript/symptoms/outside-import-past-a-boundary.md +45 -0
- package/rules/typescript/symptoms/outside-type-in-a-signature.md +37 -0
- package/rules/typescript/symptoms/own-type-guard.md +36 -0
- package/rules/typescript/symptoms/port-named-for-a-mechanism.md +34 -0
- package/rules/typescript/symptoms/port-outside-the-domain.md +28 -0
- package/rules/typescript/symptoms/positional-parameters/parameter-count.md +30 -0
- package/rules/typescript/symptoms/positional-parameters.md +43 -0
- package/rules/typescript/symptoms/process-global-used-in-place.md +53 -0
- package/rules/typescript/symptoms/prose-in-code.md +27 -0
- package/rules/typescript/symptoms/rebinding/parameter-reassignment.md +18 -0
- package/rules/typescript/symptoms/rebinding/test-body.md +32 -0
- package/rules/typescript/symptoms/rebinding.md +36 -0
- package/rules/typescript/symptoms/schema-past-its-adapter.md +41 -0
- package/rules/typescript/symptoms/shorthand-name/identifier-names.md +29 -0
- package/rules/typescript/symptoms/shorthand-name.md +32 -0
- package/rules/typescript/symptoms/strictness-weakened/exact-optional-property-types.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/no-fallthrough-cases-in-switch.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/no-implicit-override.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/no-property-access-from-index-signature.md +51 -0
- package/rules/{CD-3/CHECKS.md → typescript/symptoms/strictness-weakened/no-unchecked-indexed-access.md} +23 -38
- package/rules/typescript/symptoms/strictness-weakened/strict.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/use-unknown-in-catch-variables.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened.md +32 -0
- package/rules/typescript/symptoms/tangled-function/cognitive-complexity.md +42 -0
- package/rules/typescript/symptoms/tangled-function.md +75 -0
- package/rules/typescript/symptoms/test-of-the-type-checker.md +24 -0
- package/rules/typescript/symptoms/test-switched-off/focused-tests.md +15 -0
- package/rules/typescript/symptoms/test-switched-off/skipped-tests.md +15 -0
- package/rules/typescript/symptoms/test-switched-off.md +25 -0
- package/rules/typescript/symptoms/text-past-its-reader/test-body.md +30 -0
- package/rules/typescript/symptoms/text-past-its-reader.md +71 -0
- package/rules/typescript/symptoms/throw-between-our-units.md +46 -0
- package/rules/typescript/symptoms/throw-or-catch-in-a-test/throw-statement.md +32 -0
- package/rules/typescript/symptoms/throw-or-catch-in-a-test/try-block.md +39 -0
- package/rules/typescript/symptoms/throw-or-catch-in-a-test.md +35 -0
- package/rules/typescript/symptoms/thrown-non-error/throw-only-error.md +15 -0
- package/rules/typescript/symptoms/thrown-non-error.md +27 -0
- package/rules/typescript/symptoms/tool-fetched-at-run-time.md +27 -0
- package/rules/typescript/symptoms/tuple-as-data.md +29 -0
- package/rules/typescript/symptoms/type-derived-from-code/factory-return-types.md +29 -0
- package/rules/typescript/symptoms/type-derived-from-code.md +41 -0
- package/rules/typescript/symptoms/types-only-file.md +36 -0
- package/rules/typescript/symptoms/unasserted-call.md +29 -0
- package/rules/typescript/symptoms/unit-without-a-running-test/companion-test-file.md +28 -0
- package/rules/typescript/symptoms/unit-without-a-running-test.md +28 -0
- package/rules/{CD-5/CHECKS.md → typescript/symptoms/untracked-escape/directive-pointers.md} +12 -23
- package/rules/typescript/symptoms/untracked-escape.md +32 -0
- package/rules/typescript/symptoms/untyped-value/explicit-any.md +14 -0
- package/rules/typescript/symptoms/untyped-value/implicit-any-let.md +14 -0
- package/rules/typescript/symptoms/untyped-value.md +36 -0
- package/rules/typescript/symptoms/wide-input.md +37 -0
- package/rules/typescript/symptoms/wide-port.md +32 -0
- package/rules/typescript/symptoms/work-inside-a-condition/else-after-an-exit.md +40 -0
- package/rules/typescript/symptoms/work-inside-a-condition.md +41 -0
- package/rules/typescript/symptoms/write-into-a-parameter/parameter-mutation.md +33 -0
- package/rules/typescript/symptoms/write-into-a-parameter.md +34 -0
- package/rules/typescript/symptoms.md +821 -0
- package/{core → src/application}/conformance/conformance-testing-types.d.ts +16 -6
- package/src/audit.d.ts +20 -0
- package/{api → src}/audit.js +6 -5
- package/{core/rule-set-reader → src/domain/rule-set}/authored-rule-set-types.d.ts +2 -2
- package/{core/values → src/domain/rule-set}/edition-types.d.ts +3 -3
- package/{core/values → src/domain/rule-set}/identifier-types.d.ts +2 -2
- package/{core/conformance → src/domain/runner}/conformance-types.d.ts +1 -1
- package/{core/mechanism-port → src/domain/runner}/piece-failure-types.d.ts +1 -1
- package/{core/mechanism-port → src/domain/runner}/runner-module-types.d.ts +4 -4
- package/src/domain/runner/runner-result-types.d.ts +88 -0
- package/src/eslint-plugin.d.ts +16 -0
- package/src/eslint-plugin.js +72 -0
- package/src/hone.js +13385 -0
- package/src/infrastructure/disciplines-file/version-one-names.json +634 -0
- package/src/infrastructure/engines/eslint/authored-class-or-this/class-keyword/class-keyword.examples.json +84 -0
- package/{mechanisms/eslint/CD-14/cd14/cd14.eslint-plugin.js → src/infrastructure/engines/eslint/authored-class-or-this/class-keyword/eslint-plugin.js} +9 -10
- package/src/infrastructure/engines/eslint/authored-class-or-this/class-keyword/piece.json +12 -0
- package/src/infrastructure/engines/eslint/authored-class-or-this/static-members-only/piece.json +24 -0
- package/src/infrastructure/engines/eslint/authored-class-or-this/static-members-only/static-members-only.examples.json +36 -0
- package/src/infrastructure/engines/eslint/claimed-type/non-null-assertions/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/claimed-type/non-null-assertions/non-null-assertions.examples.json +48 -0
- package/src/infrastructure/engines/eslint/claimed-type/non-null-assertions/piece.json +22 -0
- package/src/infrastructure/engines/eslint/long-function/function-length/function-length.examples.json +42 -0
- package/src/infrastructure/engines/eslint/long-function/function-length/piece.json +16 -0
- package/{mechanisms/eslint/CD-7/cd7/cd7.eslint-plugin.js → src/infrastructure/engines/eslint/name-off-its-casing/filename-case/eslint-plugin.js} +5 -4
- package/src/infrastructure/engines/eslint/name-off-its-casing/filename-case/filename-case.examples.json +60 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/filename-case/piece.json +11 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/naming-convention/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/naming-convention/naming-convention.examples.json +78 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/naming-convention/piece.json +214 -0
- package/src/infrastructure/engines/eslint/positional-parameters/parameter-count/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/positional-parameters/parameter-count/parameter-count.examples.json +30 -0
- package/src/infrastructure/engines/eslint/positional-parameters/parameter-count/piece.json +18 -0
- package/src/infrastructure/engines/eslint/rebinding/parameter-reassignment/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/rebinding/parameter-reassignment/parameter-reassignment.examples.json +30 -0
- package/src/infrastructure/engines/eslint/rebinding/parameter-reassignment/piece.json +17 -0
- package/{mechanisms → src/infrastructure/engines}/eslint/runner/README.md +5 -5
- package/{mechanisms/eslint/runner → src/infrastructure/engines/eslint/runner/pieces}/eslint-piece-settings-types.d.ts +1 -1
- package/{mechanisms → src/infrastructure/engines}/eslint/runner/runner.js +2189 -1371
- package/{mechanisms/eslint/CD-41 → src/infrastructure/engines/eslint/tangled-function/cognitive-complexity}/README.md +1 -1
- package/src/infrastructure/engines/eslint/tangled-function/cognitive-complexity/cognitive-complexity.examples.json +48 -0
- package/{mechanisms/eslint/CD-41/cd41/cd41.eslint-plugin.js → src/infrastructure/engines/eslint/tangled-function/cognitive-complexity/eslint-plugin.js} +58 -14
- package/src/infrastructure/engines/eslint/tangled-function/cognitive-complexity/piece.json +12 -0
- package/{mechanisms/eslint/CD-27/cd27/cd27.eslint-plugin.js → src/infrastructure/engines/eslint/test-switched-off/focused-tests/eslint-plugin.js} +5 -4
- package/src/infrastructure/engines/eslint/test-switched-off/focused-tests/focused-tests.examples.json +60 -0
- package/src/infrastructure/engines/eslint/test-switched-off/focused-tests/piece.json +12 -0
- package/src/infrastructure/engines/eslint/test-switched-off/skipped-tests/piece.json +16 -0
- package/src/infrastructure/engines/eslint/test-switched-off/skipped-tests/skipped-tests.examples.json +54 -0
- package/{mechanisms/eslint/CD-10/cd10/cd10.eslint-plugin.js → src/infrastructure/engines/eslint/thrown-non-error/throw-only-error/eslint-plugin.js} +5 -4
- package/src/infrastructure/engines/eslint/thrown-non-error/throw-only-error/piece.json +12 -0
- package/src/infrastructure/engines/eslint/thrown-non-error/throw-only-error/throw-only-error.examples.json +54 -0
- package/{mechanisms/eslint/CD-1/cd1/cd1.eslint-plugin.js → src/infrastructure/engines/eslint/untyped-value/explicit-any/eslint-plugin.js} +14 -9
- package/src/infrastructure/engines/eslint/untyped-value/explicit-any/explicit-any.examples.json +36 -0
- package/src/infrastructure/engines/eslint/untyped-value/explicit-any/piece.json +12 -0
- package/src/infrastructure/engines/eslint/untyped-value/implicit-any-let/implicit-any-let.examples.json +48 -0
- package/src/infrastructure/engines/eslint/untyped-value/implicit-any-let/piece.json +16 -0
- package/src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit/else-after-an-exit.examples.json +36 -0
- package/{mechanisms/eslint/CD-42/cd42/cd42.eslint-plugin.js → src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit/eslint-plugin.js} +29 -13
- package/src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit/piece.json +12 -0
- package/src/infrastructure/engines/walker/authored-class-or-this/class-keyword/class-keyword.examples.json +84 -0
- package/{mechanisms/audit/CD-14 → src/infrastructure/engines/walker/authored-class-or-this/class-keyword}/class-syntax.js +6 -3
- package/src/infrastructure/engines/walker/authored-class-or-this/class-keyword/piece.json +10 -0
- package/src/infrastructure/engines/walker/boolean-in-a-signature/boolean-annotation/boolean-annotation.examples.json +42 -0
- package/{mechanisms/audit/CD-43 → src/infrastructure/engines/walker/boolean-in-a-signature/boolean-annotation}/boolean-signatures.js +14 -6
- package/src/infrastructure/engines/walker/boolean-in-a-signature/boolean-annotation/piece.json +9 -0
- package/src/infrastructure/engines/walker/branch-in-a-test/test-body/piece.json +95 -0
- package/{mechanisms/audit/CD-27 → src/infrastructure/engines/walker/branch-in-a-test/test-body}/test-body-logic.js +188 -56
- package/src/infrastructure/engines/walker/branch-in-a-test/test-body/test-body.examples.json +280 -0
- package/{mechanisms/audit/CD-1 → src/infrastructure/engines/walker/claimed-type/cast-to-any}/any-cast.js +7 -4
- package/src/infrastructure/engines/walker/claimed-type/cast-to-any/cast-to-any.examples.json +48 -0
- package/src/infrastructure/engines/walker/claimed-type/cast-to-any/piece.json +9 -0
- package/{mechanisms/audit/CD-2 → src/infrastructure/engines/walker/claimed-type/unlisted-cast-site}/cast-expressions.js +13 -6
- package/src/infrastructure/engines/walker/claimed-type/unlisted-cast-site/piece.json +14 -0
- package/src/infrastructure/engines/walker/claimed-type/unlisted-cast-site/unlisted-cast-site.examples.json +54 -0
- package/src/infrastructure/engines/walker/computed-value-in-a-test/test-body/piece.json +18 -0
- package/src/infrastructure/engines/walker/date-used-directly/clock-sources/clock-sources.examples.json +30 -0
- package/src/infrastructure/engines/walker/date-used-directly/clock-sources/clock-sources.js +36 -0
- package/src/infrastructure/engines/walker/date-used-directly/clock-sources/piece.json +9 -0
- package/src/infrastructure/engines/walker/default-on-a-closed-union/default-arm/default-arm.examples.json +36 -0
- package/src/infrastructure/engines/walker/default-on-a-closed-union/default-arm/piece.json +9 -0
- package/src/infrastructure/engines/walker/default-on-a-closed-union/default-arm/switch-defaults.js +54 -0
- package/src/infrastructure/engines/walker/double-with-a-body/logic-in-a-passed-function/piece.json +18 -0
- package/{mechanisms/audit/CD-25 → src/infrastructure/engines/walker/double-with-a-body/stub-implementation}/dependency-isolation.js +8 -4
- package/src/infrastructure/engines/walker/double-with-a-body/stub-implementation/piece.json +9 -0
- package/src/infrastructure/engines/walker/double-with-a-body/stub-implementation/stub-implementation.examples.json +36 -0
- package/{mechanisms/audit/CD-7 → src/infrastructure/engines/walker/drawer-path/drawer-names}/categorical-paths.js +23 -8
- package/src/infrastructure/engines/walker/drawer-path/drawer-names/drawer-names.examples.json +42 -0
- package/src/infrastructure/engines/walker/drawer-path/drawer-names/piece.json +9 -0
- package/src/infrastructure/engines/walker/inherited-environment-in-a-subprocess/git-spawn-environment/git-spawn-environment.examples.json +36 -0
- package/{mechanisms/audit/CD-47 → src/infrastructure/engines/walker/inherited-environment-in-a-subprocess/git-spawn-environment}/hermetic-git-spawns.js +13 -4
- package/src/infrastructure/engines/walker/inherited-environment-in-a-subprocess/git-spawn-environment/piece.json +9 -0
- package/src/infrastructure/engines/walker/loop-keyword/loop-statement/loop-statement.examples.json +48 -0
- package/{mechanisms/audit/CD-15 → src/infrastructure/engines/walker/loop-keyword/loop-statement}/loops.js +12 -4
- package/src/infrastructure/engines/walker/loop-keyword/loop-statement/piece.json +9 -0
- package/src/infrastructure/engines/walker/module-or-global-patched/module-mock-call/module-mock-call.examples.json +36 -0
- package/{mechanisms/audit/CD-26 → src/infrastructure/engines/walker/module-or-global-patched/module-mock-call}/module-mocking.js +8 -4
- package/src/infrastructure/engines/walker/module-or-global-patched/module-mock-call/piece.json +9 -0
- package/src/infrastructure/engines/walker/outside-import-past-a-boundary/import-or-require/import-boundaries.js +133 -0
- package/src/infrastructure/engines/walker/outside-import-past-a-boundary/import-or-require/import-or-require.examples.json +42 -0
- package/src/infrastructure/engines/walker/outside-import-past-a-boundary/import-or-require/piece.json +14 -0
- package/src/infrastructure/engines/walker/rebinding/test-body/piece.json +18 -0
- package/{mechanisms/audit/runner → src/infrastructure/engines/walker/runner/pieces}/walker-piece.d.ts +8 -14
- package/{mechanisms/audit → src/infrastructure/engines/walker}/runner/runner.js +194 -121
- package/{mechanisms/audit/runner → src/infrastructure/engines/walker/runner/toolchain}/typescript-parse.d.ts +1 -0
- package/src/infrastructure/engines/walker/shorthand-name/identifier-names/identifier-names.examples.json +42 -0
- package/{mechanisms/audit/CD-6 → src/infrastructure/engines/walker/shorthand-name/identifier-names}/identifier-names.js +32 -15
- package/src/infrastructure/engines/walker/shorthand-name/identifier-names/piece.json +9 -0
- package/src/infrastructure/engines/walker/strictness-weakened/exact-optional-property-types/exact-optional-property-types.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/exact-optional-property-types/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-fallthrough-cases-in-switch/no-fallthrough-cases-in-switch.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-fallthrough-cases-in-switch/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-implicit-override/no-implicit-override.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-implicit-override/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-property-access-from-index-signature/no-property-access-from-index-signature.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-property-access-from-index-signature/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-unchecked-indexed-access/no-unchecked-indexed-access.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-unchecked-indexed-access/piece.json +17 -0
- package/{mechanisms/audit/CD-3 → src/infrastructure/engines/walker/strictness-weakened/strict}/compiler-overrides.js +102 -38
- package/src/infrastructure/engines/walker/strictness-weakened/strict/piece.json +13 -0
- package/src/infrastructure/engines/walker/strictness-weakened/strict/strict.examples.json +64 -0
- package/src/infrastructure/engines/walker/strictness-weakened/use-unknown-in-catch-variables/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/use-unknown-in-catch-variables/use-unknown-in-catch-variables.examples.json +71 -0
- package/src/infrastructure/engines/walker/text-past-its-reader/test-body/piece.json +18 -0
- package/src/infrastructure/engines/walker/throw-or-catch-in-a-test/throw-statement/piece.json +9 -0
- package/src/infrastructure/engines/walker/throw-or-catch-in-a-test/throw-statement/throw-statement.examples.json +36 -0
- package/{mechanisms/audit/CD-10 → src/infrastructure/engines/walker/throw-or-catch-in-a-test/throw-statement}/throws-in-tests.js +6 -3
- package/src/infrastructure/engines/walker/throw-or-catch-in-a-test/try-block/piece.json +18 -0
- package/src/infrastructure/engines/walker/type-derived-from-code/factory-return-types/factory-return-types.examples.json +36 -0
- package/{mechanisms/audit/CD-7a → src/infrastructure/engines/walker/type-derived-from-code/factory-return-types}/factory-return-types.js +5 -3
- package/src/infrastructure/engines/walker/type-derived-from-code/factory-return-types/piece.json +9 -0
- package/src/infrastructure/engines/walker/unit-without-a-running-test/companion-test-file/companion-test-file.examples.json +36 -0
- package/{mechanisms/audit/CD-23 → src/infrastructure/engines/walker/unit-without-a-running-test/companion-test-file}/export-test-sibling.js +7 -4
- package/src/infrastructure/engines/walker/unit-without-a-running-test/companion-test-file/piece.json +9 -0
- package/{mechanisms/audit/CD-5 → src/infrastructure/engines/walker/untracked-escape/directive-pointers}/comments-directives.js +40 -19
- package/src/infrastructure/engines/walker/untracked-escape/directive-pointers/directive-pointers.examples.json +96 -0
- package/src/infrastructure/engines/walker/untracked-escape/directive-pointers/piece.json +16 -0
- package/src/infrastructure/engines/walker/write-into-a-parameter/parameter-mutation/parameter-mutation.examples.json +42 -0
- package/{mechanisms/audit/CD-44 → src/infrastructure/engines/walker/write-into-a-parameter/parameter-mutation}/parameter-mutation.js +22 -7
- package/src/infrastructure/engines/walker/write-into-a-parameter/parameter-mutation/piece.json +9 -0
- package/src/rule-set.d.ts +4 -0
- package/src/testing.d.ts +7 -0
- package/src/testing.js +524 -0
- package/api/audit.d.ts +0 -20
- package/api/rule-set.d.ts +0 -4
- package/api/testing.d.ts +0 -5
- package/api/testing.js +0 -238
- package/chunks/chunk-335ITLPO.js +0 -7
- package/chunks/chunk-6SM3HKWO.js +0 -1912
- package/chunks/chunk-E6VR3VRV.js +0 -268
- package/chunks/chunk-FR4FASVM.js +0 -108
- package/chunks/chunk-LDQUT742.js +0 -15
- package/chunks/chunk-MXSIQPCV.js +0 -13
- package/chunks/chunk-RWQ4UNKY.js +0 -24
- package/core/check/tool-command.js +0 -2586
- package/core/mechanism-port/runner-result-types.d.ts +0 -15
- package/mechanisms/audit/CD-1/piece.json +0 -13
- package/mechanisms/audit/CD-10/piece.json +0 -13
- package/mechanisms/audit/CD-14/piece.json +0 -13
- package/mechanisms/audit/CD-15/piece.json +0 -13
- package/mechanisms/audit/CD-17/clock-sources.js +0 -28
- package/mechanisms/audit/CD-17/piece.json +0 -13
- package/mechanisms/audit/CD-19/import-boundaries.js +0 -99
- package/mechanisms/audit/CD-19/piece.json +0 -18
- package/mechanisms/audit/CD-2/piece.json +0 -18
- package/mechanisms/audit/CD-23/piece.json +0 -13
- package/mechanisms/audit/CD-25/piece.json +0 -13
- package/mechanisms/audit/CD-26/piece.json +0 -13
- package/mechanisms/audit/CD-27/piece.json +0 -17
- package/mechanisms/audit/CD-3/piece.json +0 -77
- package/mechanisms/audit/CD-43/piece.json +0 -13
- package/mechanisms/audit/CD-44/piece.json +0 -13
- package/mechanisms/audit/CD-47/piece.json +0 -13
- package/mechanisms/audit/CD-5/piece.json +0 -20
- package/mechanisms/audit/CD-6/piece.json +0 -13
- package/mechanisms/audit/CD-7/piece.json +0 -13
- package/mechanisms/audit/CD-7a/piece.json +0 -13
- package/mechanisms/audit/CD-8/piece.json +0 -13
- package/mechanisms/audit/CD-8/switch-defaults.js +0 -42
- package/mechanisms/eslint/CD-1/piece.json +0 -23
- package/mechanisms/eslint/CD-10/piece.json +0 -15
- package/mechanisms/eslint/CD-14/piece.json +0 -31
- package/mechanisms/eslint/CD-2/cd2/cd2.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-2/piece.json +0 -25
- package/mechanisms/eslint/CD-27/piece.json +0 -23
- package/mechanisms/eslint/CD-40/cd40/cd40.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-40/piece.json +0 -21
- package/mechanisms/eslint/CD-41/piece.json +0 -23
- package/mechanisms/eslint/CD-42/piece.json +0 -15
- package/mechanisms/eslint/CD-44/cd44/cd44.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-44/piece.json +0 -20
- package/mechanisms/eslint/CD-6/cd6/cd6.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-6/piece.json +0 -217
- package/mechanisms/eslint/CD-7/piece.json +0 -15
- package/rules/CD-1/CHECKS.md +0 -39
- package/rules/CD-1/README.md +0 -28
- package/rules/CD-1/discipline.json +0 -195
- package/rules/CD-10/CHECKS.md +0 -49
- package/rules/CD-10/README.md +0 -27
- package/rules/CD-10/discipline.json +0 -133
- package/rules/CD-11/CHECKS.md +0 -13
- package/rules/CD-11/README.md +0 -25
- package/rules/CD-11/discipline.json +0 -12
- package/rules/CD-12/CHECKS.md +0 -13
- package/rules/CD-12/README.md +0 -25
- package/rules/CD-12/discipline.json +0 -12
- package/rules/CD-13/CHECKS.md +0 -13
- package/rules/CD-13/README.md +0 -25
- package/rules/CD-13/discipline.json +0 -12
- package/rules/CD-14/CHECKS.md +0 -49
- package/rules/CD-14/README.md +0 -28
- package/rules/CD-14/discipline.json +0 -173
- package/rules/CD-15/CHECKS.md +0 -42
- package/rules/CD-15/README.md +0 -30
- package/rules/CD-15/discipline.json +0 -73
- package/rules/CD-16/CHECKS.md +0 -7
- package/rules/CD-16/README.md +0 -15
- package/rules/CD-17/CHECKS.md +0 -37
- package/rules/CD-17/README.md +0 -28
- package/rules/CD-17/discipline.json +0 -51
- package/rules/CD-18/CHECKS.md +0 -13
- package/rules/CD-18/README.md +0 -25
- package/rules/CD-18/discipline.json +0 -12
- package/rules/CD-19/CHECKS.md +0 -49
- package/rules/CD-19/README.md +0 -29
- package/rules/CD-19/discipline.json +0 -63
- package/rules/CD-2/CHECKS.md +0 -58
- package/rules/CD-2/README.md +0 -30
- package/rules/CD-2/discipline.json +0 -151
- package/rules/CD-20/CHECKS.md +0 -7
- package/rules/CD-20/README.md +0 -15
- package/rules/CD-21/CHECKS.md +0 -13
- package/rules/CD-21/README.md +0 -24
- package/rules/CD-21/discipline.json +0 -12
- package/rules/CD-22/CHECKS.md +0 -13
- package/rules/CD-22/README.md +0 -24
- package/rules/CD-22/discipline.json +0 -12
- package/rules/CD-23/CHECKS.md +0 -35
- package/rules/CD-23/README.md +0 -26
- package/rules/CD-23/discipline.json +0 -57
- package/rules/CD-24/CHECKS.md +0 -7
- package/rules/CD-24/README.md +0 -15
- package/rules/CD-25/CHECKS.md +0 -38
- package/rules/CD-25/README.md +0 -31
- package/rules/CD-25/discipline.json +0 -57
- package/rules/CD-26/CHECKS.md +0 -36
- package/rules/CD-26/README.md +0 -29
- package/rules/CD-26/discipline.json +0 -57
- package/rules/CD-27/CHECKS.md +0 -451
- package/rules/CD-27/README.md +0 -29
- package/rules/CD-27/discipline.json +0 -437
- package/rules/CD-28/CHECKS.md +0 -13
- package/rules/CD-28/README.md +0 -25
- package/rules/CD-28/discipline.json +0 -12
- package/rules/CD-29/CHECKS.md +0 -13
- package/rules/CD-29/README.md +0 -23
- package/rules/CD-29/discipline.json +0 -12
- package/rules/CD-3/README.md +0 -26
- package/rules/CD-3/discipline.json +0 -641
- package/rules/CD-30/CHECKS.md +0 -13
- package/rules/CD-30/README.md +0 -24
- package/rules/CD-30/discipline.json +0 -12
- package/rules/CD-31/CHECKS.md +0 -13
- package/rules/CD-31/README.md +0 -23
- package/rules/CD-31/discipline.json +0 -12
- package/rules/CD-32/CHECKS.md +0 -13
- package/rules/CD-32/README.md +0 -24
- package/rules/CD-32/discipline.json +0 -12
- package/rules/CD-33/CHECKS.md +0 -13
- package/rules/CD-33/README.md +0 -24
- package/rules/CD-33/discipline.json +0 -12
- package/rules/CD-34/CHECKS.md +0 -13
- package/rules/CD-34/README.md +0 -23
- package/rules/CD-34/discipline.json +0 -12
- package/rules/CD-39/CHECKS.md +0 -13
- package/rules/CD-39/README.md +0 -24
- package/rules/CD-39/discipline.json +0 -12
- package/rules/CD-4/CHECKS.md +0 -13
- package/rules/CD-4/README.md +0 -26
- package/rules/CD-4/discipline.json +0 -12
- package/rules/CD-40/CHECKS.md +0 -39
- package/rules/CD-40/README.md +0 -29
- package/rules/CD-40/discipline.json +0 -58
- package/rules/CD-41/CHECKS.md +0 -64
- package/rules/CD-41/README.md +0 -31
- package/rules/CD-41/discipline.json +0 -138
- package/rules/CD-42/CHECKS.md +0 -47
- package/rules/CD-42/README.md +0 -25
- package/rules/CD-42/discipline.json +0 -61
- package/rules/CD-43/CHECKS.md +0 -37
- package/rules/CD-43/README.md +0 -27
- package/rules/CD-43/discipline.json +0 -65
- package/rules/CD-44/CHECKS.md +0 -48
- package/rules/CD-44/README.md +0 -26
- package/rules/CD-44/discipline.json +0 -111
- package/rules/CD-45/CHECKS.md +0 -13
- package/rules/CD-45/README.md +0 -25
- package/rules/CD-45/discipline.json +0 -12
- package/rules/CD-46/CHECKS.md +0 -7
- package/rules/CD-46/README.md +0 -25
- package/rules/CD-47/CHECKS.md +0 -37
- package/rules/CD-47/README.md +0 -31
- package/rules/CD-47/discipline.json +0 -57
- package/rules/CD-5/README.md +0 -28
- package/rules/CD-5/discipline.json +0 -131
- package/rules/CD-6/CHECKS.md +0 -51
- package/rules/CD-6/README.md +0 -28
- package/rules/CD-6/discipline.json +0 -165
- package/rules/CD-7/CHECKS.md +0 -46
- package/rules/CD-7/README.md +0 -29
- package/rules/CD-7/discipline.json +0 -142
- package/rules/CD-7a/CHECKS.md +0 -38
- package/rules/CD-7a/README.md +0 -26
- package/rules/CD-7a/discipline.json +0 -57
- package/rules/CD-8/CHECKS.md +0 -42
- package/rules/CD-8/README.md +0 -26
- package/rules/CD-8/discipline.json +0 -57
- package/rules/CD-9/CHECKS.md +0 -13
- package/rules/CD-9/README.md +0 -26
- package/rules/CD-9/discipline.json +0 -12
- /package/{core/values → src/domain/finding}/anchor.d.ts +0 -0
- /package/{core/values → src/domain/repository}/branded.d.ts +0 -0
- /package/{core/values → src/domain/repository}/repo-path-types.d.ts +0 -0
- /package/{core/values → src/domain}/result.d.ts +0 -0
- /package/{core/values → src/domain/rule-set}/clause-address-types.d.ts +0 -0
- /package/{core/values → src/domain/settings/json-values}/json-value.d.ts +0 -0
- /package/{mechanisms/eslint/CD-14 → src/infrastructure/engines/eslint/authored-class-or-this/class-keyword}/README.md +0 -0
- /package/{mechanisms/eslint/CD-2 → src/infrastructure/engines/eslint/claimed-type/non-null-assertions}/README.md +0 -0
- /package/{mechanisms/eslint/CD-7 → src/infrastructure/engines/eslint/name-off-its-casing/filename-case}/README.md +0 -0
- /package/{mechanisms/eslint/CD-6 → src/infrastructure/engines/eslint/name-off-its-casing/naming-convention}/README.md +0 -0
- /package/{mechanisms/eslint/CD-40 → src/infrastructure/engines/eslint/positional-parameters/parameter-count}/README.md +0 -0
- /package/{mechanisms/eslint/CD-44 → src/infrastructure/engines/eslint/rebinding/parameter-reassignment}/README.md +0 -0
- /package/{mechanisms/eslint/CD-27 → src/infrastructure/engines/eslint/test-switched-off/focused-tests}/README.md +0 -0
- /package/{mechanisms/eslint/CD-10 → src/infrastructure/engines/eslint/thrown-non-error/throw-only-error}/README.md +0 -0
- /package/{mechanisms/eslint/CD-1 → src/infrastructure/engines/eslint/untyped-value/explicit-any}/README.md +0 -0
- /package/{mechanisms/eslint/CD-42 → src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit}/README.md +0 -0
- /package/{mechanisms/audit → src/infrastructure/engines/walker}/runner/README.md +0 -0
- /package/{api → src}/rule-set.js +0 -0
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
import {
|
|
2
|
+
checkAddressTextOf,
|
|
3
|
+
checkNamesOf,
|
|
4
|
+
everyOk,
|
|
5
|
+
namedPiecePathOf,
|
|
6
|
+
readNamedPiece
|
|
7
|
+
} from "./chunk-R75QELTA.js";
|
|
8
|
+
import {
|
|
9
|
+
createDefaultPackageLocationPort
|
|
10
|
+
} from "./chunk-L7BGRC6D.js";
|
|
11
|
+
import {
|
|
12
|
+
gatheredPeerFailure,
|
|
13
|
+
installedPeer,
|
|
14
|
+
isRepoPathText,
|
|
15
|
+
loadedPeer,
|
|
16
|
+
moduleFileForm
|
|
17
|
+
} from "./chunk-GNOMK7CR.js";
|
|
18
|
+
import {
|
|
19
|
+
TOOL_IDENTITY,
|
|
20
|
+
gatheredOutcomes,
|
|
21
|
+
listedOutcome
|
|
22
|
+
} from "./chunk-M6SOGWT7.js";
|
|
23
|
+
import {
|
|
24
|
+
__glob
|
|
25
|
+
} from "./chunk-DGOLOS5A.js";
|
|
26
|
+
|
|
27
|
+
// src/infrastructure/engines/eslint/runner/hone-plugin/hone-plugin.ts
|
|
28
|
+
import { z as z4 } from "zod";
|
|
29
|
+
|
|
30
|
+
// src/infrastructure/engines/eslint/runner/pieces/eslint-piece-settings-schema.ts
|
|
31
|
+
import { z } from "zod";
|
|
32
|
+
var pieceModulePathSchema = z.string().superRefine((text, context) => {
|
|
33
|
+
if (isRepoPathText({ text }) === "not-repo-path" || moduleFileForm({ text }) === "not-module-file") {
|
|
34
|
+
context.addIssue({
|
|
35
|
+
code: "custom",
|
|
36
|
+
message: "not a path inside the piece folder ending in .ts, or .js in a built install"
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
var pluginNamespaceSchema = z.string().regex(/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/);
|
|
41
|
+
var eslintPieceSettingsSchema = z.strictObject({
|
|
42
|
+
pluginNamespace: pluginNamespaceSchema,
|
|
43
|
+
pluginModule: pieceModulePathSchema,
|
|
44
|
+
rule: z.string(),
|
|
45
|
+
options: z.array(z.json()).readonly().optional()
|
|
46
|
+
}).readonly();
|
|
47
|
+
var ruleOptionsOf = (request) => request.settings.options ?? [];
|
|
48
|
+
|
|
49
|
+
// src/infrastructure/engines/eslint/runner/hone-plugin/check-rule-id.ts
|
|
50
|
+
var CHECKS_PLUGIN_NAMESPACE = TOOL_IDENTITY.ownRuleSet;
|
|
51
|
+
var ESLINT_MECHANISM = "eslint";
|
|
52
|
+
var RULE_ID_PREFIX = `${CHECKS_PLUGIN_NAMESPACE}/`;
|
|
53
|
+
var checkRuleNameOf = (request) => checkAddressTextOf(request);
|
|
54
|
+
var checkRuleIdOf = (request) => `${RULE_ID_PREFIX}${checkRuleNameOf(request)}`;
|
|
55
|
+
var runsOnEslint = (request) => request.check.engines.some((engine) => engine.name === ESLINT_MECHANISM) ? "eslint" : "elsewhere";
|
|
56
|
+
var checkOfRuleId = (request) => {
|
|
57
|
+
const check = request.checks.find(
|
|
58
|
+
(candidate) => runsOnEslint({ check: candidate }) === "eslint" && checkRuleIdOf({ check: candidate }) === request.ruleId
|
|
59
|
+
);
|
|
60
|
+
return check === void 0 ? { found: "none" } : { found: "check", check };
|
|
61
|
+
};
|
|
62
|
+
var eslintRuleIdsOf = (request) => request.checks.filter((check) => runsOnEslint({ check }) === "eslint").map((check) => checkRuleIdOf({ check }));
|
|
63
|
+
|
|
64
|
+
// src/infrastructure/engines/eslint/runner/hone-plugin/checks-plugin.ts
|
|
65
|
+
import { z as z3 } from "zod";
|
|
66
|
+
|
|
67
|
+
// src/infrastructure/engines/eslint/runner/pieces/eslint-plugin-schema.ts
|
|
68
|
+
import { z as z2 } from "zod";
|
|
69
|
+
var ruleVisitorSchema = z2.record(
|
|
70
|
+
z2.string(),
|
|
71
|
+
z2.function({ input: z2.array(z2.unknown()), output: z2.unknown() })
|
|
72
|
+
);
|
|
73
|
+
var ruleSchema = z2.looseObject({
|
|
74
|
+
meta: z2.looseObject({
|
|
75
|
+
type: z2.enum(["problem", "suggestion", "layout"]),
|
|
76
|
+
messages: z2.record(z2.string(), z2.string()).optional()
|
|
77
|
+
}),
|
|
78
|
+
create: z2.function({ input: [z2.unknown()], output: ruleVisitorSchema })
|
|
79
|
+
});
|
|
80
|
+
var eslintPluginModuleSchema = z2.object({
|
|
81
|
+
default: z2.looseObject({ rules: z2.record(z2.string(), ruleSchema) })
|
|
82
|
+
});
|
|
83
|
+
var inlineConfigNodesSchema = z2.array(
|
|
84
|
+
z2.looseObject({ type: z2.enum(["Line", "Block"]), value: z2.string() })
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
// src/infrastructure/engines/eslint/runner/hone-plugin/checks-plugin.ts
|
|
88
|
+
var PLUGIN_META = { name: `${TOOL_IDENTITY.packageName}/eslint-plugin`, version: "0.0.0-local" };
|
|
89
|
+
var NUMBERED_LEAD = /^CD-\d+: /;
|
|
90
|
+
var inSymptomWords = (request) => `${request.title}: ${request.message.replace(NUMBERED_LEAD, "")}`;
|
|
91
|
+
var unnumbered = (request) => typeof request.text === "string" ? request.text.replace(NUMBERED_LEAD, "") : request.text;
|
|
92
|
+
var reportInSymptomWords = (request) => {
|
|
93
|
+
const reportData = request.boundary.reportDataOf({ descriptor: request.descriptor });
|
|
94
|
+
return reportData === void 0 ? request.descriptor : {
|
|
95
|
+
...request.descriptor,
|
|
96
|
+
data: Object.fromEntries(
|
|
97
|
+
Object.entries(reportData).map(([key, text]) => [key, unnumbered({ text })])
|
|
98
|
+
)
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
var contextInSymptomWords = (request) => Object.create(request.context, {
|
|
102
|
+
report: {
|
|
103
|
+
value: (descriptor) => request.context.report(reportInSymptomWords({ descriptor, boundary: request.boundary }))
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var messagesInSymptomWords = (request) => request.messages === void 0 ? void 0 : Object.fromEntries(
|
|
107
|
+
Object.entries(request.messages).map(([messageId, message]) => [
|
|
108
|
+
messageId,
|
|
109
|
+
inSymptomWords({ message, title: request.title })
|
|
110
|
+
])
|
|
111
|
+
);
|
|
112
|
+
var checkRuleOf = (request) => ({
|
|
113
|
+
meta: {
|
|
114
|
+
...request.rule.meta,
|
|
115
|
+
messages: messagesInSymptomWords({
|
|
116
|
+
messages: request.rule.meta.messages,
|
|
117
|
+
title: request.title
|
|
118
|
+
})
|
|
119
|
+
},
|
|
120
|
+
create: (context) => request.rule.create(contextInSymptomWords({ context, boundary: request.boundary }))
|
|
121
|
+
});
|
|
122
|
+
var namedRuleOf = (request) => {
|
|
123
|
+
const { check, pieceFile, pluginModule, ruleName } = request.source;
|
|
124
|
+
const plugin = eslintPluginModuleSchema.safeParse({ default: request.source.plugin });
|
|
125
|
+
if (!plugin.success) {
|
|
126
|
+
return {
|
|
127
|
+
outcome: "failed",
|
|
128
|
+
error: {
|
|
129
|
+
kind: "plugin-invalid",
|
|
130
|
+
pieceFile,
|
|
131
|
+
pluginModule,
|
|
132
|
+
detail: z3.prettifyError(plugin.error)
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const { rules } = plugin.data.default;
|
|
137
|
+
const rule = Object.hasOwn(rules, ruleName) ? rules[ruleName] : void 0;
|
|
138
|
+
return rule === void 0 ? { outcome: "failed", error: { kind: "piece-rule-missing", pieceFile, rule: ruleName } } : {
|
|
139
|
+
outcome: "ok",
|
|
140
|
+
value: [
|
|
141
|
+
checkRuleNameOf({ check }),
|
|
142
|
+
checkRuleOf({ rule, title: check.symptom.title, boundary: request.boundary })
|
|
143
|
+
]
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
var checksPluginOf = (request) => {
|
|
147
|
+
const rules = everyOk({
|
|
148
|
+
entries: request.sources,
|
|
149
|
+
resolve: (source) => namedRuleOf({ source, boundary: request.boundary })
|
|
150
|
+
});
|
|
151
|
+
return rules.outcome === "failed" ? rules : { outcome: "ok", value: { meta: PLUGIN_META, rules: Object.fromEntries(rules.value) } };
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// src/infrastructure/engines/eslint/runner/hone-plugin/hone-plugin.ts
|
|
155
|
+
var moduleExportsSchema = z4.looseObject({ default: z4.unknown() });
|
|
156
|
+
var pieceSourceOf = async (request) => {
|
|
157
|
+
const { check, installRoot } = request;
|
|
158
|
+
const names = checkNamesOf({ text: checkRuleNameOf({ check }) });
|
|
159
|
+
if (names === void 0) {
|
|
160
|
+
return {
|
|
161
|
+
outcome: "failed",
|
|
162
|
+
error: { kind: "check-rule-missing", ruleId: checkRuleIdOf({ check }) }
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
const location = { ...request, ...names, mechanism: ESLINT_MECHANISM, ruleSetRoot: installRoot };
|
|
166
|
+
const pieceFile = namedPiecePathOf(location);
|
|
167
|
+
const piece = readNamedPiece(location);
|
|
168
|
+
if (piece.outcome === "failed") {
|
|
169
|
+
const { error } = piece;
|
|
170
|
+
return error.kind === "file-malformed" || error.kind === "file-unreadable" ? {
|
|
171
|
+
outcome: "failed",
|
|
172
|
+
error: {
|
|
173
|
+
kind: error.kind === "file-malformed" ? "piece-source-invalid" : "piece-unreadable",
|
|
174
|
+
pieceFile,
|
|
175
|
+
detail: error.detail
|
|
176
|
+
}
|
|
177
|
+
} : {
|
|
178
|
+
outcome: "failed",
|
|
179
|
+
error: { kind: "check-rule-missing", ruleId: checkRuleIdOf({ check }) }
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
const settings = eslintPieceSettingsSchema.safeParse(piece.value.settings);
|
|
183
|
+
if (!settings.success) {
|
|
184
|
+
return {
|
|
185
|
+
outcome: "failed",
|
|
186
|
+
error: { kind: "piece-source-invalid", pieceFile, detail: z4.prettifyError(settings.error) }
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
const { pluginModule, rule: ruleName } = settings.data;
|
|
190
|
+
const path = request.path.join({ segments: [piece.value.pieceRoot, pluginModule] });
|
|
191
|
+
const loaded = await request.modules.load({ path });
|
|
192
|
+
if (loaded.outcome === "failed") {
|
|
193
|
+
return {
|
|
194
|
+
outcome: "failed",
|
|
195
|
+
error: { kind: "plugin-unloadable", path: loaded.error.path, detail: loaded.error.detail }
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
const exported = moduleExportsSchema.safeParse(loaded.value);
|
|
199
|
+
return exported.success ? {
|
|
200
|
+
outcome: "ok",
|
|
201
|
+
value: { check, pieceFile, pluginModule, ruleName, plugin: exported.data.default }
|
|
202
|
+
} : {
|
|
203
|
+
outcome: "failed",
|
|
204
|
+
error: {
|
|
205
|
+
kind: "plugin-invalid",
|
|
206
|
+
pieceFile,
|
|
207
|
+
pluginModule,
|
|
208
|
+
detail: z4.prettifyError(exported.error)
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
var honePluginAt = async (request) => {
|
|
213
|
+
const eslint = request.checks.filter(
|
|
214
|
+
(check) => runsOnEslint({ check }) === "eslint" && check.clause.ruleSet === TOOL_IDENTITY.ownRuleSet
|
|
215
|
+
);
|
|
216
|
+
const sources = gatheredOutcomes({
|
|
217
|
+
outcomes: await Promise.all(
|
|
218
|
+
eslint.map(
|
|
219
|
+
async (check) => listedOutcome({ outcome: await pieceSourceOf({ ...request, check }) })
|
|
220
|
+
)
|
|
221
|
+
)
|
|
222
|
+
});
|
|
223
|
+
return sources.outcome === "failed" ? sources : checksPluginOf({ sources: sources.value, boundary: request.boundary });
|
|
224
|
+
};
|
|
225
|
+
var honePluginFailureText = (request) => {
|
|
226
|
+
const failure = request.failure;
|
|
227
|
+
switch (failure.kind) {
|
|
228
|
+
case "piece-unreadable":
|
|
229
|
+
return `the piece ${failure.pieceFile} cannot be read: ${failure.detail}`;
|
|
230
|
+
case "piece-source-invalid":
|
|
231
|
+
return `the piece ${failure.pieceFile} is not an ESLint piece: ${failure.detail}`;
|
|
232
|
+
case "plugin-unloadable":
|
|
233
|
+
return `the plugin module ${failure.path} cannot be loaded: ${failure.detail}`;
|
|
234
|
+
case "plugin-invalid":
|
|
235
|
+
return `the plugin module ${failure.pluginModule} of the piece ${failure.pieceFile} is not an ESLint plugin: ${failure.detail}`;
|
|
236
|
+
case "piece-rule-missing":
|
|
237
|
+
return `the piece ${failure.pieceFile} runs the rule ${failure.rule}, which its plugin module does not hold`;
|
|
238
|
+
case "check-rule-missing":
|
|
239
|
+
return `the check ${failure.ruleId} runs on ESLint, but no piece of this install holds its rule`;
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
// src/infrastructure/engines/eslint/runner/toolchain/eslint-instance.ts
|
|
244
|
+
import { z as z6 } from "zod";
|
|
245
|
+
|
|
246
|
+
// src/infrastructure/engines/eslint/runner/native-exceptions/inline-config-parser.ts
|
|
247
|
+
import { ConfigCommentParser } from "@eslint/plugin-kit";
|
|
248
|
+
var DISABLE_LABELS = [
|
|
249
|
+
"eslint-disable",
|
|
250
|
+
"eslint-disable-line",
|
|
251
|
+
"eslint-disable-next-line"
|
|
252
|
+
];
|
|
253
|
+
var RULE_CONFIG_LABEL = "eslint";
|
|
254
|
+
var commentParser = new ConfigCommentParser();
|
|
255
|
+
var directiveLabelKindOf = (request) => {
|
|
256
|
+
if (DISABLE_LABELS.includes(request.label)) {
|
|
257
|
+
return "disable";
|
|
258
|
+
}
|
|
259
|
+
return request.label === RULE_CONFIG_LABEL ? "rule-config" : "other";
|
|
260
|
+
};
|
|
261
|
+
var ruleConfigComment = (request) => {
|
|
262
|
+
const ruleConfig = commentParser.parseJSONLikeConfig(request.value);
|
|
263
|
+
if (!ruleConfig.ok) {
|
|
264
|
+
return { kind: "unparseable-rule-config" };
|
|
265
|
+
}
|
|
266
|
+
return { kind: "rule-config", ruleIds: Object.keys(ruleConfig.config) };
|
|
267
|
+
};
|
|
268
|
+
var parseInlineConfigComment = (request) => {
|
|
269
|
+
const directive = commentParser.parseDirective(request.text);
|
|
270
|
+
if (directive === void 0) {
|
|
271
|
+
return { kind: "not-an-exception" };
|
|
272
|
+
}
|
|
273
|
+
const labelKind = directiveLabelKindOf({ label: directive.label });
|
|
274
|
+
switch (labelKind) {
|
|
275
|
+
case "other":
|
|
276
|
+
return { kind: "not-an-exception" };
|
|
277
|
+
case "disable":
|
|
278
|
+
return {
|
|
279
|
+
kind: "disable",
|
|
280
|
+
ruleIds: Object.keys(commentParser.parseListConfig(directive.value))
|
|
281
|
+
};
|
|
282
|
+
case "rule-config":
|
|
283
|
+
return ruleConfigComment({ value: directive.value });
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// src/infrastructure/engines/eslint/runner/toolchain/eslint-config-schema.ts
|
|
288
|
+
import { z as z5 } from "zod";
|
|
289
|
+
var resolvedConfigSchema = z5.union([
|
|
290
|
+
z5.undefined(),
|
|
291
|
+
z5.looseObject({
|
|
292
|
+
rules: z5.record(
|
|
293
|
+
z5.string(),
|
|
294
|
+
z5.tuple([z5.union([z5.literal(0), z5.literal(1), z5.literal(2)])], z5.unknown())
|
|
295
|
+
).optional(),
|
|
296
|
+
plugins: z5.record(z5.string(), z5.unknown()).optional(),
|
|
297
|
+
language: z5.unknown().optional(),
|
|
298
|
+
processor: z5.unknown().optional(),
|
|
299
|
+
languageOptions: z5.looseObject({ parser: z5.unknown().optional() }).optional()
|
|
300
|
+
})
|
|
301
|
+
]);
|
|
302
|
+
var ruleStateOf = (request) => {
|
|
303
|
+
if (request.resolved === void 0) {
|
|
304
|
+
return { state: "file-ignored" };
|
|
305
|
+
}
|
|
306
|
+
const entry = request.resolved.rules?.[request.ruleId];
|
|
307
|
+
if (entry === void 0) {
|
|
308
|
+
return { state: "rule-absent" };
|
|
309
|
+
}
|
|
310
|
+
const [severity, ...options] = entry;
|
|
311
|
+
return { state: "configured", severity, options };
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
// src/infrastructure/engines/eslint/runner/toolchain/eslint-instance.ts
|
|
315
|
+
var reservedNamespace = TOOL_IDENTITY.reservedEslintNamespace;
|
|
316
|
+
var INLINE_CONFIG_RULE = "inline-config";
|
|
317
|
+
var WHOLE_FILE_LISTENER = "Program";
|
|
318
|
+
var INLINE_CONFIG_RULE_ID = `${reservedNamespace}/${INLINE_CONFIG_RULE}`;
|
|
319
|
+
var GOVERNED_FILES = ["**/*.{ts,tsx,mts,cts}"];
|
|
320
|
+
var PLUGIN_REDEFINITION_MESSAGE = "Cannot redefine plugin";
|
|
321
|
+
var INLINE_CONFIG_UNREADABLE = "inline-config-unreadable";
|
|
322
|
+
var CONFIG_UNKNOWN = { kind: "unknown" };
|
|
323
|
+
var searchedConfigFile = (request) => {
|
|
324
|
+
if (request.found.outcome === "failed") {
|
|
325
|
+
return CONFIG_UNKNOWN;
|
|
326
|
+
}
|
|
327
|
+
return request.found.value === void 0 ? { kind: "none" } : { kind: "found", path: request.found.value };
|
|
328
|
+
};
|
|
329
|
+
var commentText = (request) => {
|
|
330
|
+
switch (request.comment.type) {
|
|
331
|
+
case "Line":
|
|
332
|
+
return `//${request.comment.value}`.trim();
|
|
333
|
+
case "Block":
|
|
334
|
+
return `/*${request.comment.value}*/`.trim();
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
var selectionReach = (request) => request.named.some((ruleId) => request.ruleIds.includes(ruleId)) ? "names-selected-rule" : "names-no-selected-rule";
|
|
338
|
+
var inlineConfigMessageId = (request) => {
|
|
339
|
+
const parsed = parseInlineConfigComment({ text: request.text });
|
|
340
|
+
switch (parsed.kind) {
|
|
341
|
+
case "disable": {
|
|
342
|
+
if (parsed.ruleIds.length > 0 && selectionReach({ named: parsed.ruleIds, ruleIds: request.ruleIds }) === "names-no-selected-rule") {
|
|
343
|
+
return "not-reported";
|
|
344
|
+
}
|
|
345
|
+
return "inline-disable";
|
|
346
|
+
}
|
|
347
|
+
case "rule-config": {
|
|
348
|
+
if (selectionReach({ named: parsed.ruleIds, ruleIds: request.ruleIds }) === "names-no-selected-rule") {
|
|
349
|
+
return "not-reported";
|
|
350
|
+
}
|
|
351
|
+
return "inline-rule-config";
|
|
352
|
+
}
|
|
353
|
+
case "unparseable-rule-config":
|
|
354
|
+
return "inline-rule-config";
|
|
355
|
+
case "not-an-exception":
|
|
356
|
+
return "not-reported";
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
var reportedComment = (request) => {
|
|
360
|
+
const messageId = inlineConfigMessageId({
|
|
361
|
+
text: request.comment.value,
|
|
362
|
+
ruleIds: request.ruleIds
|
|
363
|
+
});
|
|
364
|
+
if (messageId === "not-reported") {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
request.context.report({
|
|
368
|
+
node: request.comment,
|
|
369
|
+
messageId,
|
|
370
|
+
data: { text: commentText({ comment: request.comment }) }
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
var reportedProgram = (request) => {
|
|
374
|
+
const configNodes = inlineConfigNodesSchema.safeParse(
|
|
375
|
+
request.context.sourceCode.getInlineConfigNodes?.()
|
|
376
|
+
);
|
|
377
|
+
if (!configNodes.success) {
|
|
378
|
+
request.context.report({ node: request.programNode, messageId: INLINE_CONFIG_UNREADABLE });
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
configNodes.data.forEach((comment) => {
|
|
382
|
+
reportedComment({ context: request.context, comment, ruleIds: request.ruleIds });
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
var inlineConfigPlugin = (request) => ({
|
|
386
|
+
rules: {
|
|
387
|
+
[INLINE_CONFIG_RULE]: {
|
|
388
|
+
meta: {
|
|
389
|
+
type: "problem",
|
|
390
|
+
schema: [],
|
|
391
|
+
messages: {
|
|
392
|
+
"inline-disable": "{{text}}",
|
|
393
|
+
"inline-rule-config": "{{text}}",
|
|
394
|
+
[INLINE_CONFIG_UNREADABLE]: "inline configuration comments could not be read"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
create: (context) => ({
|
|
398
|
+
[WHOLE_FILE_LISTENER]: (programNode) => reportedProgram({ context, programNode, ruleIds: request.ruleIds })
|
|
399
|
+
})
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
var enabledRuleEntry = (request) => request.options.length === 0 ? "error" : ["error", ...request.options];
|
|
404
|
+
var governanceConfig = (request) => ({
|
|
405
|
+
files: GOVERNED_FILES,
|
|
406
|
+
languageOptions: { parser: request.parser },
|
|
407
|
+
plugins: {
|
|
408
|
+
...request.plugins,
|
|
409
|
+
[reservedNamespace]: inlineConfigPlugin({
|
|
410
|
+
ruleIds: request.rules.map((governed) => governed.ruleId)
|
|
411
|
+
})
|
|
412
|
+
},
|
|
413
|
+
rules: Object.fromEntries(
|
|
414
|
+
[...request.rules, { ruleId: INLINE_CONFIG_RULE_ID, options: [] }].map(
|
|
415
|
+
(governed) => [
|
|
416
|
+
governed.ruleId,
|
|
417
|
+
enabledRuleEntry({ options: governed.options })
|
|
418
|
+
]
|
|
419
|
+
)
|
|
420
|
+
)
|
|
421
|
+
});
|
|
422
|
+
var governanceOptions = (request) => ({
|
|
423
|
+
cwd: request.cwd,
|
|
424
|
+
overrideConfigFile: true,
|
|
425
|
+
ignore: false,
|
|
426
|
+
allowInlineConfig: false,
|
|
427
|
+
overrideConfig: governanceConfig({
|
|
428
|
+
plugins: request.plugins,
|
|
429
|
+
rules: request.rules,
|
|
430
|
+
parser: request.parser
|
|
431
|
+
})
|
|
432
|
+
});
|
|
433
|
+
var thrownDetail = (thrown) => thrown instanceof Error ? thrown.message : String(thrown);
|
|
434
|
+
var toolFailed = (thrown) => ({
|
|
435
|
+
outcome: "failed",
|
|
436
|
+
error: { kind: "tool-failed", detail: thrownDetail(thrown) }
|
|
437
|
+
});
|
|
438
|
+
var queryFailed = (thrown) => {
|
|
439
|
+
const detail = thrownDetail(thrown);
|
|
440
|
+
return {
|
|
441
|
+
outcome: "failed",
|
|
442
|
+
error: detail.includes(PLUGIN_REDEFINITION_MESSAGE) ? { kind: "plugin-conflict", detail } : { kind: "team-config-unloadable", detail }
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
var builtSurface = (request) => Promise.resolve().then(() => request.createEslint({ options: request.options })).then(
|
|
446
|
+
(surface) => ({ outcome: "ok", value: surface }),
|
|
447
|
+
toolFailed
|
|
448
|
+
);
|
|
449
|
+
var actedOn = (request) => Promise.resolve().then(() => request.act(request.surface)).then(
|
|
450
|
+
(acted) => ({ outcome: "ok", value: acted }),
|
|
451
|
+
request.onRejected
|
|
452
|
+
);
|
|
453
|
+
var onSurface = (request) => request.surface.then(
|
|
454
|
+
(built) => built.outcome === "failed" ? built : actedOn({ surface: built.value, act: request.act, onRejected: request.onRejected })
|
|
455
|
+
);
|
|
456
|
+
var ignoredStateOf = (request) => request.eslint.isPathIgnored({ filePath: request.file }).then((ignored) => ignored ? "ignored" : "checked");
|
|
457
|
+
var resolvedRuleState = (request) => {
|
|
458
|
+
if (request.resolved.outcome === "failed") {
|
|
459
|
+
return request.resolved;
|
|
460
|
+
}
|
|
461
|
+
const parsed = resolvedConfigSchema.safeParse(request.resolved.value);
|
|
462
|
+
if (!parsed.success) {
|
|
463
|
+
return {
|
|
464
|
+
outcome: "failed",
|
|
465
|
+
error: { kind: "runner-invalid-output", detail: z6.prettifyError(parsed.error) }
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
return { outcome: "ok", value: ruleStateOf({ resolved: parsed.data, ruleId: request.ruleId }) };
|
|
469
|
+
};
|
|
470
|
+
var queryInstanceOf = (request) => ({
|
|
471
|
+
ignoredState: (query) => onSurface({
|
|
472
|
+
surface: request.surface,
|
|
473
|
+
act: (eslint) => ignoredStateOf({ eslint, file: query.file }),
|
|
474
|
+
onRejected: queryFailed
|
|
475
|
+
}),
|
|
476
|
+
ruleState: (query) => onSurface({
|
|
477
|
+
surface: request.surface,
|
|
478
|
+
act: (eslint) => eslint.calculateConfigForFile({ filePath: query.file }),
|
|
479
|
+
onRejected: queryFailed
|
|
480
|
+
}).then((resolved) => resolvedRuleState({ resolved, ruleId: query.ruleId })),
|
|
481
|
+
configFileOf: (query) => onSurface({
|
|
482
|
+
surface: request.surface,
|
|
483
|
+
act: (eslint) => eslint.findConfigFile({ filePath: query.file }),
|
|
484
|
+
onRejected: toolFailed
|
|
485
|
+
}).then((found) => searchedConfigFile({ found }))
|
|
486
|
+
});
|
|
487
|
+
var lintedCaseOf = (request) => request.eslint.lintText({ code: request.sourceCase.source, filePath: request.sourceCase.fileName }).then((linted) => ({
|
|
488
|
+
caseName: request.sourceCase.name,
|
|
489
|
+
messages: linted.flatMap((file) => file.messages)
|
|
490
|
+
}));
|
|
491
|
+
var lintedCasesOf = (request) => Promise.all(
|
|
492
|
+
request.cases.map((sourceCase) => lintedCaseOf({ eslint: request.eslint, sourceCase }))
|
|
493
|
+
);
|
|
494
|
+
var unreadableCaseOf = (request) => request.lintedCases.find(
|
|
495
|
+
(lintedCase) => lintedCase.messages.some(
|
|
496
|
+
(message) => message.ruleId === INLINE_CONFIG_RULE_ID && message.messageId === INLINE_CONFIG_UNREADABLE
|
|
497
|
+
)
|
|
498
|
+
);
|
|
499
|
+
var ruleLessCaseOf = (request) => request.lintedCases.find(
|
|
500
|
+
(lintedCase) => lintedCase.messages.some((message) => message.ruleId === null)
|
|
501
|
+
);
|
|
502
|
+
var ruleLessDetail = (request) => `case ${request.lintedCase.caseName} was not linted as a rule source: ${request.lintedCase.messages.filter((message) => message.ruleId === null).map((message) => message.message).join("; ")}`;
|
|
503
|
+
var caseVerdictOf = (request) => ({
|
|
504
|
+
caseName: request.lintedCase.caseName,
|
|
505
|
+
flaggedLines: request.lintedCase.messages.filter((message) => message.ruleId === request.ruleId).map((message) => message.line)
|
|
506
|
+
});
|
|
507
|
+
var caseVerdicts = (request) => {
|
|
508
|
+
if (request.lintedCases.outcome === "failed") {
|
|
509
|
+
return request.lintedCases;
|
|
510
|
+
}
|
|
511
|
+
const lintedCases = request.lintedCases.value;
|
|
512
|
+
const unreadableCase = unreadableCaseOf({ lintedCases });
|
|
513
|
+
if (unreadableCase !== void 0) {
|
|
514
|
+
return {
|
|
515
|
+
outcome: "failed",
|
|
516
|
+
error: {
|
|
517
|
+
kind: "tool-failed",
|
|
518
|
+
detail: `inline configuration comments could not be read in case ${unreadableCase.caseName}`
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
const ruleLessCase = ruleLessCaseOf({ lintedCases });
|
|
523
|
+
if (ruleLessCase !== void 0) {
|
|
524
|
+
return {
|
|
525
|
+
outcome: "failed",
|
|
526
|
+
error: {
|
|
527
|
+
kind: "runner-invalid-output",
|
|
528
|
+
detail: ruleLessDetail({ lintedCase: ruleLessCase })
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
return {
|
|
533
|
+
outcome: "ok",
|
|
534
|
+
value: lintedCases.map((lintedCase) => caseVerdictOf({ lintedCase, ruleId: request.ruleId }))
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
var sourceCaseVerdicts = (request) => {
|
|
538
|
+
const ruleId = `${request.pluginNamespace}/${request.rule}`;
|
|
539
|
+
return onSurface({
|
|
540
|
+
surface: builtSurface({
|
|
541
|
+
createEslint: request.toolchain.createEslint,
|
|
542
|
+
options: governanceOptions({
|
|
543
|
+
cwd: request.cwd,
|
|
544
|
+
parser: request.toolchain.typescriptParser,
|
|
545
|
+
plugins: { [request.pluginNamespace]: request.plugin },
|
|
546
|
+
rules: [{ ruleId, options: request.options }]
|
|
547
|
+
})
|
|
548
|
+
}),
|
|
549
|
+
act: (eslint) => lintedCasesOf({ eslint, cases: request.cases }),
|
|
550
|
+
onRejected: toolFailed
|
|
551
|
+
}).then((lintedCases) => caseVerdicts({ lintedCases, ruleId }));
|
|
552
|
+
};
|
|
553
|
+
var createEslintPort = (options) => ({
|
|
554
|
+
boundary: options.toolchain.boundary,
|
|
555
|
+
createQueryInstance: (request) => queryInstanceOf({
|
|
556
|
+
surface: builtSurface({
|
|
557
|
+
createEslint: options.toolchain.createEslint,
|
|
558
|
+
options: request.configFile === void 0 ? { cwd: request.repoRoot } : { cwd: request.repoRoot, overrideConfigFile: request.configFile }
|
|
559
|
+
})
|
|
560
|
+
}),
|
|
561
|
+
createGovernanceInstance: (request) => {
|
|
562
|
+
const surface = builtSurface({
|
|
563
|
+
createEslint: options.toolchain.createEslint,
|
|
564
|
+
options: governanceOptions({
|
|
565
|
+
cwd: request.repoRoot,
|
|
566
|
+
plugins: request.plugins,
|
|
567
|
+
rules: request.rules,
|
|
568
|
+
parser: options.toolchain.typescriptParser
|
|
569
|
+
})
|
|
570
|
+
});
|
|
571
|
+
return {
|
|
572
|
+
lintFiles: (lint) => onSurface({
|
|
573
|
+
surface,
|
|
574
|
+
act: (eslint) => eslint.lintFiles({ filePaths: lint.files }),
|
|
575
|
+
onRejected: toolFailed
|
|
576
|
+
})
|
|
577
|
+
};
|
|
578
|
+
},
|
|
579
|
+
ignoredByConfig: (request) => onSurface({
|
|
580
|
+
surface: builtSurface({
|
|
581
|
+
createEslint: options.toolchain.createEslint,
|
|
582
|
+
options: {
|
|
583
|
+
cwd: request.cwd,
|
|
584
|
+
overrideConfigFile: request.configFile,
|
|
585
|
+
matchedFiles: [request.path]
|
|
586
|
+
}
|
|
587
|
+
}),
|
|
588
|
+
act: (eslint) => ignoredStateOf({ eslint, file: request.path }),
|
|
589
|
+
onRejected: queryFailed
|
|
590
|
+
}),
|
|
591
|
+
ignoredByPatterns: (request) => onSurface({
|
|
592
|
+
surface: builtSurface({
|
|
593
|
+
createEslint: options.toolchain.createEslint,
|
|
594
|
+
options: {
|
|
595
|
+
cwd: request.cwd,
|
|
596
|
+
overrideConfigFile: true,
|
|
597
|
+
ignorePatterns: request.patterns,
|
|
598
|
+
matchedFiles: request.paths
|
|
599
|
+
}
|
|
600
|
+
}),
|
|
601
|
+
act: (eslint) => Promise.all(request.paths.map((file) => ignoredStateOf({ eslint, file }))),
|
|
602
|
+
onRejected: toolFailed
|
|
603
|
+
}),
|
|
604
|
+
lintSourceCases: (request) => sourceCaseVerdicts({ ...request, toolchain: options.toolchain })
|
|
605
|
+
});
|
|
606
|
+
var lintedMessageOf = (message) => ({
|
|
607
|
+
ruleId: message.ruleId,
|
|
608
|
+
...message.messageId === void 0 ? {} : { messageId: message.messageId },
|
|
609
|
+
line: message.line,
|
|
610
|
+
column: message.column,
|
|
611
|
+
message: message.message,
|
|
612
|
+
...message.fatal === true ? { fatal: true } : {}
|
|
613
|
+
});
|
|
614
|
+
var lintedFileOf = (lintResult) => ({
|
|
615
|
+
filePath: lintResult.filePath,
|
|
616
|
+
messages: lintResult.messages.map(lintedMessageOf)
|
|
617
|
+
});
|
|
618
|
+
var overrideConfigOf = (request) => ({
|
|
619
|
+
...request.overrideConfig,
|
|
620
|
+
files: [...request.overrideConfig.files],
|
|
621
|
+
rules: Object.fromEntries(
|
|
622
|
+
Object.entries(request.overrideConfig.rules).map(([ruleId, entry]) => [
|
|
623
|
+
ruleId,
|
|
624
|
+
typeof entry === "string" ? entry : [...entry]
|
|
625
|
+
])
|
|
626
|
+
)
|
|
627
|
+
});
|
|
628
|
+
var lookupOptionsOf = (request) => {
|
|
629
|
+
const { flags } = request.nearestLookup;
|
|
630
|
+
return request.options.overrideConfigFile === void 0 && flags.length > 0 ? { flags: [...flags] } : {};
|
|
631
|
+
};
|
|
632
|
+
var eslintOptionsOf = (request) => {
|
|
633
|
+
const { overrideConfig, matchedFiles, ignorePatterns, ...sharedOptions } = request.options;
|
|
634
|
+
return {
|
|
635
|
+
...sharedOptions,
|
|
636
|
+
...lookupOptionsOf(request),
|
|
637
|
+
...ignorePatterns === void 0 ? {} : { ignorePatterns: [...ignorePatterns] },
|
|
638
|
+
...overrideConfig === void 0 ? {} : { overrideConfig: overrideConfigOf({ overrideConfig }) },
|
|
639
|
+
...matchedFiles === void 0 ? {} : { overrideConfig: { files: [...matchedFiles] } }
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
var createEslintOn = (request) => (create) => {
|
|
643
|
+
const eslint = new request.eslintClass(
|
|
644
|
+
eslintOptionsOf({ nearestLookup: request.boundary.nearestLookup, options: create.options })
|
|
645
|
+
);
|
|
646
|
+
return {
|
|
647
|
+
isPathIgnored: (query) => eslint.isPathIgnored(query.filePath),
|
|
648
|
+
calculateConfigForFile: (query) => eslint.calculateConfigForFile(query.filePath),
|
|
649
|
+
findConfigFile: (query) => eslint.findConfigFile(query.filePath),
|
|
650
|
+
lintFiles: (lint) => eslint.lintFiles([...lint.filePaths]).then((results) => results.map(lintedFileOf)),
|
|
651
|
+
lintText: (lint) => eslint.lintText(lint.code, { filePath: lint.filePath }).then((results) => results.map(lintedFileOf))
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
// src/infrastructure/engines/eslint/runner/toolchain/eslint-toolchain.ts
|
|
656
|
+
import { z as z7 } from "zod";
|
|
657
|
+
|
|
658
|
+
// import("./**/*/eslint-*-boundary.ts") in src/infrastructure/engines/eslint/runner/toolchain/eslint-toolchain.ts
|
|
659
|
+
var globImport_eslint_boundary_ts = __glob({
|
|
660
|
+
"./eslint-10/eslint-10-boundary.ts": () => import("./eslint-10-boundary-A4JIQ734.js"),
|
|
661
|
+
"./eslint-9/eslint-9-boundary.ts": () => import("./eslint-9-boundary-CL5DDBHX.js")
|
|
662
|
+
});
|
|
663
|
+
|
|
664
|
+
// src/infrastructure/engines/eslint/runner/toolchain/eslint-toolchain.ts
|
|
665
|
+
var ESLINT_REQUIREMENT = {
|
|
666
|
+
packageName: "eslint",
|
|
667
|
+
peer: "optional",
|
|
668
|
+
lines: [
|
|
669
|
+
{ floor: "9.39.5", below: "10.0.0" },
|
|
670
|
+
{ floor: "10.15.0", below: "11.0.0" }
|
|
671
|
+
]
|
|
672
|
+
};
|
|
673
|
+
var TYPESCRIPT_ESLINT_PARSER_REQUIREMENT = {
|
|
674
|
+
packageName: "@typescript-eslint/parser",
|
|
675
|
+
peer: "optional",
|
|
676
|
+
lines: [{ floor: "8.73.0", below: "9.0.0" }]
|
|
677
|
+
};
|
|
678
|
+
var TYPESCRIPT_ESLINT_PLUGIN_REQUIREMENT = {
|
|
679
|
+
packageName: "@typescript-eslint/eslint-plugin",
|
|
680
|
+
peer: "optional",
|
|
681
|
+
lines: [{ floor: "8.73.0", below: "9.0.0" }]
|
|
682
|
+
};
|
|
683
|
+
var defaultEslintToolchainModules = {
|
|
684
|
+
eslint: () => import("eslint"),
|
|
685
|
+
typescriptParser: () => import("@typescript-eslint/parser"),
|
|
686
|
+
typescriptEslintPlugin: () => import("@typescript-eslint/eslint-plugin")
|
|
687
|
+
};
|
|
688
|
+
var boundaryModuleSchema = z7.object({
|
|
689
|
+
eslintBoundary: z7.object({
|
|
690
|
+
nearestLookup: z7.object({ flags: z7.array(z7.string()) }),
|
|
691
|
+
declarationText: z7.string(),
|
|
692
|
+
reportDataOf: z7.custom(
|
|
693
|
+
(candidate) => typeof candidate === "function"
|
|
694
|
+
)
|
|
695
|
+
})
|
|
696
|
+
});
|
|
697
|
+
var SUPPORTED_MAJORS = /* @__PURE__ */ new Set([9, 10]);
|
|
698
|
+
var eslintBoundaryFor = async (request) => {
|
|
699
|
+
const major = Number.parseInt(request.version, 10);
|
|
700
|
+
if (!SUPPORTED_MAJORS.has(major)) {
|
|
701
|
+
return { outcome: "failed", error: `no ESLint boundary exists for ESLint ${request.version}` };
|
|
702
|
+
}
|
|
703
|
+
const folder = `eslint-${major}`;
|
|
704
|
+
const loaded = await globImport_eslint_boundary_ts(`./${folder}/eslint-${major}-boundary.ts`);
|
|
705
|
+
const boundary = boundaryModuleSchema.safeParse(loaded);
|
|
706
|
+
return boundary.success ? { outcome: "ok", value: boundary.data.eslintBoundary } : {
|
|
707
|
+
outcome: "failed",
|
|
708
|
+
error: `the ESLint ${major} boundary is malformed: ${z7.prettifyError(boundary.error)}`
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
var installedEslintBoundary = () => defaultEslintToolchainModules.eslint().then((installed) => eslintBoundaryFor({ version: installed.ESLint.version }));
|
|
712
|
+
var defaultEslintToolchainPeers = (options) => ({
|
|
713
|
+
location: createDefaultPackageLocationPort(options),
|
|
714
|
+
modules: defaultEslintToolchainModules
|
|
715
|
+
});
|
|
716
|
+
var failureOf = (request) => request.loaded.outcome === "failed" ? [request.loaded.error] : [];
|
|
717
|
+
var failedWith = (request) => ({
|
|
718
|
+
outcome: "failed",
|
|
719
|
+
error: gatheredPeerFailure({ failures: request.failures })
|
|
720
|
+
});
|
|
721
|
+
var boundEslintOf = async (request) => {
|
|
722
|
+
if (request.loaded.outcome === "failed") {
|
|
723
|
+
return request.loaded;
|
|
724
|
+
}
|
|
725
|
+
const module = request.loaded.value;
|
|
726
|
+
const boundary = await eslintBoundaryFor({ version: module.ESLint.version });
|
|
727
|
+
return boundary.outcome === "ok" ? { outcome: "ok", value: { module, boundary: boundary.value } } : { outcome: "failed", error: { kind: "tool-failed", detail: boundary.error } };
|
|
728
|
+
};
|
|
729
|
+
var toolchainOf = (request) => {
|
|
730
|
+
if (request.eslint.outcome === "failed") {
|
|
731
|
+
return failedWith({
|
|
732
|
+
failures: [
|
|
733
|
+
request.eslint.error,
|
|
734
|
+
...failureOf({ loaded: request.typescriptParser }),
|
|
735
|
+
...failureOf({ loaded: request.typescriptEslintPlugin })
|
|
736
|
+
]
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
if (request.typescriptParser.outcome === "failed") {
|
|
740
|
+
return failedWith({
|
|
741
|
+
failures: [
|
|
742
|
+
request.typescriptParser.error,
|
|
743
|
+
...failureOf({ loaded: request.typescriptEslintPlugin })
|
|
744
|
+
]
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
if (request.typescriptEslintPlugin.outcome === "failed") {
|
|
748
|
+
return failedWith({ failures: [request.typescriptEslintPlugin.error] });
|
|
749
|
+
}
|
|
750
|
+
return {
|
|
751
|
+
outcome: "ok",
|
|
752
|
+
value: {
|
|
753
|
+
eslintVersion: request.eslint.value.module.ESLint.version,
|
|
754
|
+
boundary: request.eslint.value.boundary,
|
|
755
|
+
createEslint: createEslintOn({
|
|
756
|
+
eslintClass: request.eslint.value.module.ESLint,
|
|
757
|
+
boundary: request.eslint.value.boundary
|
|
758
|
+
}),
|
|
759
|
+
typescriptParser: request.typescriptParser.value
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
var loadEslintToolchain = (request) => {
|
|
764
|
+
const eslint = loadedPeer({
|
|
765
|
+
requirement: ESLINT_REQUIREMENT,
|
|
766
|
+
location: request.peers.location,
|
|
767
|
+
load: request.peers.modules.eslint,
|
|
768
|
+
versionOf: (module) => module.ESLint.version
|
|
769
|
+
}).then((loaded) => boundEslintOf({ loaded }));
|
|
770
|
+
const typescriptParser = loadedPeer({
|
|
771
|
+
requirement: TYPESCRIPT_ESLINT_PARSER_REQUIREMENT,
|
|
772
|
+
location: request.peers.location,
|
|
773
|
+
load: request.peers.modules.typescriptParser,
|
|
774
|
+
versionOf: (parser) => parser.version
|
|
775
|
+
});
|
|
776
|
+
return Promise.all([eslint, typescriptParser]).then(
|
|
777
|
+
([loadedEslint, loadedParser]) => loadedEslint.outcome === "ok" ? loadedPeer({
|
|
778
|
+
requirement: TYPESCRIPT_ESLINT_PLUGIN_REQUIREMENT,
|
|
779
|
+
location: request.peers.location,
|
|
780
|
+
load: request.peers.modules.typescriptEslintPlugin,
|
|
781
|
+
versionOf: (plugin) => plugin.default.meta.version
|
|
782
|
+
}).then(
|
|
783
|
+
(loadedPlugin) => toolchainOf({
|
|
784
|
+
eslint: loadedEslint,
|
|
785
|
+
typescriptParser: loadedParser,
|
|
786
|
+
typescriptEslintPlugin: loadedPlugin
|
|
787
|
+
})
|
|
788
|
+
) : installedPeer({
|
|
789
|
+
requirement: TYPESCRIPT_ESLINT_PLUGIN_REQUIREMENT,
|
|
790
|
+
location: request.peers.location
|
|
791
|
+
}).then(
|
|
792
|
+
(installedPlugin) => failedWith({
|
|
793
|
+
failures: [
|
|
794
|
+
loadedEslint.error,
|
|
795
|
+
...failureOf({ loaded: loadedParser }),
|
|
796
|
+
...failureOf({ loaded: installedPlugin })
|
|
797
|
+
]
|
|
798
|
+
})
|
|
799
|
+
)
|
|
800
|
+
);
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
export {
|
|
804
|
+
eslintPieceSettingsSchema,
|
|
805
|
+
ruleOptionsOf,
|
|
806
|
+
CHECKS_PLUGIN_NAMESPACE,
|
|
807
|
+
ESLINT_MECHANISM,
|
|
808
|
+
checkRuleIdOf,
|
|
809
|
+
runsOnEslint,
|
|
810
|
+
checkOfRuleId,
|
|
811
|
+
eslintRuleIdsOf,
|
|
812
|
+
eslintPluginModuleSchema,
|
|
813
|
+
honePluginAt,
|
|
814
|
+
honePluginFailureText,
|
|
815
|
+
parseInlineConfigComment,
|
|
816
|
+
reservedNamespace,
|
|
817
|
+
INLINE_CONFIG_RULE_ID,
|
|
818
|
+
enabledRuleEntry,
|
|
819
|
+
createEslintPort,
|
|
820
|
+
installedEslintBoundary,
|
|
821
|
+
defaultEslintToolchainPeers,
|
|
822
|
+
loadEslintToolchain
|
|
823
|
+
};
|