@shivaedev/quality 0.76.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +65 -59
- package/dist/adapters/biome/pluginContract.d.ts +1 -1
- package/dist/adapters/biome/pluginContract.d.ts.map +1 -1
- package/dist/adapters/biome/pluginContract.js +2 -5
- package/dist/adapters/biome/pluginContract.js.map +1 -1
- package/dist/adapters/biome/run.d.ts.map +1 -1
- package/dist/adapters/biome/run.js +2 -0
- package/dist/adapters/biome/run.js.map +1 -1
- package/dist/adapters/biome/withExceptionConfig.d.ts.map +1 -1
- package/dist/adapters/biome/withExceptionConfig.js +21 -4
- package/dist/adapters/biome/withExceptionConfig.js.map +1 -1
- package/dist/adapters/changeKeyCheck.d.ts +10 -0
- package/dist/adapters/changeKeyCheck.d.ts.map +1 -0
- package/dist/adapters/{changeKeyFindings.js → changeKeyCheck.js} +8 -22
- package/dist/adapters/changeKeyCheck.js.map +1 -0
- package/dist/adapters/commandLine.d.ts +2 -0
- package/dist/adapters/commandLine.d.ts.map +1 -1
- package/dist/adapters/contextCaptureCheck.d.ts +9 -0
- package/dist/adapters/contextCaptureCheck.d.ts.map +1 -0
- package/dist/adapters/contextCaptureCheck.js +91 -0
- package/dist/adapters/contextCaptureCheck.js.map +1 -0
- package/dist/adapters/databaseUrlFindings.d.ts +1 -1
- package/dist/adapters/databaseUrlFindings.d.ts.map +1 -1
- package/dist/adapters/declaration-files/initialize.d.ts +6 -0
- package/dist/adapters/declaration-files/initialize.d.ts.map +1 -0
- package/dist/adapters/declaration-files/initialize.js +4 -0
- package/dist/adapters/declaration-files/initialize.js.map +1 -0
- package/dist/adapters/declaration-files/parse.d.ts +5 -0
- package/dist/adapters/declaration-files/parse.d.ts.map +1 -0
- package/dist/adapters/declaration-files/parse.js +6 -0
- package/dist/adapters/declaration-files/parse.js.map +1 -0
- package/dist/adapters/declaration-files/reader.d.ts +5 -0
- package/dist/adapters/declaration-files/reader.d.ts.map +1 -0
- package/dist/adapters/declaration-files/reader.js +23 -0
- package/dist/adapters/declaration-files/reader.js.map +1 -0
- package/dist/adapters/declaration-files/service.d.ts +9 -0
- package/dist/adapters/declaration-files/service.d.ts.map +1 -0
- package/dist/adapters/declaration-files/service.js +14 -0
- package/dist/adapters/declaration-files/service.js.map +1 -0
- package/dist/adapters/foreignResources.d.ts.map +1 -1
- package/dist/adapters/foreignResources.js +0 -4
- package/dist/adapters/foreignResources.js.map +1 -1
- package/dist/adapters/import-compiler/graph.d.ts +8 -2
- package/dist/adapters/import-compiler/graph.d.ts.map +1 -1
- package/dist/adapters/import-compiler/graph.js +4 -1
- package/dist/adapters/import-compiler/graph.js.map +1 -1
- package/dist/adapters/import-compiler/service.d.ts +7 -1
- package/dist/adapters/import-compiler/service.d.ts.map +1 -1
- package/dist/adapters/imports/graph.d.ts +6 -3
- package/dist/adapters/imports/graph.d.ts.map +1 -1
- package/dist/adapters/imports/graph.js +31 -18
- package/dist/adapters/imports/graph.js.map +1 -1
- package/dist/adapters/knip/configuration.d.ts +1 -1
- package/dist/adapters/knip/configuration.d.ts.map +1 -1
- package/dist/adapters/knip/configuration.js +6 -4
- package/dist/adapters/knip/configuration.js.map +1 -1
- package/dist/adapters/knip/entryPointFindings.d.ts +1 -1
- package/dist/adapters/knip/entryPointFindings.d.ts.map +1 -1
- package/dist/adapters/knip/run.d.ts.map +1 -1
- package/dist/adapters/knip/run.js +4 -1
- package/dist/adapters/knip/run.js.map +1 -1
- package/dist/adapters/outsideImportFindings.d.ts +4 -2
- package/dist/adapters/outsideImportFindings.d.ts.map +1 -1
- package/dist/adapters/outsideImportFindings.js +12 -52
- package/dist/adapters/outsideImportFindings.js.map +1 -1
- package/dist/adapters/queueReadoutFindings.d.ts +1 -1
- package/dist/adapters/queueReadoutFindings.d.ts.map +1 -1
- package/dist/adapters/rule.d.ts +9 -1
- package/dist/adapters/rule.d.ts.map +1 -1
- package/dist/adapters/rule.js +21 -6
- package/dist/adapters/rule.js.map +1 -1
- package/dist/adapters/runMain.d.ts +3 -4
- package/dist/adapters/runMain.d.ts.map +1 -1
- package/dist/adapters/runMain.js +2 -1
- package/dist/adapters/runMain.js.map +1 -1
- package/dist/adapters/serviceModelCheck.d.ts +9 -0
- package/dist/adapters/serviceModelCheck.d.ts.map +1 -0
- package/dist/adapters/{serviceModelFindings.js → serviceModelCheck.js} +9 -23
- package/dist/adapters/serviceModelCheck.js.map +1 -0
- package/dist/adapters/sharedErrorCatalog.d.ts +13 -0
- package/dist/adapters/sharedErrorCatalog.d.ts.map +1 -0
- package/dist/adapters/sharedErrorCatalog.js +28 -0
- package/dist/adapters/sharedErrorCatalog.js.map +1 -0
- package/dist/adapters/sharedErrorModules.d.ts +1 -1
- package/dist/adapters/sharedErrorModules.d.ts.map +1 -1
- package/dist/adapters/sharedErrorModules.js.map +1 -1
- package/dist/adapters/specReaderSources.d.ts +3 -2
- package/dist/adapters/specReaderSources.d.ts.map +1 -1
- package/dist/adapters/specReaderSources.js +6 -3
- package/dist/adapters/specReaderSources.js.map +1 -1
- package/dist/adapters/storyProgram.d.ts +2 -0
- package/dist/adapters/storyProgram.d.ts.map +1 -1
- package/dist/adapters/storyProgram.js +13 -3
- package/dist/adapters/storyProgram.js.map +1 -1
- package/dist/adapters/typeScriptProgram.d.ts +5 -0
- package/dist/adapters/typeScriptProgram.d.ts.map +1 -0
- package/dist/adapters/typeScriptProgram.js +43 -0
- package/dist/adapters/typeScriptProgram.js.map +1 -0
- package/dist/baseline/compare.d.ts +2 -0
- package/dist/baseline/compare.d.ts.map +1 -1
- package/dist/baseline/compare.js +43 -17
- package/dist/baseline/compare.js.map +1 -1
- package/dist/baseline/format.d.ts +1 -0
- package/dist/baseline/format.d.ts.map +1 -1
- package/dist/baseline/format.js +6 -2
- package/dist/baseline/format.js.map +1 -1
- package/dist/baseline/merge.d.ts.map +1 -1
- package/dist/baseline/merge.js +14 -1
- package/dist/baseline/merge.js.map +1 -1
- package/dist/baseline/rewrite.d.ts.map +1 -1
- package/dist/baseline/rewrite.js +3 -1
- package/dist/baseline/rewrite.js.map +1 -1
- package/dist/baseline/update.d.ts +7 -0
- package/dist/baseline/update.d.ts.map +1 -1
- package/dist/baseline/update.js +29 -8
- package/dist/baseline/update.js.map +1 -1
- package/dist/biome/exceptionConfig.d.ts +3 -0
- package/dist/biome/exceptionConfig.d.ts.map +1 -1
- package/dist/biome/exceptionConfig.js +15 -1
- package/dist/biome/exceptionConfig.js.map +1 -1
- package/dist/biome/scannerRules.d.ts +3 -0
- package/dist/biome/scannerRules.d.ts.map +1 -0
- package/dist/biome/scannerRules.js +42 -0
- package/dist/biome/scannerRules.js.map +1 -0
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +10 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/baseline.d.ts.map +1 -1
- package/dist/cli/baseline.js +5 -1
- package/dist/cli/baseline.js.map +1 -1
- package/dist/cli/lint.d.ts +3 -2
- package/dist/cli/lint.d.ts.map +1 -1
- package/dist/cli/lint.js +13 -5
- package/dist/cli/lint.js.map +1 -1
- package/dist/cli/misplaced.d.ts +6 -0
- package/dist/cli/misplaced.d.ts.map +1 -1
- package/dist/cli/misplaced.js +4 -2
- package/dist/cli/misplaced.js.map +1 -1
- package/dist/cli/program.js +1 -1
- package/dist/cli/program.js.map +1 -1
- package/dist/cli/runSet.d.ts +5 -0
- package/dist/cli/runSet.d.ts.map +1 -0
- package/dist/cli/runSet.js +15 -0
- package/dist/cli/runSet.js.map +1 -0
- package/dist/cli/shrink.d.ts +4 -4
- package/dist/cli/shrink.d.ts.map +1 -1
- package/dist/cli/shrink.js.map +1 -1
- package/dist/cli/usage.d.ts +1 -1
- package/dist/cli/usage.d.ts.map +1 -1
- package/dist/cli/usage.js +7 -2
- package/dist/cli/usage.js.map +1 -1
- package/dist/config/decode.d.ts +1 -0
- package/dist/config/decode.d.ts.map +1 -1
- package/dist/config/decode.js +1 -0
- package/dist/config/decode.js.map +1 -1
- package/dist/config/load.d.ts +2 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +1 -0
- package/dist/config/load.js.map +1 -1
- package/dist/config/resolve.d.ts +2 -1
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +9 -4
- package/dist/config/resolve.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/engine/childStarted.d.ts +4 -0
- package/dist/engine/childStarted.d.ts.map +1 -0
- package/dist/engine/childStarted.js +7 -0
- package/dist/engine/childStarted.js.map +1 -0
- package/dist/engine/evaluate.d.ts +1 -0
- package/dist/engine/evaluate.d.ts.map +1 -1
- package/dist/engine/evaluate.js +2 -1
- package/dist/engine/evaluate.js.map +1 -1
- package/dist/engine/runRule.d.ts +21 -0
- package/dist/engine/runRule.d.ts.map +1 -0
- package/dist/engine/runRule.js +70 -0
- package/dist/engine/runRule.js.map +1 -0
- package/dist/engine/runRules.d.ts +5 -12
- package/dist/engine/runRules.d.ts.map +1 -1
- package/dist/engine/runRules.js +49 -65
- package/dist/engine/runRules.js.map +1 -1
- package/dist/engine/session.d.ts +2 -1
- package/dist/engine/session.d.ts.map +1 -1
- package/dist/engine/session.js +20 -6
- package/dist/engine/session.js.map +1 -1
- package/dist/engine/violation.d.ts +7 -0
- package/dist/engine/violation.d.ts.map +1 -1
- package/dist/engine/violation.js +9 -0
- package/dist/engine/violation.js.map +1 -1
- package/dist/exceptions/biomeFindings.d.ts +5 -1
- package/dist/exceptions/biomeFindings.d.ts.map +1 -1
- package/dist/exceptions/biomeFindings.js +17 -18
- package/dist/exceptions/biomeFindings.js.map +1 -1
- package/dist/exceptions/registry.d.ts.map +1 -1
- package/dist/exceptions/registry.js +2 -2
- package/dist/exceptions/registry.js.map +1 -1
- package/dist/hooks/preCommit.d.ts +1 -2
- package/dist/hooks/preCommit.d.ts.map +1 -1
- package/dist/hooks/preCommit.js +11 -1
- package/dist/hooks/preCommit.js.map +1 -1
- package/dist/hooks/stagedCheck.d.ts +5 -0
- package/dist/hooks/stagedCheck.d.ts.map +1 -0
- package/dist/hooks/stagedCheck.js +43 -0
- package/dist/hooks/stagedCheck.js.map +1 -0
- package/dist/hooks/withStagedContent.d.ts +5 -0
- package/dist/hooks/withStagedContent.d.ts.map +1 -0
- package/dist/hooks/withStagedContent.js +84 -0
- package/dist/hooks/withStagedContent.js.map +1 -0
- package/dist/imports/browserGlobals.d.ts +1 -1
- package/dist/imports/browserGlobals.d.ts.map +1 -1
- package/dist/imports/browserNames.d.ts +1 -1
- package/dist/imports/browserNames.d.ts.map +1 -1
- package/dist/imports/browserNames.js +5 -3
- package/dist/imports/browserNames.js.map +1 -1
- package/dist/imports/fences/check.d.ts +1 -1
- package/dist/imports/fences/check.d.ts.map +1 -1
- package/dist/imports/fences/compilePolicy.js +1 -1
- package/dist/imports/fences/compilePolicy.js.map +1 -1
- package/dist/imports/fences/evaluate.d.ts +1 -1
- package/dist/imports/fences/evaluate.d.ts.map +1 -1
- package/dist/imports/fences/evaluate.js +1 -1
- package/dist/imports/fences/evaluate.js.map +1 -1
- package/dist/imports/graph.d.ts +6 -1
- package/dist/imports/graph.d.ts.map +1 -1
- package/dist/imports/graph.js +30 -2
- package/dist/imports/graph.js.map +1 -1
- package/dist/imports/withoutGenerated.js +1 -1
- package/dist/imports/withoutGenerated.js.map +1 -1
- package/dist/inventory/programmaticBuilds.d.ts +1 -1
- package/dist/inventory/programmaticBuilds.d.ts.map +1 -1
- package/dist/inventory/trackedPaths.d.ts +1 -0
- package/dist/inventory/trackedPaths.d.ts.map +1 -1
- package/dist/inventory/trackedPaths.js +9 -3
- package/dist/inventory/trackedPaths.js.map +1 -1
- package/dist/naming/testCode.d.ts +1 -1
- package/dist/naming/testCode.d.ts.map +1 -1
- package/dist/report/render.d.ts +1 -0
- package/dist/report/render.d.ts.map +1 -1
- package/dist/report/render.js +10 -3
- package/dist/report/render.js.map +1 -1
- package/dist/report/runSetLine.d.ts +3 -0
- package/dist/report/runSetLine.d.ts.map +1 -0
- package/dist/report/runSetLine.js +13 -0
- package/dist/report/runSetLine.js.map +1 -0
- package/dist/report/staleSections.d.ts.map +1 -1
- package/dist/report/staleSections.js +13 -0
- package/dist/report/staleSections.js.map +1 -1
- package/dist/rule.d.ts +30 -4
- package/dist/rule.d.ts.map +1 -1
- package/dist/rule.js +4 -2
- package/dist/rule.js.map +1 -1
- package/dist/rules/biome.d.ts +18 -1
- package/dist/rules/biome.d.ts.map +1 -1
- package/dist/rules/biome.js +32 -7
- package/dist/rules/biome.js.map +1 -1
- package/dist/rules/builtIn.d.ts +8 -8
- package/dist/rules/builtIn.d.ts.map +1 -1
- package/dist/rules/builtIn.js +0 -2
- package/dist/rules/builtIn.js.map +1 -1
- package/dist/rules/effect/adapterImports.d.ts +1 -1
- package/dist/rules/effect/adapterImports.d.ts.map +1 -1
- package/dist/rules/effect/adapterImports.js +1 -1
- package/dist/rules/effect/adapterImports.js.map +1 -1
- package/dist/rules/effect/boundary.d.ts +1 -1
- package/dist/rules/effect/boundary.d.ts.map +1 -1
- package/dist/rules/effect/boundary.js +60 -75
- package/dist/rules/effect/boundary.js.map +1 -1
- package/dist/rules/effect/boundaryFindings.d.ts +4 -0
- package/dist/rules/effect/boundaryFindings.d.ts.map +1 -0
- package/dist/rules/effect/boundaryFindings.js +63 -0
- package/dist/rules/effect/boundaryFindings.js.map +1 -0
- package/dist/rules/effect/boundaryReference.d.ts +4 -0
- package/dist/rules/effect/boundaryReference.d.ts.map +1 -1
- package/dist/rules/effect/boundaryReference.js +6 -3
- package/dist/rules/effect/boundaryReference.js.map +1 -1
- package/dist/rules/effect/contextCapture.d.ts.map +1 -1
- package/dist/rules/effect/contextCapture.js +3 -2
- package/dist/rules/effect/contextCapture.js.map +1 -1
- package/dist/rules/effect/errorTags.d.ts +10 -0
- package/dist/rules/effect/errorTags.d.ts.map +1 -0
- package/dist/rules/effect/errorTags.js +57 -0
- package/dist/rules/effect/errorTags.js.map +1 -0
- package/dist/rules/effect/failureHonesty.d.ts +1 -1
- package/dist/rules/effect/failureHonesty.d.ts.map +1 -1
- package/dist/rules/effect/failureHonesty.js +6 -5
- package/dist/rules/effect/failureHonesty.js.map +1 -1
- package/dist/rules/effect/policy.d.ts +1 -1
- package/dist/rules/effect/policy.d.ts.map +1 -1
- package/dist/rules/effect/policy.js +0 -2
- package/dist/rules/effect/policy.js.map +1 -1
- package/dist/rules/effect/promiseBridge.d.ts +3 -0
- package/dist/rules/effect/promiseBridge.d.ts.map +1 -0
- package/dist/rules/effect/promiseBridge.js +60 -0
- package/dist/rules/effect/promiseBridge.js.map +1 -0
- package/dist/rules/effect/rpcBoundary.d.ts.map +1 -1
- package/dist/rules/effect/rpcBoundary.js +92 -3
- package/dist/rules/effect/rpcBoundary.js.map +1 -1
- package/dist/rules/effect/serviceModel.d.ts.map +1 -1
- package/dist/rules/effect/serviceModel.js +3 -2
- package/dist/rules/effect/serviceModel.js.map +1 -1
- package/dist/rules/effect/serviceParameterCheck.d.ts +7 -0
- package/dist/rules/effect/serviceParameterCheck.d.ts.map +1 -0
- package/dist/rules/effect/serviceParameterCheck.js +15 -0
- package/dist/rules/effect/serviceParameterCheck.js.map +1 -0
- package/dist/rules/effect/serviceParameters.d.ts.map +1 -1
- package/dist/rules/effect/serviceParameters.js +4 -36
- package/dist/rules/effect/serviceParameters.js.map +1 -1
- package/dist/rules/effect/sharedErrorClasses.d.ts.map +1 -1
- package/dist/rules/effect/sharedErrorClasses.js +31 -2
- package/dist/rules/effect/sharedErrorClasses.js.map +1 -1
- package/dist/rules/effect/workspaceProgram.d.ts +5 -0
- package/dist/rules/effect/workspaceProgram.d.ts.map +1 -0
- package/dist/rules/effect/workspaceProgram.js +32 -0
- package/dist/rules/effect/workspaceProgram.js.map +1 -0
- package/dist/rules/imports/adminPaths.d.ts +1 -1
- package/dist/rules/imports/adminPaths.d.ts.map +1 -1
- package/dist/rules/imports/cycles.d.ts +1 -1
- package/dist/rules/imports/cycles.d.ts.map +1 -1
- package/dist/rules/imports/fences.d.ts +1 -1
- package/dist/rules/imports/fences.d.ts.map +1 -1
- package/dist/rules/imports/manifest.d.ts +1 -1
- package/dist/rules/imports/manifest.d.ts.map +1 -1
- package/dist/rules/imports/noTestCode.d.ts +1 -1
- package/dist/rules/imports/noTestCode.d.ts.map +1 -1
- package/dist/rules/imports/runtime.d.ts +1 -1
- package/dist/rules/imports/runtime.d.ts.map +1 -1
- package/dist/rules/imports/runtime.js +32 -5
- package/dist/rules/imports/runtime.js.map +1 -1
- package/dist/rules/manifestsNoTestKits.js +1 -1
- package/dist/rules/manifestsNoTestKits.js.map +1 -1
- package/dist/rules/maxLines.d.ts +1 -1
- package/dist/rules/maxLines.d.ts.map +1 -1
- package/dist/rules/packageFindings.d.ts +31 -0
- package/dist/rules/packageFindings.d.ts.map +1 -0
- package/dist/rules/packageFindings.js +65 -0
- package/dist/rules/packageFindings.js.map +1 -0
- package/dist/rules/parse.d.ts +4 -1
- package/dist/rules/parse.d.ts.map +1 -1
- package/dist/rules/parse.js +35 -2
- package/dist/rules/parse.js.map +1 -1
- package/dist/rules/rootedFindings.d.ts +5 -0
- package/dist/rules/rootedFindings.d.ts.map +1 -0
- package/dist/rules/rootedFindings.js +16 -0
- package/dist/rules/rootedFindings.js.map +1 -0
- package/dist/rules/stories/adapterOnlyFakes.d.ts +1 -1
- package/dist/rules/stories/adapterOnlyFakes.d.ts.map +1 -1
- package/dist/rules/stories/adapterOnlyFakes.js +1 -0
- package/dist/rules/stories/adapterOnlyFakes.js.map +1 -1
- package/dist/rules/stories/databaseUrl.d.ts +1 -1
- package/dist/rules/stories/databaseUrl.d.ts.map +1 -1
- package/dist/rules/stories/databaseUrl.js +1 -0
- package/dist/rules/stories/databaseUrl.js.map +1 -1
- package/dist/rules/stories/domainOutcomes.d.ts +1 -1
- package/dist/rules/stories/domainOutcomes.d.ts.map +1 -1
- package/dist/rules/stories/domainOutcomes.js +1 -0
- package/dist/rules/stories/domainOutcomes.js.map +1 -1
- package/dist/rules/stories/engine.d.ts +1 -1
- package/dist/rules/stories/engine.d.ts.map +1 -1
- package/dist/rules/stories/engine.js +1 -0
- package/dist/rules/stories/engine.js.map +1 -1
- package/dist/rules/stories/globalRetries.d.ts +1 -1
- package/dist/rules/stories/globalRetries.d.ts.map +1 -1
- package/dist/rules/stories/globalRetries.js +1 -0
- package/dist/rules/stories/globalRetries.js.map +1 -1
- package/dist/rules/stories/groupedOutcomes.d.ts +1 -1
- package/dist/rules/stories/groupedOutcomes.d.ts.map +1 -1
- package/dist/rules/stories/groupedOutcomes.js +1 -0
- package/dist/rules/stories/groupedOutcomes.js.map +1 -1
- package/dist/rules/stories/importedChangeKeys.js +2 -2
- package/dist/rules/stories/importedChangeKeys.js.map +1 -1
- package/dist/rules/stories/namedValues.d.ts +1 -1
- package/dist/rules/stories/namedValues.d.ts.map +1 -1
- package/dist/rules/stories/namedValues.js +1 -0
- package/dist/rules/stories/namedValues.js.map +1 -1
- package/dist/rules/stories/noExpect.d.ts +1 -1
- package/dist/rules/stories/noExpect.d.ts.map +1 -1
- package/dist/rules/stories/noLimitImports.d.ts +1 -1
- package/dist/rules/stories/noLimitImports.d.ts.map +1 -1
- package/dist/rules/stories/noLimitImports.js +1 -0
- package/dist/rules/stories/noLimitImports.js.map +1 -1
- package/dist/rules/stories/positiveRefusals.d.ts +1 -1
- package/dist/rules/stories/positiveRefusals.d.ts.map +1 -1
- package/dist/rules/stories/positiveRefusals.js +1 -0
- package/dist/rules/stories/positiveRefusals.js.map +1 -1
- package/dist/rules/stories/queueReadouts.d.ts +1 -1
- package/dist/rules/stories/queueReadouts.d.ts.map +1 -1
- package/dist/rules/stories/queueReadouts.js +1 -0
- package/dist/rules/stories/queueReadouts.js.map +1 -1
- package/dist/rules/stories/sources.d.ts +2 -2
- package/dist/rules/stories/sources.d.ts.map +1 -1
- package/dist/rules/stories/specHelpers.d.ts +1 -1
- package/dist/rules/stories/specHelpers.d.ts.map +1 -1
- package/dist/rules/stories/specHelpers.js +3 -2
- package/dist/rules/stories/specHelpers.js.map +1 -1
- package/dist/rules/stories/specs.d.ts +1 -1
- package/dist/rules/stories/specs.d.ts.map +1 -1
- package/dist/rules/stories/specs.js +1 -0
- package/dist/rules/stories/specs.js.map +1 -1
- package/dist/rules/stories/waitOnEvents.d.ts +1 -1
- package/dist/rules/stories/waitOnEvents.d.ts.map +1 -1
- package/dist/rules/stories/waitOnEvents.js +3 -3
- package/dist/rules/stories/waitOnEvents.js.map +1 -1
- package/dist/rules/suppressions/noDoubleCast.d.ts.map +1 -1
- package/dist/rules/suppressions/noDoubleCast.js +4 -49
- package/dist/rules/suppressions/noDoubleCast.js.map +1 -1
- package/dist/rules/suppressions/typedCastCheck.d.ts +10 -0
- package/dist/rules/suppressions/typedCastCheck.d.ts.map +1 -0
- package/dist/rules/suppressions/typedCastCheck.js +48 -0
- package/dist/rules/suppressions/typedCastCheck.js.map +1 -0
- package/dist/rules/unusedCode.d.ts.map +1 -1
- package/dist/rules/unusedCode.js +1 -0
- package/dist/rules/unusedCode.js.map +1 -1
- package/dist/testing/adapters/cli.d.ts +1 -0
- package/dist/testing/adapters/cli.d.ts.map +1 -1
- package/dist/testing/adapters/cli.js +10 -8
- package/dist/testing/adapters/cli.js.map +1 -1
- package/dist/testing/adapters/git.d.ts +1 -16
- package/dist/testing/adapters/git.d.ts.map +1 -1
- package/dist/testing/adapters/git.js +5 -10
- package/dist/testing/adapters/git.js.map +1 -1
- package/dist/testing/adapters/hookRepository.d.ts +3 -2
- package/dist/testing/adapters/hookRepository.d.ts.map +1 -1
- package/dist/testing/adapters/hookRepository.js +11 -8
- package/dist/testing/adapters/hookRepository.js.map +1 -1
- package/dist/testing/adapters/imports.d.ts.map +1 -1
- package/dist/testing/adapters/imports.js +4 -1
- package/dist/testing/adapters/imports.js.map +1 -1
- package/dist/testing/ruleStory.d.ts +1 -1
- package/dist/testing/ruleStory.js +2 -2
- package/dist/testing/ruleStory.js.map +1 -1
- package/docs/debt-and-hooks.md +5 -3
- package/package.json +19 -19
- package/src/adapters/biome/pluginContract.ts +2 -5
- package/src/adapters/biome/run.ts +2 -0
- package/src/adapters/biome/withExceptionConfig.ts +26 -5
- package/src/adapters/{changeKeyFindings.ts → changeKeyCheck.ts} +8 -24
- package/src/adapters/contextCaptureCheck.ts +106 -0
- package/src/adapters/declaration-files/initialize.ts +4 -0
- package/src/adapters/declaration-files/parse.ts +9 -0
- package/src/adapters/declaration-files/reader.ts +28 -0
- package/src/adapters/declaration-files/service.ts +16 -0
- package/src/adapters/foreignResources.ts +0 -4
- package/src/adapters/import-compiler/graph.ts +7 -2
- package/src/adapters/imports/graph.ts +43 -18
- package/src/adapters/knip/configuration.ts +6 -4
- package/src/adapters/knip/run.ts +4 -1
- package/src/adapters/outsideImportFindings.ts +21 -65
- package/src/adapters/rule.ts +29 -6
- package/src/adapters/runMain.ts +7 -6
- package/src/adapters/{serviceModelFindings.ts → serviceModelCheck.ts} +10 -25
- package/src/adapters/sharedErrorCatalog.ts +43 -0
- package/src/adapters/sharedErrorModules.ts +1 -1
- package/src/adapters/specReaderSources.ts +6 -3
- package/src/adapters/storyProgram.ts +20 -3
- package/src/adapters/typeScriptProgram.ts +57 -0
- package/src/baseline/compare.ts +59 -19
- package/src/baseline/format.ts +7 -2
- package/src/baseline/merge.ts +15 -1
- package/src/baseline/rewrite.ts +3 -1
- package/src/baseline/update.ts +38 -8
- package/src/biome/exceptionConfig.ts +24 -3
- package/src/biome/scannerRules.ts +42 -0
- package/src/cli/args.ts +13 -2
- package/src/cli/baseline.ts +7 -1
- package/src/cli/lint.ts +14 -6
- package/src/cli/misplaced.ts +4 -2
- package/src/cli/program.ts +1 -1
- package/src/cli/runSet.ts +17 -0
- package/src/cli/shrink.ts +4 -11
- package/src/cli/usage.ts +7 -2
- package/src/config/decode.ts +1 -0
- package/src/config/load.ts +3 -0
- package/src/config/resolve.ts +11 -6
- package/src/config.ts +3 -0
- package/src/engine/childStarted.ts +8 -0
- package/src/engine/evaluate.ts +3 -1
- package/src/engine/runRule.ts +103 -0
- package/src/engine/runRules.ts +64 -86
- package/src/engine/session.ts +23 -5
- package/src/engine/violation.ts +16 -0
- package/src/exceptions/biomeFindings.ts +24 -21
- package/src/exceptions/registry.ts +2 -2
- package/src/hooks/preCommit.ts +15 -1
- package/src/hooks/stagedCheck.ts +54 -0
- package/src/hooks/withStagedContent.ts +111 -0
- package/src/imports/browserNames.ts +7 -5
- package/src/imports/fences/compilePolicy.ts +1 -1
- package/src/imports/fences/evaluate.ts +2 -2
- package/src/imports/graph.ts +47 -3
- package/src/imports/withoutGenerated.ts +1 -1
- package/src/inventory/trackedPaths.ts +10 -3
- package/src/report/render.ts +12 -3
- package/src/report/runSetLine.ts +14 -0
- package/src/report/staleSections.ts +14 -0
- package/src/rule.ts +38 -7
- package/src/rules/biome.ts +53 -7
- package/src/rules/builtIn.ts +0 -2
- package/src/rules/effect/adapterImports.ts +1 -1
- package/src/rules/effect/boundary.ts +82 -83
- package/src/rules/effect/boundaryFindings.ts +71 -0
- package/src/rules/effect/boundaryReference.ts +7 -3
- package/src/rules/effect/contextCapture.ts +3 -2
- package/src/rules/effect/errorTags.ts +72 -0
- package/src/rules/effect/failureHonesty.ts +9 -5
- package/src/rules/effect/policy.ts +0 -2
- package/src/rules/effect/promiseBridge.ts +65 -0
- package/src/rules/effect/rpcBoundary.ts +111 -4
- package/src/rules/effect/serviceModel.ts +3 -2
- package/src/rules/effect/serviceParameterCheck.ts +22 -0
- package/src/rules/effect/serviceParameters.ts +5 -37
- package/src/rules/effect/sharedErrorClasses.ts +41 -3
- package/src/rules/effect/workspaceProgram.ts +34 -0
- package/src/rules/imports/runtime.ts +43 -6
- package/src/rules/manifestsNoTestKits.ts +1 -1
- package/src/rules/packageFindings.ts +103 -0
- package/src/rules/parse.ts +54 -3
- package/src/rules/rootedFindings.ts +19 -0
- package/src/rules/stories/adapterOnlyFakes.ts +1 -0
- package/src/rules/stories/databaseUrl.ts +1 -0
- package/src/rules/stories/domainOutcomes.ts +1 -0
- package/src/rules/stories/engine.ts +1 -0
- package/src/rules/stories/globalRetries.ts +1 -0
- package/src/rules/stories/groupedOutcomes.ts +1 -0
- package/src/rules/stories/importedChangeKeys.ts +2 -2
- package/src/rules/stories/namedValues.ts +1 -0
- package/src/rules/stories/noLimitImports.ts +1 -0
- package/src/rules/stories/positiveRefusals.ts +1 -0
- package/src/rules/stories/queueReadouts.ts +1 -0
- package/src/rules/stories/specHelpers.ts +8 -5
- package/src/rules/stories/specs.ts +1 -0
- package/src/rules/stories/waitOnEvents.ts +6 -3
- package/src/rules/suppressions/noDoubleCast.ts +5 -55
- package/src/rules/suppressions/typedCastCheck.ts +55 -0
- package/src/rules/unusedCode.ts +1 -0
- package/src/testing/adapters/cli.ts +13 -9
- package/src/testing/adapters/git.ts +6 -11
- package/src/testing/adapters/hookRepository.ts +12 -7
- package/src/testing/adapters/imports.ts +4 -1
- package/src/testing/ruleStory.ts +2 -2
- package/dist/adapters/biome/presetConfig.d.ts +0 -21
- package/dist/adapters/biome/presetConfig.d.ts.map +0 -1
- package/dist/adapters/biome/presetConfig.js +0 -32
- package/dist/adapters/biome/presetConfig.js.map +0 -1
- package/dist/adapters/changeKeyFindings.d.ts +0 -4
- package/dist/adapters/changeKeyFindings.d.ts.map +0 -1
- package/dist/adapters/changeKeyFindings.js.map +0 -1
- package/dist/adapters/contextCaptureFindings.d.ts +0 -4
- package/dist/adapters/contextCaptureFindings.d.ts.map +0 -1
- package/dist/adapters/contextCaptureFindings.js +0 -51
- package/dist/adapters/contextCaptureFindings.js.map +0 -1
- package/dist/adapters/nativeTransactionFindings.d.ts +0 -4
- package/dist/adapters/nativeTransactionFindings.d.ts.map +0 -1
- package/dist/adapters/nativeTransactionFindings.js +0 -98
- package/dist/adapters/nativeTransactionFindings.js.map +0 -1
- package/dist/adapters/rpcBoundaryFindings.d.ts +0 -4
- package/dist/adapters/rpcBoundaryFindings.d.ts.map +0 -1
- package/dist/adapters/rpcBoundaryFindings.js +0 -90
- package/dist/adapters/rpcBoundaryFindings.js.map +0 -1
- package/dist/adapters/serviceModelFindings.d.ts +0 -4
- package/dist/adapters/serviceModelFindings.d.ts.map +0 -1
- package/dist/adapters/serviceModelFindings.js.map +0 -1
- package/dist/adapters/sharedErrorFindings.d.ts +0 -4
- package/dist/adapters/sharedErrorFindings.d.ts.map +0 -1
- package/dist/adapters/sharedErrorFindings.js +0 -71
- package/dist/adapters/sharedErrorFindings.js.map +0 -1
- package/dist/adapters/transactionChanges.d.ts +0 -3
- package/dist/adapters/transactionChanges.d.ts.map +0 -1
- package/dist/adapters/transactionChanges.js +0 -81
- package/dist/adapters/transactionChanges.js.map +0 -1
- package/dist/adapters/vitePort.d.ts +0 -2
- package/dist/adapters/vitePort.d.ts.map +0 -1
- package/dist/adapters/vitePort.js +0 -5
- package/dist/adapters/vitePort.js.map +0 -1
- package/dist/appTestConfig.d.ts +0 -4
- package/dist/appTestConfig.d.ts.map +0 -1
- package/dist/appTestConfig.js +0 -9
- package/dist/appTestConfig.js.map +0 -1
- package/dist/appViteConfig.d.ts +0 -23
- package/dist/appViteConfig.d.ts.map +0 -1
- package/dist/appViteConfig.js +0 -17
- package/dist/appViteConfig.js.map +0 -1
- package/dist/biome/recommendedRules.d.ts +0 -3
- package/dist/biome/recommendedRules.d.ts.map +0 -1
- package/dist/biome/recommendedRules.js +0 -20
- package/dist/biome/recommendedRules.js.map +0 -1
- package/dist/rules/effect/program.d.ts +0 -8
- package/dist/rules/effect/program.d.ts.map +0 -1
- package/dist/rules/effect/program.js +0 -53
- package/dist/rules/effect/program.js.map +0 -1
- package/dist/rules/effect/sqlTransact.d.ts +0 -2
- package/dist/rules/effect/sqlTransact.d.ts.map +0 -1
- package/dist/rules/effect/sqlTransact.js +0 -9
- package/dist/rules/effect/sqlTransact.js.map +0 -1
- package/dist/rules/suppressions/biomeRecommended.d.ts +0 -7
- package/dist/rules/suppressions/biomeRecommended.d.ts.map +0 -1
- package/dist/rules/suppressions/biomeRecommended.js +0 -47
- package/dist/rules/suppressions/biomeRecommended.js.map +0 -1
- package/src/adapters/biome/presetConfig.ts +0 -34
- package/src/adapters/contextCaptureFindings.ts +0 -60
- package/src/adapters/nativeTransactionFindings.ts +0 -108
- package/src/adapters/rpcBoundaryFindings.ts +0 -98
- package/src/adapters/sharedErrorFindings.ts +0 -84
- package/src/adapters/transactionChanges.ts +0 -85
- package/src/adapters/vitePort.ts +0 -5
- package/src/appTestConfig.ts +0 -10
- package/src/appViteConfig.ts +0 -24
- package/src/biome/recommendedRules.ts +0 -27
- package/src/rules/effect/program.ts +0 -57
- package/src/rules/effect/sqlTransact.ts +0 -10
- package/src/rules/suppressions/biomeRecommended.ts +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.77.0 - 2026-11-11
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `effect/boundary` reports an `Effect.promise` or `Effect.tryPromise` bridge outside `adapters/` and `test-support/` whose callback calls a binding imported from an outside library: any import other than `effect`, `@effect/*`, `@shivaedev/*`, a workspace package, a relative path, a `#` alias or a Node builtin. Move that bridge into a module under `adapters/` that returns an Effect.
|
|
8
|
+
- The `biome` rule runs the Biome rules that need its project scanner, those of Biome's `project` and `types` domains such as `noFloatingPromises`, `noUndeclaredDependencies` and `useTailwindSortedClasses`, as its scanner half, in CI and with `quality lint --full`. A fast run's Biome turns them off and runs without the scanner, which takes its memory from 1.1 to 1.2 GB to about 0.4 GB in Quality's own repository, names `biome scanner half` in its closing line and sets aside the exceptions that name those rules. A fast run and the scanner half together report exactly what the rule reported before. A local `quality lint`, and so the default commit hook, no longer reports findings of those rules; they fail in CI or with `quality lint --full`. Only a commit hook with `preCommit: "staged"`, which runs Biome's full config on the staged files, still reports them on commit.
|
|
9
|
+
- Baseline entries for Biome findings record the scanner half's share as `deep`, as for the other split rules. Run `quality baseline prune` once, as a full run reminds you to, so a fast run judges existing Biome entries exactly instead of as upper bounds.
|
|
10
|
+
- `imports/resolvable` accepts a tracked `README.md` in a declared `generated` folder, beside `.gitkeep` and `.keep`, so the folder can name the command that writes its output.
|
|
11
|
+
- Quality follows imports through modules the sources import that git ignores, such as generated output, without reporting them: `imports/runtime` and transitive fences report the checked file whose import reaches forbidden code through them, naming the chain, and `code/unused` counts their imports as uses.
|
|
12
|
+
- A rule definition may declare `depth: "deep"`, and local rules from `defineRule` may declare it the same way; every other rule is fast. `quality lint` runs only the fast rules unless the environment sets `CI`, `CLAUDE_CODE_REMOTE` is `true` or `--full` is passed, and `--fast` forces the fast set. A fast run ends with a line naming each deep rule it skipped and how to run it; a full run ends with a line naming the deep rules it checked. A fast run sets the baseline entries and exceptions of the rules it skipped aside, so they are neither stale nor loose. `baseline write`, `tighten`, `prune` and `fix` always run every rule and refuse `--fast`.
|
|
13
|
+
- Rule inputs carry `typeScript`, an Effect of a TypeScript program, its type checker and the `ts` module that built them, over the scanned sources, so local rules can read types without importing Quality's internal modules or their own `typescript`. Every rule in a run that asks for it receives the same program, built at most once and only on first use. A configured check called by hand builds one from `root` and `sources` when its inputs leave `typeScript` out.
|
|
14
|
+
- A rule definition may declare `deepHalf: { check, name }`. Its `check` runs on every lint, `deepHalf.check` runs only where deep rules run (CI, a Claude Code cloud session and `quality lint --full`), and both report under the rule's id. A fast run names each skipped half in its closing line as the rule id followed by `name`. `Rule.configure` still returns a `check` that runs both halves.
|
|
15
|
+
- A baseline entry of a rule with a deep half records `deep`, how many of its `count` violations the deep half reports: `{"path":"src/sync.ts","rule":"effect/boundary","count":5,"deep":2}`. `baseline write`, `tighten` and `prune` write it, and lower the fast and deep shares separately. A fast run judges the fast share exactly, so a fixed syntax finding makes the entry loose and the commit check asks for `quality baseline tighten --staged`, and an added one fails. A full run judges the total. The merge driver takes the minimum of each share when both sides record it, and merges the totals as before when either side does not.
|
|
16
|
+
- A rule definition may declare `needs`, what it takes from the run: `"story-program"` runs it among the rules that read the story program, which the run builds once for them and drops after the last of them, whatever the rule's tier; `"child-process"` marks a check that runs a child process, such as Biome or Knip.
|
|
17
|
+
- `preCommit: "staged"` in `quality.config.ts` makes the pre-commit hook run only Biome's lint and format checks on the staged content of the staged files, skipping the full lint and the `typecheck` and `quality:commit` scripts. A Claude Code cloud session, where `CLAUDE_CODE_REMOTE` is `true`, still runs the full checks. Without the setting the hook is unchanged.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- `effect/adapter-imports` reports only value imports of Node builtins outside `adapters/`. Using or exposing a library's types and calling a library function that returns a plain value need no adapter in core or client code, so applications get fewer findings from this rule and need no change for it.
|
|
22
|
+
- `effect/service-parameters` accepts a foreign resource passed between functions in any folder, and a default export implementing an imported foreign `Plugin` type is accepted in any folder.
|
|
23
|
+
- `effect/boundary`, `effect/service-parameters` and `effect/adapter-imports` describe `adapters/` as the one place for what Quality forbids elsewhere because a library requires it.
|
|
24
|
+
- `manifests/no-test-kits` treats `@shivaedev/build` as test tooling, so its `vitest` peer is accepted.
|
|
25
|
+
- The built-in rules that ask the TypeScript type checker (`effect/service-parameters`, `effect/service-model`, `effect/context-capture`, `effect/rpc-boundary`, `effect/sql-transact`, `effect/shared-error-classes`, `boundaries/imported-change-keys` and the typed checks of `suppressions/no-double-cast`) share one program per workspace package in a lint, and each package's program is dropped before the next is built. Before, each rule built its own programs. A lint of this repository finished about 15 percent sooner with the same peak memory and the same findings.
|
|
26
|
+
- A lint starts Biome and Knip before the rules that run in Quality's own process, so their child processes no longer start late and hold up the end of the run.
|
|
27
|
+
- `quality lint` judges Biome exceptions from its one Biome run, which reports the declared rules and sets their findings aside, instead of a second Biome run over the declared files.
|
|
28
|
+
- `effect/service-parameters` is a deep rule. A local `quality lint`, and the pre-commit hook outside a Claude Code cloud session, no longer report it; CI and `quality lint --full` still do.
|
|
29
|
+
- The type-checking rules that share each package's program prepare and run only the checks of the rules in the run, so a fast lint no longer pays for `effect/service-parameters`. A rule waiting for that shared walk no longer holds one of the two rule slots, and deep rules run one at a time after the others.
|
|
30
|
+
- The rule story kit's `gate()` runs `quality lint --full`, so a story sees deep rules' findings in every environment.
|
|
31
|
+
- `runQuality` and `quality` from the testing adapters no longer pass the host's `CI` or `CLAUDE_CODE_REMOTE` to the run, so a story lints the same rule set on a laptop and in CI. `runQualityWith(root, variables, ...args)` runs with the variables a story states.
|
|
32
|
+
- `effect/context-capture` type-checks only the files with a call that could re-provide a context: `provideContext`, `runPromiseWith` or `runForkWith` by name or through an import, destructured or local alias, or a `provide` whose last argument is neither a `Layer.…` expression nor a name ending in `Layer` or `Live` or named `layer`. It builds a program rooted at those files instead of joining the package walk, so a lint takes less time and memory. A runner re-exported under another name through a local module is no longer seen.
|
|
33
|
+
- `effect/service-model` builds a program rooted at the files that call `defineService` instead of joining the package walk; TypeScript loads the operation files they import.
|
|
34
|
+
- A lint parses fewer source files more than once. The story rules and the story program now read one tree per source, released with the story program, and `boundaries/imported-change-keys`, `effect/service-model` and the typed half of `effect/boundary` skip sources they cannot match without parsing them. On this repository a fast lint makes about 16 % fewer parses and spends about 2 s less parsing. Findings and the largest live heap do not change.
|
|
35
|
+
- A lint drops the story program after the last rule that reads it, instead of keeping it until the run ends, and the package walk parses installed declarations into a registry of its own. Measured on Platform's own repository, the heap a run keeps after the walk goes from about 0.8 GB to 0.1 GB, and at the end of the run from 1.5 GB to 0.2 GB. The findings do not change.
|
|
36
|
+
- `effect/boundary` and `suppressions/no-double-cast` split into a syntax half that runs on every lint and a typed half that runs where deep rules run. Together they report exactly what each rule reported before. A local `quality lint` no longer reports `effect/boundary`'s calls to throwing helpers imported from other modules, `Effect.sync` bodies that reach one, or Promise-typed parameters, nor `suppressions/no-double-cast`'s readonly writes and SQL row generics on a tag other than `sql`; CI and `quality lint --full` still do. Calls to throwing helpers defined in the same module are still reported locally.
|
|
37
|
+
- Until an application runs `quality baseline prune` once to record `deep` in its `effect/boundary` and `suppressions/no-double-cast` entries, a local commit does not lock in fixed debt for these two rules: a fast run treats such an entry as an upper bound, and a full run notes how many entries still lack it. Earlier Quality versions refuse a shard line with `deep` as invalid, so every checkout and worktree of a repository must be on this version before `deep` is recorded; to roll back, remove the field by hand first.
|
|
38
|
+
- `quality baseline tighten` and `prune` print one line for each file whose deep half now reports more findings than its entry allows, which CI then reports.
|
|
39
|
+
- The closing line counts deep checks rather than deep rules: `quality: fast run skipped 3 deep checks (effect/boundary typed half, effect/service-parameters, suppressions/no-double-cast typed half); …`, and a full run ends with `quality: full run ran 3 deep checks (…).`
|
|
40
|
+
- `effect/rpc-boundary` and `effect/shared-error-classes` read syntax and no longer build a TypeScript program, so a lint takes less time.
|
|
41
|
+
- `effect/rpc-boundary` sees `rpcBoundary` and `rpcBoundaryHandlers` imported by name or as a namespace from `@shivaedev/errors`; it no longer follows a boundary re-exported through a local module or assigned to a local alias. A group method named `of` accepts a module only on a group built in it or on a member chain such as `Notes.application.of`, so a service tag's `of` never accepts a module.
|
|
42
|
+
- `effect/shared-error-classes` reads literal tags from `TaggedError` and `TaggedErrorClass` constructors, `readonly _tag` literals and subclasses of shared or same-file tagged classes; a tag passed as a constant or through an aliased constructor is no longer seen.
|
|
43
|
+
- `quality lint` parses each installed and TypeScript library declaration file once per run instead of once per type-aware rule, so a lint is faster with the same findings: this repository's lint took 167 s instead of 200 s and the starter's 16 s instead of 20 s.
|
|
44
|
+
- `typeScriptProgram(root, sources)` from `@shivaedev/quality/adapters/typeScriptProgram.ts` is an Effect that needs Quality's `services` Layer from `@shivaedev/quality/adapters/runMain.ts`; build hand-made rule inputs with `typeScript: yield* typeScriptProgram(root, sources)`.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
|
|
48
|
+
- The `preCommit: "staged"` hook can no longer lose a file edited after staging. It stores the working copy in git's object database and prints the commands that recover it before writing the staged content in place, puts every copy back even when writing the staged content fails part way, puts back the others when one copy cannot be restored and names that one, and keeps symlinks, unstaged mode changes and deletions as they were.
|
|
49
|
+
|
|
50
|
+
### Breaking
|
|
51
|
+
|
|
52
|
+
- `appViteConfig` and `appTestConfig` are removed. Add `@shivaedev/build` as a development dependency and import them from `@shivaedev/build/adapters/appViteConfig.ts` and `@shivaedev/build/adapters/appTestConfig.ts`; their arguments are unchanged. An application still on the old operation form passes `{ bundleCheck: false }` as the fourth argument of `appViteConfig` until its browser imports only generated clients.
|
|
53
|
+
- `effect/sql-transact` and its module `@shivaedev/quality/rules/effect/sqlTransact.ts` are removed; `transact` and `invalidateOnCommit` still refuse an unowned native outer transaction at runtime. Delete its baseline entries with `quality baseline prune`, and remove any config setting that names it.
|
|
54
|
+
- `suppressions/biome-recommended` is removed, together with the modules `@shivaedev/quality/rules/suppressions/biomeRecommended.ts`, `@shivaedev/quality/biome/recommendedRules.ts` and `@shivaedev/quality/adapters/biome/presetConfig.ts`. It only checked Quality's own shipped preset, which Quality's test suite now checks against the installed Biome. Delete its baseline entries with `quality baseline prune`; a config that still names it under `rules` is refused with "no built-in or local rule has this id", so remove that setting.
|
|
55
|
+
- A value annotated as `RuleInputs` must now include `typeScript`. Pass the inputs to a configured check without it, where it is optional, or build one with `typeScriptProgram(root, sources)` from `@shivaedev/quality/adapters/typeScriptProgram.ts`.
|
|
56
|
+
|
|
3
57
|
## 0.76.0 - 2026-11-10
|
|
4
58
|
|
|
5
59
|
### Changed
|
package/README.md
CHANGED
|
@@ -26,6 +26,8 @@ Two records explain findings the repository deliberately keeps:
|
|
|
26
26
|
|
|
27
27
|
Exceptions apply first, then the baseline. With the default rule settings, remaining findings fail in one report grouped by rule. A baseline entry with fewer findings left is a note, so removing debt passes immediately. An entry for an unknown or disabled rule fails; debt records must still name a check that runs.
|
|
28
28
|
|
|
29
|
+
A rule is **fast** unless its definition declares `depth: "deep"`, which marks a check too costly for every local run. The tier belongs to the rule; the config has no switch for it. `quality lint` runs only the fast rules, and every rule when the environment sets `CI` (GitHub Actions sets it), when `CLAUDE_CODE_REMOTE` is `true` in a Claude Code cloud session, or when you pass `--full`; `--fast` forces the fast set even in CI. A fast run ends with a line naming each deep rule it skipped and how to run them, and sets their baseline entries and exceptions aside: they are neither stale nor loose, and the fast run never judges them. A rule can also split its work: its definition's `deepHalf` names a second check that runs only where deep rules run, and reports under the same rule id. A fast run names each deep half it skipped in the same line. The baseline entry of such a rule records in `deep` how many of its `count` findings the deep half reports, and a fast run judges the rest exactly: fewer findings make the entry loose, which the commit check refuses until `quality baseline tighten --staged` lowers it, and more fail the lint. An entry without `deep`, as an earlier Quality wrote it, is only an upper bound on a fast run, and a full run notes once to run `quality baseline prune`, which records the split for every entry whose file has no more findings than its count and raises none; `tighten` records it only for changed files. `tighten` and `prune` also name each file whose deep half now reports more than its entry allows, which CI then reports. Fixed deep-half debt is locked in only when someone tightens, and added deep-half debt fails only where deep rules run, as for deep rules. A full run ends with a line naming the deep rules and halves it ran. `baseline write`, `tighten`, `prune` and `fix` always run every rule and refuse `--fast`. The built-in deep rule is `effect/service-parameters`; `effect/boundary` and `suppressions/no-double-cast` run their syntax checks on every lint and their typed checks as deep halves, and `biome` runs the rules that need Biome's project scanner, those of its `project` and `types` domains such as `noFloatingPromises` and `noUndeclaredDependencies`, as its scanner half. A fast run's Biome turns those rules off, so it skips the scanner and its memory, and sets aside the exceptions that name them.
|
|
30
|
+
|
|
29
31
|
The work has three parts: connect the repository to the shared tools once; describe an import boundary when its architecture needs one; run the gate and repair findings every day. Writing local rules is not an adoption requirement.
|
|
30
32
|
|
|
31
33
|
### Rule lifecycle
|
|
@@ -64,7 +66,7 @@ ruleStory.it(
|
|
|
64
66
|
);
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
Seed a `quality.config.ts` that registers the custom rule to test the whole gate. `gate()` runs `quality lint
|
|
69
|
+
Seed a `quality.config.ts` that registers the custom rule to test the whole gate. `gate()` runs `quality lint --full`, deep rules included; `gateOutcome()` reads `passed`, `rejected` or `invalid`, `gateReport()` reads its output, and `gateReports(prefix)` reads the finding sections whose rule starts with that prefix. `writes(...)` changes fixture files and `removes(path)` deletes them. Use the kit’s `qualityInstalled()` trait when a fixture imports Quality or its tooling presets. It links the installed package into that fixture. The kit removes its temporary repository when the scope closes. Config imports are cached within the process, so use `quality` from `@shivaedev/quality/testing/adapters/cli.ts` to spawn a fresh command after changing a config.
|
|
68
70
|
|
|
69
71
|
For an existing kit, compose the lower-level helpers through its local test-support facade: `seedTree` and `removeSeededTrees` from `@shivaedev/quality/testing/adapters/tree.ts` manage fixture files; `scanned` and `findingsIn` from `@shivaedev/quality/testing/adapters/imports.ts` collect inventory and run a configured rule; `runQuality` from `@shivaedev/quality/testing/adapters/cli.ts` runs commands in process. Yield `runQuality(root, "lint")` as an Effect in the kit so it uses the story's controlled clock. These helpers use the same engine as the rule story kit.
|
|
70
72
|
|
|
@@ -74,7 +76,7 @@ Import `ImportCompiler` from `@shivaedev/quality/adapters/import-compiler/servic
|
|
|
74
76
|
|
|
75
77
|
### Dependency pins and repository hygiene
|
|
76
78
|
|
|
77
|
-
`manifests/no-test-kits` rejects runtime packages that expose a `testing` module or declare `@shivaedev/test`, `@shivaedev/test-story`, `@shivaedev/test-sql`, `@shivaedev/test-kits` or `vitest` in dependencies, optional dependencies or peers. It checks explicit export names and targets, including conditions and fallback arrays, and inventoried testing modules exposed through wildcards. Blocked exports and development dependencies pass. Private applications and the test-tooling packages quality, vitest-rerun, test, test-story, test-sql and test-kits are exempt. Move reusable runtime-package helpers into test-kits and keep test dependencies in development dependencies.
|
|
79
|
+
`manifests/no-test-kits` rejects runtime packages that expose a `testing` module or declare `@shivaedev/test`, `@shivaedev/test-story`, `@shivaedev/test-sql`, `@shivaedev/test-kits` or `vitest` in dependencies, optional dependencies or peers. It checks explicit export names and targets, including conditions and fallback arrays, and inventoried testing modules exposed through wildcards. Blocked exports and development dependencies pass. Private applications and the test-tooling packages build, quality, vitest-rerun, test, test-story, test-sql and test-kits are exempt. Move reusable runtime-package helpers into test-kits and keep test dependencies in development dependencies.
|
|
78
80
|
|
|
79
81
|
`manifests/dependency-pins` checks dependencies, development dependencies, optional dependencies and peers in every inventoried package manifest. External dependencies use exact versions, including npm aliases. Workspace dependencies use `workspace:`. Replace `file:` and `link:` dependencies with npm versions or workspace/catalog references in both published and private packages. Quality finds the nearest `pnpm-workspace.yaml` at or above its config folder. When that workspace declares a default or named catalog, external dependencies use `catalog:` or `catalog:<name>`, and the referenced catalog must contain that dependency. Catalog entries themselves use exact versions. Write catalogs as indented block mappings; inline mappings and YAML aliases receive findings instead of escaping the check.
|
|
80
82
|
|
|
@@ -128,13 +130,17 @@ The declaration describes code, not imports: an Effect module importing a non-Ef
|
|
|
128
130
|
|
|
129
131
|
It also reports synchronous calls imported from `node:fs` and `node:child_process` (including aliases, namespace imports and string member keys), parameters typed as Promise or callbacks returning Promise, and each call to a helper whose body throws, unless the helper is defined in an `adapters/` folder. Calls to adapters that bridge throwing third-party control flow, such as a router’s `redirect` or `notFound`, need no call-site exception. A guard called 31 times contributes 31 call findings, in addition to its throw statement. `Effect.sync` reports a throwing body: explicit throws, throwing helpers, synchronous Node IO, `JSON.parse`, URI encoding/decoding, `BigInt` and synchronous Schema decoders/encoders. Use `FileSystem` and `ChildProcessSpawner` for IO, and `Effect.try` with a tagged error for fallible synchronous work.
|
|
130
132
|
|
|
133
|
+
It also reports an `Effect.promise` or `Effect.tryPromise` call whose callback calls a binding imported from an outside library, meaning any import other than `effect`, `@effect/*`, `@shivaedev/*`, a workspace package, a relative path, a `#` alias or a Node builtin. Move that bridge into a module under `adapters/` that returns an Effect. The check reads the file's imports, not library types: bridges to workspace code and dynamic `import()` are accepted, and a Promise reached through a library value the code received, such as a client's method, is not seen.
|
|
134
|
+
|
|
131
135
|
`Effect.run*` references in core are reported even without Clock, Config or Random. Yield the computation so it uses the caller's runtime. Runners are accepted in `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, tool configs and tests, modules that call `runMain`, and modules with the `fileURLToPath(import.meta.url) === process.argv[1]` entry guard. Browser bootstraps use the `main` or `entry` filename convention; the starter uses `examples/starter/src/client/main.tsx`. These entry-point conventions accept runners only; the other boundary checks still apply.
|
|
132
136
|
|
|
133
|
-
Within Effect code, folders named `adapters/` or `test-support/`, at any depth, are exempt from this boundary rule, and so is a tool config directly in a package's folder (`*.config.ts` beside its `package.json`, such as `vitest.config.ts`), because the tool loads it from that fixed path. A config deeper in the package, such as `src/domEnvironment.config.ts`, is checked. An `adapters/` folder
|
|
137
|
+
Within Effect code, folders named `adapters/` or `test-support/`, at any depth, are exempt from this boundary rule, and so is a tool config directly in a package's folder (`*.config.ts` beside its `package.json`, such as `vitest.config.ts`), because the tool loads it from that fixed path. A config deeper in the package, such as `src/domEnvironment.config.ts`, is checked. An `adapters/` folder is the one place where code may use what Quality forbids elsewhere, because a library requires it; keep it small and hand the rest of the application Effect values. The name is fixed by convention, with no config or copied Biome plugin globs. Adapter code still follows `effect/service-parameters` and the ambient time, randomness, console and environment bans.
|
|
134
138
|
|
|
135
139
|
The `ambient-runtime` Biome plugin also reports `Effect.run*` calls whose computation contains `Clock`, `Config` or `Random`, `currentTimeMillisUnsafe`, crypto UUIDs and bytes, `performance.now`, process arguments, working directory and exit state, `globalThis.process.env`, timeouts and microtasks. Yield service computations in the caller's Effect so its environment controls them. These additional checks apply to core TypeScript code. They accept `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, modules that call `runMain`, use `NodeRuntime.runMain` or guard execution with `fileURLToPath(import.meta.url) === process.argv[1]`, tool configs, tests, `adapters/` and `test-support/`. The existing `Date.now()`, `new Date()`, `Math.random()`, console and direct `process.env` bans still apply there.
|
|
136
140
|
|
|
137
|
-
`effect/service-parameters` reports parameters carrying a service in exported and local functions and public methods, including returned factories and function-typed parameters returning services. It follows service classes and tags, non-empty Contexts and service implementation shapes through aliases, interfaces, generic constraints, inferred parameters and destructuring. Read services from Effect's environment instead. An Effect or Stream requiring a service is a computation and is accepted. Methods implementing a service and functions constructing Layers may take services as parameters. Within Effect code, `test-support/` folders are exempt from this rule; `adapters/` folders are checked. Module-level PascalCase functions returning React nodes or elements are components: their props and callback prop signatures may carry services. A plain function, one that is neither an `Effect.fn` or `Effect.gen` body nor nested in one, may take an `AtomRegistry` or `AtomRpcClient` because it has no Effect environment to yield the handle from, even when it builds Effects for later; an `Effect.fn` taking the same handle still fails, and so does a parameter that carries another service beside it. A tag that a function never yields, calls or provides and only hands to a `.middleware(tag)` declaration or `Context.pick`, directly or through a local helper that does the same, is a declaration and is accepted. Callbacks whose arguments are supplied by their owner keep those arguments, including object methods contextually typed by a foreign signature, inline host plugin methods and methods implementing a foreign interface; wrapping and returning a callback as a runtime operation still checks it. Test-kit registrations do not turn plain kit state into runtime service plumbing. Type predicates inspect service values without declaring a runtime dependency. Operation parameters supplied exclusively by the service's `methods: (state)` argument, directly or through other such parameters and internal helpers, carry owned initializer state, including members of the Layer’s own Scope and parameters in helpers wrapped with `Effect.fn`. A hand-built state object or an independent Scope parameter still counts as service plumbing. Owned fibers, closeable scopes and native atom evaluation contexts follow Effect's lifecycle conventions; wrapping a function with `Effect.fn` still checks its parameters.
|
|
141
|
+
`effect/service-parameters` reports parameters carrying a service in exported and local functions and public methods, including returned factories and function-typed parameters returning services. It follows service classes and tags, non-empty Contexts and service implementation shapes through aliases, interfaces, generic constraints, inferred parameters and destructuring. Read services from Effect's environment instead. An Effect or Stream requiring a service is a computation and is accepted. Methods implementing a service and functions constructing Layers may take services as parameters. Within Effect code, `test-support/` folders are exempt from this rule; `adapters/` folders are checked. Module-level PascalCase functions returning React nodes or elements are components: their props and callback prop signatures may carry services. A plain function, one that is neither an `Effect.fn` or `Effect.gen` body nor nested in one, may take an `AtomRegistry` or `AtomRpcClient` because it has no Effect environment to yield the handle from, even when it builds Effects for later; an `Effect.fn` taking the same handle still fails, and so does a parameter that carries another service beside it. A tag that a function never yields, calls or provides and only hands to a `.middleware(tag)` declaration or `Context.pick`, directly or through a local helper that does the same, is a declaration and is accepted. Callbacks whose arguments are supplied by their owner keep those arguments, including object methods contextually typed by a foreign signature, inline host plugin methods and methods implementing a foreign interface; wrapping and returning a callback as a runtime operation still checks it. Test-kit registrations do not turn plain kit state into runtime service plumbing. Type predicates inspect service values without declaring a runtime dependency. Operation parameters supplied exclusively by the service's `methods: (state)` argument, directly or through other such parameters and internal helpers, carry owned initializer state, including members of the Layer’s own Scope and parameters in helpers wrapped with `Effect.fn`. A hand-built state object or an independent Scope parameter still counts as service plumbing. Owned fibers, closeable scopes and native atom evaluation contexts follow Effect's lifecycle conventions; wrapping a function with `Effect.fn` still checks its parameters. A function may pass a foreign resource to another when the calls supply values constructed through an outside library or received by its host callbacks, including local construction helpers and an Effect acquisition wrapper; reading that resource from the environment still counts as service plumbing. Installed implementation shapes are discovered in the consuming repository's package scopes, alongside the framework service package's scope.
|
|
142
|
+
|
|
143
|
+
A local lint runs the part of `effect/boundary` that reads each module alone: the constructs above, synchronous Node IO, runners, Promise bridges, and calls to throwing helpers defined in the same module. Calls to throwing helpers imported from other modules, `Effect.sync` bodies that reach one, and Promise-typed parameters need the type checker and run in its deep half, in CI and with `quality lint --full`.
|
|
138
144
|
|
|
139
145
|
Both rules refuse config exceptions and inline suppressions. Record existing debt with `quality baseline write --rule effect/boundary` and `quality baseline write --rule effect/service-parameters`; the normal report and baseline burn-down apply.
|
|
140
146
|
|
|
@@ -152,25 +158,25 @@ Import and local aliases, string literals and templates without substitutions ar
|
|
|
152
158
|
|
|
153
159
|
`effect/service-folders` applies wherever a file declares `defineService`, as well as to conventional `services/<name>` folders. Each service has its own folder. Its declaration belongs in `service.ts` with one named service export, beside its operation files. A second declaration beside an existing `service.ts` belongs in a separate service folder.
|
|
154
160
|
|
|
155
|
-
`effect/context-capture` rejects `Effect.provideContext`, `runPromiseWith` and `runForkWith` calls in core code, including imported aliases and destructured runners. It also checks the native Context overload of `Effect.provide`; Layer provision stays available. Composition roots and full-application test harnesses may merge inherited services with contexts built from Layers and acquire those Layers under an explicit restart scope with Scope.provide, or capture an environment inside an application whose requirements are fully provided by Layers. This follows the construction rather than the filename or folder; an ambient context in an ordinary service remains a finding. Yield the environment instead of capturing and re-providing it; runtime bridges belong in `adapters/` or `test-support/`. These service rules permit no config exceptions or inline suppressions. To adopt the policy in an existing repository, review retained findings and record them with `quality baseline write --rule effect/service-model --rule effect/service-folders --rule effect/context-capture`.
|
|
161
|
+
`effect/context-capture` rejects `Effect.provideContext`, `runPromiseWith` and `runForkWith` calls in core code, including imported aliases and destructured runners. It also checks the native Context overload of `Effect.provide`; Layer provision stays available. Composition roots and full-application test harnesses may merge inherited services with contexts built from Layers and acquire those Layers under an explicit restart scope with Scope.provide, or capture an environment inside an application whose requirements are fully provided by Layers. This follows the construction rather than the filename or folder; an ambient context in an ordinary service remains a finding. Only files with a call that could re-provide a context enter its type-checked program: `provideContext`, `runPromiseWith` or `runForkWith`, by name or through an import alias, a destructured name or a local alias, or a `provide` whose last argument is neither a `Layer.…` expression nor a name ending in `Layer` or `Live` or named `layer`. A runner re-exported under another name through a local module is not seen. Yield the environment instead of capturing and re-providing it; runtime bridges belong in `adapters/` or `test-support/`. These service rules permit no config exceptions or inline suppressions. To adopt the policy in an existing repository, review retained findings and record them with `quality baseline write --rule effect/service-model --rule effect/service-folders --rule effect/context-capture`.
|
|
156
162
|
|
|
157
163
|
The rule reports hidden configurations and method records, configuration and operation spreads, computed members, local implementations and inline bodies, including in adapters and tests. It takes no config exceptions or inline suppressions. See the [service guide](https://github.com/ShivaeDev/platform/tree/main/packages/service#1-assemble-the-service-from-focused-files) for the shape.
|
|
158
164
|
|
|
159
|
-
###
|
|
165
|
+
### Node builtin imports
|
|
160
166
|
|
|
161
|
-
`effect/adapter-imports` reports value imports of
|
|
167
|
+
`effect/adapter-imports` reports value imports of Node builtins outside `adapters/` and `test-support/`, at the import site. It includes side-effect imports, value re-exports, literal dynamic imports and `require` calls, with or without the `node:` prefix. Type-only imports and re-exports are accepted, including inline `type` specifiers when every binding is a type. `node:path`, `node:path/posix` and `node:path/win32` are accepted everywhere, shipped code included: their functions only compute strings. Tool configs directly in a package's folder (such as `vitest.config.ts`, which the tool loads from that fixed path) are accepted. Entry modules (`cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, modules that call `runMain` and modules with the `fileURLToPath(import.meta.url) === process.argv[1]` guard) may import `node:process` to read arguments and the working directory; their other builtins, and `node:process` in any other module, test or config, are still reported.
|
|
162
168
|
|
|
163
|
-
|
|
169
|
+
Use Effect's `FileSystem`, `ChildProcessSpawner`, `Config` and other platform services instead. When a library requires a builtin, bridge it in an `adapters/` module that exposes Effect values. Using or exposing a library's types and calling a library function that returns a plain value need no adapter, in core and client code alike. A library call that returns a Promise, can throw or reaches the host goes through a module in `adapters/` that returns an Effect. `effect/boundary` reports the Promise bridges it can see from imports; no rule sees a library function that throws, so review carries that case. Recharts is the stack's charting library; build charts with shadcn's Chart component (`ChartContainer` and friends) rather than raw recharts primitives where shadcn covers the case.
|
|
164
170
|
|
|
165
|
-
The rule refuses config exceptions and inline suppressions. For existing debt, run `quality baseline write --rule effect/adapter-imports`; baseline shards keep one entry per file with its finding count. Run `quality baseline tighten` after
|
|
171
|
+
The rule refuses config exceptions and inline suppressions. For existing debt, run `quality baseline write --rule effect/adapter-imports`; baseline shards keep one entry per file with its finding count. Run `quality baseline tighten` after replacing builtins.
|
|
166
172
|
|
|
167
173
|
### Shared error classes
|
|
168
174
|
|
|
169
|
-
`effect/shared-error-classes` reports a tagged error class that reuses a tag exported by `@shivaedev/errors`. Import the shared class from the module named in the finding instead. The rule reads exported
|
|
175
|
+
`effect/shared-error-classes` reports a tagged error class that reuses a tag exported by `@shivaedev/errors`. Import the shared class from the module named in the finding instead. The rule reads syntax and builds no TypeScript program. It parses the errors package's exported modules, preferring the published source beside a declaration file, and compares literal tags rather than class names. A tagged error is a class built by a `TaggedError` or `TaggedErrorClass` constructor with a literal tag, such as `Data.TaggedError("NotFound")` or `Schema.TaggedError<NotFound>()("NotFound", …)`, a class with a `readonly _tag` string literal that extends another, or a subclass of a shared class imported from the errors package or of a tagged class in the same file. A tag passed as a constant or through an aliased constructor is not seen. It uses the repository's installed errors package, or Quality's dependency when the repository does not yet depend on errors. It checks adapters and tests too. Shared declarations and imports, distinct tags and non-error classes are accepted.
|
|
170
176
|
|
|
171
177
|
### RPC handler boundaries
|
|
172
178
|
|
|
173
|
-
`effect/rpc-boundary` reports calls to `rpcBoundary` or `rpcBoundaryHandlers` outside modules that build native RPC handlers with a group's `toLayer`, `toLayerHandler`, `toHandlers` or `of`. Move the boundary to the handler module so services preserve their typed failures.
|
|
179
|
+
`effect/rpc-boundary` reports calls to `rpcBoundary` or `rpcBoundaryHandlers`, imported by name or as a namespace from `@shivaedev/errors/boundary.ts` or `@shivaedev/errors/rpcBoundaryHandlers.ts`, outside modules that build native RPC handlers with a group's `toLayer`, `toLayerHandler`, `toHandlers` or `of`. Move the boundary to the handler module so services preserve their typed failures. The rule reads syntax and builds no TypeScript program. A builder call counts unless its receiver is visibly not a group: an `effect` import other than RPC, or a local value built from neither an import nor a group. A service tag's `of` shares the name, so `of` counts only on a group built in the module or on a member chain such as `Notes.application.of`. A boundary re-exported through a local module or assigned to a local alias is not seen; unrelated functions and methods with the same names are accepted. Test-support kits are accepted. The rule refuses config exceptions and inline suppressions.
|
|
174
180
|
|
|
175
181
|
### Failure honesty
|
|
176
182
|
|
|
@@ -214,7 +220,7 @@ For pnpm applications, `quality ci` checks peer dependencies, then runs the app
|
|
|
214
220
|
|
|
215
221
|
Run `quality ci --coverage` to collect V8 coverage during that single test run. It writes `coverage/lcov.info` and `coverage/junit.xml`, including when tests fail, through Vitest's `reportOnFailure`. Add `coverage/` to `.gitignore`. Quality provides the V8 provider; the application needs no coverage dependency or separate coverage configuration. Without the flag, the gate uses the test script unchanged.
|
|
216
222
|
|
|
217
|
-
The optional pre-commit hook runs Quality's lint, then the `typecheck` script when it exists, then an optional `quality:commit` script for repository checks. It uses the manifest's `packageManager` (`npm`, `pnpm`, `yarn` or `bun`), defaulting to `npm` when omitted. Add `quality:commit` only when the repository has extra commit checks.
|
|
223
|
+
The optional pre-commit hook runs Quality's lint, then the `typecheck` script when it exists, then an optional `quality:commit` script for repository checks. It uses the manifest's `packageManager` (`npm`, `pnpm`, `yarn` or `bun`), defaulting to `npm` when omitted. Add `quality:commit` only when the repository has extra commit checks. A repository whose CI runs the full gate on every change can set `preCommit: "staged"` in its config: the hook then runs only Biome's lint and format checks on the staged content of the staged files, and skips the full lint, which waits for the heavy-process lock, and both scripts. Unstaged changes and untracked files do not block such a commit, and a file edited again after staging is checked as staged. In a Claude Code cloud session, where `CLAUDE_CODE_REMOTE` is `true`, the hook still runs the full checks. The hook's lint chooses its rule set as `quality lint` does: a local commit runs the fast rules, and a cloud session or a `CI` environment runs every rule.
|
|
218
224
|
|
|
219
225
|
Inspect the report and install the optional commit check explicitly:
|
|
220
226
|
|
|
@@ -241,7 +247,7 @@ import { defineConfig } from "@shivaedev/quality/config.ts";
|
|
|
241
247
|
export default defineConfig({ sources: ["src"] });
|
|
242
248
|
```
|
|
243
249
|
|
|
244
|
-
When a config exists, its folder is the root for paths and hook scripts. Without one, the current directory is the root. `sources` chooses the files the source rules read; a missing source stops the run. Directory discovery skips untracked files ignored by git through `.gitignore`, `info/exclude` or `core.excludesFile`, and the `.git`, `.worktrees` and `node_modules` directories. Tracked files remain checked even when an ignore pattern matches them; a folder named `generated/` does not exempt authored code. Some repository rules, such as manifest sorting, inspect the whole repository even when `sources` names only `src`.
|
|
250
|
+
When a config exists, its folder is the root for paths and hook scripts. Without one, the current directory is the root. `sources` chooses the files the source rules read; a missing source stops the run. Directory discovery skips untracked files ignored by git through `.gitignore`, `info/exclude` or `core.excludesFile`, and the `.git`, `.worktrees` and `node_modules` directories. Tracked files remain checked even when an ignore pattern matches them; a folder named `generated/` does not exempt authored code. Generated output that git ignores is never reported, but Quality follows its imports: a module the sources import that git ignores joins the import graph, so `imports/runtime` and transitive fences see what it reaches and report the checked file that imports it, and `code/unused` counts its imports as uses. Some repository rules, such as manifest sorting, inspect the whole repository even when `sources` names only `src`.
|
|
245
251
|
|
|
246
252
|
Quality reads the skills tool’s `.shivaedev-skills.json` ownership manifest in each repository’s `.agents/skills` folder. It skips the recorded folders, their `.claude/skills` links and the manifest itself in source checks, Biome lint and formatting, manifest sorting and fixes, including rule-specific fixes. Local skills beside those copies remain checked. Change a shared skill at its source and run `shivaedev-skills sync` to refresh the copies.
|
|
247
253
|
|
|
@@ -324,16 +330,23 @@ The import rules resolve every literal specifier with the nearest `tsconfig.json
|
|
|
324
330
|
|
|
325
331
|
Vite asset queries resolve the path before the query, including package assets through their declared exports. Supported suffixes match `vite/client`: `?url`, `?raw`, `?worker`, `?worker&inline`, `?worker&url`, `?sharedworker`, `?sharedworker&inline`, `?sharedworker&url`, `?inline`, `?no-inline`, `?url&inline`, `?url&no-inline` and `.wasm?init`. For example, `import url from 'zxing-wasm/reader/zxing_reader.wasm?url'` resolves the exported wasm file without an application module declaration. Missing files, private package paths and unsupported query suffixes still produce findings.
|
|
326
332
|
|
|
327
|
-
A relative or `#` import of a file that a generator writes before the tests run resolves only inside a folder that `imports/resolvable` lists as `generated`; the folder, or every file an import names in it, must be ignored by git:
|
|
333
|
+
A relative or `#` import of a file that a generator writes before the tests run resolves only inside a folder that `imports/resolvable` lists as `generated`; the folder, or every file an import names in it, must be ignored by git. The folder may keep a tracked `README.md`, `.gitkeep` or `.keep`, such as a README that names the command which writes the output, re-included with `!`; any other tracked file makes it source, not generated output. Imports into it resolve whether the output is present or not yet written:
|
|
328
334
|
|
|
329
335
|
```ts
|
|
330
336
|
import { defineConfig } from "@shivaedev/quality/config.ts";
|
|
331
337
|
|
|
332
338
|
export default defineConfig({
|
|
333
|
-
rules: { "imports/resolvable": { options: { generated: ["
|
|
339
|
+
rules: { "imports/resolvable": { options: { generated: ["src/generated"] } } },
|
|
334
340
|
});
|
|
335
341
|
```
|
|
336
342
|
|
|
343
|
+
The repository's `.gitignore` ignores the output and keeps the README:
|
|
344
|
+
|
|
345
|
+
```gitignore
|
|
346
|
+
src/generated/*
|
|
347
|
+
!src/generated/README.md
|
|
348
|
+
```
|
|
349
|
+
|
|
337
350
|
### Story tests
|
|
338
351
|
|
|
339
352
|
`tests/adapter-only-fakes` reports `vi.mock` and `vi.doMock` of repository modules outside `adapters/`, and replacement implementations on spies of owned exports. It resolves module paths with the repository's TypeScript projects, including aliases. Adapter modules, outside libraries, platform globals, observing spies and quoted fixture source pass. For Layers and `Effect.provideService`, it reports locally constructed replacements of imported owned `defineService` services. Its static analysis does not identify bare Context service keys, factory-produced implementations or service instances passed through parameters and object properties. Review those supplies as well: fake repository code only under `adapters/`, and delete a test whose failure can only be shown by faking internals.
|
|
@@ -432,7 +445,7 @@ Register the driver in `.gitattributes`:
|
|
|
432
445
|
|
|
433
446
|
Run `quality baseline install-driver` from your checkout's setup script. It sets only repository-local `merge.quality-baseline.driver`; it leaves other Git settings alone. Each checkout needs the setting because Git does not copy local configuration when cloning.
|
|
434
447
|
|
|
435
|
-
Git calls `quality baseline merge <ancestor> <current> <other>`. Entries are keyed by path and rule. Removing an ancestor entry on either side removes it from the result; retained counts take the minimum of the two sides, and entries newly added on either side survive. The command writes the result to `<current>`, so parallel reductions of neighbouring entries merge without a text conflict.
|
|
448
|
+
Git calls `quality baseline merge <ancestor> <current> <other>`. Entries are keyed by path and rule. Removing an ancestor entry on either side removes it from the result; retained counts take the minimum of the two sides, and entries newly added on either side survive. When both sides record a split rule's `deep` share, the fast share (`count` less `deep`) and the deep share each take their minimum and `count` is their sum; when either side lacks it, the counts merge as before and the result has no `deep`. The command writes the result to `<current>`, so parallel reductions of neighbouring entries merge without a text conflict.
|
|
436
449
|
|
|
437
450
|
### Unused code
|
|
438
451
|
|
|
@@ -458,16 +471,15 @@ For adoption, run `quality baseline write --rule code/unused` and review the rec
|
|
|
458
471
|
- **Structure:** `structure/max-lines` allows 150 lines in a source file and 300 in test code, `nesting/max-depth` rejects lines indented eight tabs deep, and `structure/no-barrel` rejects `index` modules, exported value aliases (including `typeof` annotations and local const chains), facades of imports and functions that only forward their parameters unchanged to an import. Wrappers that supply explicit type arguments, such as `() => createColumnHelper<Feature>()`, and overloaded adapters keep their own meaning. The preset rejects bare type aliases of named or default imports as well as explicit type re-exports; each repair names the defining module. When `noExportedImports` suggests `export … from`, import the name where it is used instead. A module does one job.
|
|
459
472
|
- **Comments:** the `comments/*` rules reject JSDoc, TODOs, banners, line and pull request references, environment pragmas and more than two comments per file. A comment says why, never what the code already says or what it used to be. A tool pragma such as `@jsxImportSource` counts as a comment until both `comments/no-jsdoc` and `comments/max-per-file` list its tag in their `allow` option.
|
|
460
473
|
- **Documentation:** `docs/references` checks every Markdown file in the sources except `CHANGELOG.md`, whose released history keeps the links of its release. Relative links, reference definitions and `href`/`src` attributes reach an existing file or folder inside the repository, and a heading anchor matches one GitHub forms from the target's headings. A link to the repository's own GitHub tree, named by the root `package.json` `repository` field, is checked like a relative one unless it is pinned to a commit or a release tag. A published workspace package's README is shown on npm without the repository around it, so its links that leave the package use absolute URLs. Imports in TypeScript and JavaScript code blocks, workspace module paths such as `@scope/lib/repository.ts` written as inline code, `` `name` from `module` `` phrases and a package README's API rows resolve through the owning package's `exports` to an exported module, and every named import exists in that module unless it re-exports another. A linked document such as `CLAUDE.md` beside `AGENTS.md` is checked once, through its target. `docs/unversioned-installs` rejects a version after a package name in install commands, in shell code blocks and inline code; the package's own version ranges decide what installs, and a written version goes stale with the next release. A dist-tag such as `latest` passes.
|
|
461
|
-
- **Hidden casts:** `suppressions/no-double-cast` also checks code outside `adapters/` and `test-support/` for concrete annotations on `JSON.parse` results, unchecked `Reflect.get` bindings, SQL tagged-template row generics, identity overloads whose implementation returns `unknown`, context retagging through `Context.makeUnsafe(...mapUnsafe)`, and writes to readonly properties or native Scope state. Keep untrusted values as `unknown` and decode them with `Schema.decodeUnknownEffect`; decode SQL rows with `SqlSchema` rather than declaring their shape. Give an identity implementation its declared return type, preserve the Context service type, and use native constructors or lifecycle operations instead of changing native fields. Constructor initialization, mutable object writes and extensions that do not replace readonly fields are accepted, and so are writes on a freshly built object: `Object.assign(new X(...), ...)`, and `Object.assign` or `Object.defineProperty` on a local `const` initialised with `new X(...)` in the same function that nothing has used before the write. An object the caller supplied, or one a conditional might have come from the caller, is still reported.
|
|
462
|
-
- **Suppressions:** the `suppressions/*` rules reject inline lint and compiler directives, casts through `unknown`, `any` or `never`, Biome settings that weaken a check
|
|
474
|
+
- **Hidden casts:** `suppressions/no-double-cast` also checks code outside `adapters/` and `test-support/` for concrete annotations on `JSON.parse` results, unchecked `Reflect.get` bindings, SQL tagged-template row generics, identity overloads whose implementation returns `unknown`, context retagging through `Context.makeUnsafe(...mapUnsafe)`, and writes to readonly properties or native Scope state. Keep untrusted values as `unknown` and decode them with `Schema.decodeUnknownEffect`; decode SQL rows with `SqlSchema` rather than declaring their shape. Give an identity implementation its declared return type, preserve the Context service type, and use native constructors or lifecycle operations instead of changing native fields. Constructor initialization, mutable object writes and extensions that do not replace readonly fields are accepted, and so are writes on a freshly built object: `Object.assign(new X(...), ...)`, and `Object.assign` or `Object.defineProperty` on a local `const` initialised with `new X(...)` in the same function that nothing has used before the write. An object the caller supplied, or one a conditional might have come from the caller, is still reported. Double casts and the hidden casts visible in syntax run on every lint; readonly writes and SQL row generics on a tag other than `sql` need TypeScript declarations and run in the rule's deep half, in CI and with `quality lint --full`. These checks do not prove that arbitrary helper functions validate their input.
|
|
475
|
+
- **Suppressions:** the `suppressions/*` rules reject inline lint and compiler directives, casts through `unknown`, `any` or `never`, Biome settings that weaken a check and `ignoreDeprecations`. None of them takes exceptions. A type test (`*.typecheck.test.ts`) may use `@ts-expect-error`; a test that must pass a rejected value at run time calls the API through `Reflect.apply`.
|
|
463
476
|
- **Imports:** cycles, unresolvable imports, workspace imports missing from the manifest or an entry point, relative imports of own modules (including same-folder files and registration subtrees; use the package’s `#` aliases, except between tool configs directly in a package's folder, such as `vitest.coverage.config.ts` importing `./vitest.config.ts`, which no alias reaches), production imports of test code, runtime folders and fences, as described above.
|
|
464
|
-
- **Names and files:** `files/folder-names` accepts an unscoped package name matching any trailing run of its folder path joined with hyphens, with singular or plural segments. For example, `packages/server/domains/agents` accepts `domain-agents` or `agents`, and `apps/testing` accepts `app-testing`; unrelated or stale package names still fail. The Biome preset's naming rules and plugins, together with the remaining `files/*` rules, name a file after its main export with its folders as the prefix. Root authority documents such as `DESIGN.md`, `ARCHITECTURE.md` and `GLOSSARY.md` are accepted beside `AGENTS.md`. `files/named-after-export` accepts programmatic bundler entries, including main and preload adapters, and tool-discovered config names such as `.dependency-cruiser.ts`. Tool config recognition follows the shared Biome default-export policy, so these configs may also use their required default export. The Quality gate also accepts Vitest configs and reporters named by explicit `--config` or `--reporter` paths in package scripts, and
|
|
477
|
+
- **Names and files:** `files/folder-names` accepts an unscoped package name matching any trailing run of its folder path joined with hyphens, with singular or plural segments. For example, `packages/server/domains/agents` accepts `domain-agents` or `agents`, and `apps/testing` accepts `app-testing`; unrelated or stale package names still fail. The Biome preset's naming rules and plugins, together with the remaining `files/*` rules, name a file after its main export with its folders as the prefix. Root authority documents such as `DESIGN.md`, `ARCHITECTURE.md` and `GLOSSARY.md` are accepted beside `AGENTS.md`. `files/named-after-export` accepts programmatic bundler entries, including main and preload adapters, and tool-discovered config names such as `.dependency-cruiser.ts`. Tool config recognition follows the shared Biome default-export policy, so these configs may also use their required default export. The Quality gate also accepts Vitest configs and reporters named by explicit `--config` or `--reporter` paths in package scripts, and plugins whose default export implements an imported foreign Plugin type. Ordinary modules retain their naming and default-export checks. `files/named-after-export` names a constants module in camelCase for what its exported data shares: `maxItems.ts` exports `MAX_ITEMS`, `timeouts.ts` holds `INSPECT_TIMEOUT_MILLIS` and `REMOTE_TIMEOUT_MILLIS`, `limits.ts` holds constants carrying max, min or limit, and `defaults.ts` holds constants carrying default. Each constant must carry every word of the module name, singular or plural; split unrelated constants or put heterogeneous copy in a single exported record named after itself. Only literal data, arrays and objects of it, and CONSTANT_CASE references count, with types derived from those constants allowed. Schemas, Layers, services, Effects, functions, classes and computed values stay runtime exports. One remaining runtime export names the file even beside constants; two or more use a camelCase topic file. Private constants do not name a file. The same model applies in `src/test-support`. It keeps the export’s full name while the file name omits words already supplied by any folder above it. In `spaces/client/`, a component exporting `CreateSpace` lives in `Create.tsx`: `spaces/` supplies “Space” even across the intervening `client/` folder. Keep the export named `CreateSpace`; `CreateSpace.tsx` would repeat a folder name. Inside a module’s `client/admin/` or `server/admin/` subtree, file names may repeat words from above `admin/`: `src/modules/inbox/client/admin/inboxRoutes.ts` may export `inboxRoutes`. Names must still match their exports and omit words repeated by folders within the admin subtree. No naming rule renames anything; the author picks the name. A name an outside system owns, such as a query parameter or an environment variable, is written as a quoted key, which the naming rules skip. A `Schema.Struct` field stays camelCase even when quoted and maps to the outside name with `Schema.encodeKeys`. Biome's naming messages print only a pattern: spell acronyms as words (`HttpClient`, `userId`, `parseUrl`) rather than turning off `strictCase` as its hint suggests, give a type no `I` prefix, and name a type parameter `T`, `T` plus a PascalCase name (`TItem`), or Effect's `A`, `E` and `R`. No rule checks these, so review does: a boolean reads as a question (`isOpen`, `canRetry`) unless the DOM or React names it (`open`, `disabled`); a schema shares its name with its type (`type Item = typeof Item.Type`); an unused parameter is removed rather than renamed with the `_` prefix TypeScript accepts. The naming rules take repository facts: `options.toolOwned` lists `.gitignore` patterns whose names a tool fixes, and a configured list extends the rule's defaults, so list only repository-specific additions; `content` lists snake_case content folders and files; `tests/follow` and `tests/colocated` take `suites` for test folders with their own layout, such as a Playwright suite.
|
|
465
478
|
- **Change keys:** `boundaries/imported-change-keys` reports literal collection and bucket names in Reactivity invalidations and mutations, SQL `invalidateOnCommit`, and the `changes` key encoders. Import the owning declaration and use its name, list, item or bucket key. Literal record IDs and bucket values are accepted, as are names at their collection declaration.
|
|
466
|
-
- **SQL transactions:** `effect/sql-transact` reports native `sql.withTransaction` calls around repository writes, `transact` or `invalidateOnCommit`. Begin the outer transaction with `transact(effect, { onSqlError })` so changed keys follow its commit. The rule resolves native SQL and repository declarations and follows direct calls, pipes, local aliases and source helpers. Native read-only and raw SQL transactions and unrelated transaction methods remain supported.
|
|
467
479
|
- **React:** `react/jsx-conditionals` reports `&&` and ternaries in the JSX children a component returns, including nested decisions and returned `.map` items. Decisions in a `const` above the return, JSX built inside library callbacks and conditional attributes are accepted. A ternary with two plain string or number literal branches, such as `{on ? "On" : "Off"}`, is accepted; branches that select JSX, components or computed values still need a decision before the JSX. This rule owns the check, so the shared Biome preset leaves `noLeakedRender` off.
|
|
468
480
|
- **Tests:** `tests/follow` and `tests/colocated` keep a test beside the code it covers, named `<file>[.<modifier>].test.ts` or `<behaviour>[.<modifier>].spec.ts` with at most one modifier of `dom`, `slow`, `typecheck` and `unit`; a unit test runs without the DOM, so `.unit.dom` is rejected. A package-owned `test/` tree beside its `src/` is an accepted suite: `.test` files follow the corresponding `src/` path, and `.spec` files name behaviours there. This works for workspace members and standalone packages. Outside those trees, `tests/colocated` always treats `__tests__/` as a test folder. It treats `test/`, `tests/` and `spec/` as test folders only when their directly contained checked files are all tests or test support; a product folder with source beside its specs is an ordinary source folder. Declared `suites` keep their own layout. Shared test support belongs in `test-support/`, the sanctioned test-only folder. A test covering a whole module may sit at its root or directly beside its folder. The story rules above keep setup in the kit.
|
|
469
481
|
- **Manifests:** `manifests/valid` decodes every repository `package.json` through one shared Schema before dependent rules run and reports each invalid manifest once with its file path. An unreadable manifest or one removed after discovery becomes a `manifests/valid` finding. Optional lookups still treat `NotFound` as absence. `manifests/sorted` keeps every `package.json` in sort-package-json order, and `manifests/source-first` puts the `@shivaedev/source` or `source` condition first in `exports` and `imports`. `manifests/exports-shape` checks the package root and workspace members. They use one file-preserving TypeScript wildcard: for example, `./*.ts` maps to `./src/*.ts`, `./dist/*.d.ts` and `./dist/*.js` under `@shivaedev/source` (or an application’s own `source`), `types` and `default`. Packages with `"private": true` may instead map the wildcard directly to source (`"./*.ts": "./src/*.ts"`), or use `"./*": "./src/*"` to preserve both `.ts` and `.tsx` extensions; published packages require the full source, types and default conditions. A subtree pattern such as `./server/*.ts` keeps that same subtree in its targets. An optional root entry and exact-path non-code assets such as JSON presets and `./package.json` are allowed. Every module remains importable; `null` export entries fail with a request to remove the block. A package without modules, such as a dependency shell, exports only exact assets and needs no wildcard. Import each module at its path under `src/`; named aliases, flattened paths, per-file module lists and additional wildcards fail. When declared, the standard imports must preserve their roots: `#*.ts` maps directly to `./src/*.ts` or uses `@shivaedev/source` (or an application’s own `source`) `./src/*.ts`, types `./dist/*.d.ts` and default `./dist/*.js`; `#test/*` maps to `./src/test-support/*`, and private packages may also map it into their own `test/`, `tests/` or `test-support/` tree outside `src/` (for example, `"#test/*": "./test/support/*"`). Include subfolders in specifiers, such as `#server/module.ts`. Other aliases are allowed. `manifests/application` keeps an application on its entry points, as described above.
|
|
470
|
-
- **Biome:** the `biome` rule reports Biome's error findings as `biome/<category>`. A Biome run that fails without an error finding, such as one whose config leaves no file to check, fails lint and fix with Biome's message. The preset leaves out the `.worktrees` folder at the root, so a checkout does not lint its linked worktrees, while a worktree inside it lints all of its own files. The preset's plugins ban ambient time, randomness, `console` and `process.env` in favour of Effect's services.
|
|
482
|
+
- **Biome:** the `biome` rule reports Biome's error findings as `biome/<category>`. A Biome run that fails without an error finding, such as one whose config leaves no file to check, fails lint and fix with Biome's message. The preset leaves out the `.worktrees` folder at the root, so a checkout does not lint its linked worktrees, while a worktree inside it lints all of its own files. The preset's plugins ban ambient time, randomness, `console` and `process.env` in favour of Effect's services. The preset runs every rule Biome recommends at `error`, apart from the rules its shipped declarations weaken; Quality's own suite checks that against the installed Biome, so a lint does not.
|
|
471
483
|
|
|
472
484
|
### Decide before JSX
|
|
473
485
|
|
|
@@ -561,18 +573,16 @@ function List({ items }) {
|
|
|
561
573
|
|
|
562
574
|
Import names from their defining module; there is no root entry. The package's `./*.ts` export pattern also exposes the gate's implementation modules; the following table lists the config, tool and extension entry points:
|
|
563
575
|
|
|
564
|
-
| Module | Exports
|
|
565
|
-
| ----------------------------- |
|
|
566
|
-
| `config.ts` | `defineConfig`, `QualityConfig`, `Level` (`"error"`), `RuleSetting`, `RuleSettings`, `BuiltInRules`
|
|
567
|
-
| `rule.ts` | `defineRule`, `Rule`, `RegisteredRule`, `Configured`, `Finding`, `Findings`, `SourceFile`, `RuleInputs`, `RuleContext` |
|
|
568
|
-
| `adapters/standardSchema.ts` | `StandardSchemaV1`, `StandardResult`, `StandardIssue`, `describeIssue`
|
|
569
|
-
| `imports/fence.ts` | `fence`
|
|
570
|
-
| `imports/fences/selectors.ts` | `packages`, `folders`, `files`, `modules`, `scopes`, `anyOf`, `workspace`, `anything`, `external`
|
|
571
|
-
| `imports/fences/model.ts` | `Fence`, `Target`, `Selector`, `Prohibition`, `Examples`, `Chain`, `ExampleStep`, `External`
|
|
572
|
-
| `adapters/testProjects.ts` | `testProjects`, `TestProjectsOptions`
|
|
573
|
-
| `
|
|
574
|
-
| `appTestConfig.ts` | `appTestConfig` |
|
|
575
|
-
| `naming/testName.ts` | `testName`, `isTestCode`, `isTestSupport`, `ENVIRONMENTS`, `Environment`, `TestName` |
|
|
576
|
+
| Module | Exports |
|
|
577
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
578
|
+
| `config.ts` | `defineConfig`, `QualityConfig`, `Level` (`"error"`), `RuleSetting`, `RuleSettings`, `BuiltInRules` |
|
|
579
|
+
| `rule.ts` | `defineRule`, `Rule`, `RegisteredRule`, `Configured`, `Finding`, `Findings`, `SourceFile`, `RuleInputs`, `RuleContext`, `TypeScriptProgram` |
|
|
580
|
+
| `adapters/standardSchema.ts` | `StandardSchemaV1`, `StandardResult`, `StandardIssue`, `describeIssue` |
|
|
581
|
+
| `imports/fence.ts` | `fence` |
|
|
582
|
+
| `imports/fences/selectors.ts` | `packages`, `folders`, `files`, `modules`, `scopes`, `anyOf`, `workspace`, `anything`, `external` |
|
|
583
|
+
| `imports/fences/model.ts` | `Fence`, `Target`, `Selector`, `Prohibition`, `Examples`, `Chain`, `ExampleStep`, `External` |
|
|
584
|
+
| `adapters/testProjects.ts` | `testProjects`, `TestProjectsOptions` |
|
|
585
|
+
| `naming/testName.ts` | `testName`, `isTestCode`, `isTestSupport`, `ENVIRONMENTS`, `Environment`, `TestName` |
|
|
576
586
|
|
|
577
587
|
#### Config
|
|
578
588
|
|
|
@@ -586,6 +596,7 @@ Import names from their defining module; there is no root entry. The package's `
|
|
|
586
596
|
| `registry` | `quality/registry.json` | Legacy input for upgrades; run `quality exceptions migrate`. |
|
|
587
597
|
| `local` | `[]` | Exposed extension API for rules made with `defineRule`; not required for adoption. |
|
|
588
598
|
| `rules` | Every rule at `error` | Options by rule id, such as import boundaries. An explicit `error` or `{ level: "error", options }` is also accepted. |
|
|
599
|
+
| `preCommit` | `"full"` | `"staged"` makes the pre-commit hook check only the staged files with Biome, except in a Claude Code cloud session. |
|
|
589
600
|
|
|
590
601
|
#### Local rules
|
|
591
602
|
|
|
@@ -611,14 +622,29 @@ export const hasChangelog = defineRule({
|
|
|
611
622
|
description: "Keep a changelog.",
|
|
612
623
|
id: "local/has-changelog",
|
|
613
624
|
});
|
|
625
|
+
|
|
626
|
+
export const noAnyExports = defineRule({
|
|
627
|
+
check: ({ sources, typeScript }) =>
|
|
628
|
+
Effect.map(typeScript, ({ checker, sourceFile, ts }) =>
|
|
629
|
+
sources.flatMap((file) => {
|
|
630
|
+
const source = sourceFile(file.path);
|
|
631
|
+
const module = source === undefined ? undefined : checker.getSymbolAtLocation(source);
|
|
632
|
+
return (module === undefined ? [] : checker.getExportsOfModule(module))
|
|
633
|
+
.filter((exported) => (checker.getTypeOfSymbol(exported).flags & ts.TypeFlags.Any) !== 0)
|
|
634
|
+
.map((exported) => ({ file: file.path, message: `exports ${exported.name} typed as any.`, subject: exported.name }));
|
|
635
|
+
}),
|
|
636
|
+
),
|
|
637
|
+
description: "Give every export a known type.",
|
|
638
|
+
id: "local/no-any-exports",
|
|
639
|
+
});
|
|
614
640
|
```
|
|
615
641
|
|
|
616
|
-
Register them with `defineConfig({ local: [noLog, hasChangelog] })`. A check receives `root`, checked paths in `files`, source files in `sources`, `readText(path)` and decoded `options`, and returns findings or an Effect of findings. `readText` is an Effect that succeeds with `undefined` for a missing file. For options, provide a [Standard Schema](https://standardschema.dev) validator; an absent options object is validated as `{}`, so defaults belong in the schema, and a rule without a schema refuses options. A finding's optional `subject` distinguishes exceptions within a rule and file. A limit rule reports its amount over the limit as `count` and the limit as `threshold`; the baseline stores the count. Set `registrable: false` when a rule must never be excused by a config exception.
|
|
642
|
+
Register them with `defineConfig({ local: [noLog, hasChangelog, noAnyExports] })`. A check receives `root`, checked paths in `files`, source files in `sources`, `readText(path)`, `typeScript` and decoded `options`, and returns findings or an Effect of findings. `readText` is an Effect that succeeds with `undefined` for a missing file. `typeScript` is an Effect of a TypeScript `program` and its `checker` over the scanned sources, with `sourceFile(path)` looking up a source by its repository path and `ts`, the TypeScript module that built the program. A rule reads syntax kinds, flags and type guards from that `ts` and does not import its own `typescript`, whose version can differ. Every rule in a run that yields it receives the same program, built at most once and only when a rule asks for it. The program is `strict`, allows JavaScript, preserves JSX, targets ESNext with its default library, skips library checks and loads no ambient `types`; imports resolve through each file's nearest `tsconfig.json`, so types from installed packages are their real declarations. TypeScript 6.0.3 throws "Debug Failure. No error for last overload signature" when it resolves some calls to a large overloaded generic function with a callback argument whose types come from installed packages, such as a story kit's `it` with a story callback; asking for the callback parameter's type resolves that call. TypeScript 7 checks the same code without error. A caught failure leaves the checker unusable, so the run stops with the rule's id and the compiler's stack. For options, provide a [Standard Schema](https://standardschema.dev) validator; an absent options object is validated as `{}`, so defaults belong in the schema, and a rule without a schema refuses options. A finding's optional `subject` distinguishes exceptions within a rule and file. A limit rule reports its amount over the limit as `count` and the limit as `threshold`; the baseline stores the count. Set `registrable: false` when a rule must never be excused by a config exception. Set `depth: "deep"` when a rule is too costly for every local lint; CI and `quality lint --full` still run it. When only part of a rule is costly, give it `deepHalf: { check, name }` instead: `check` is the fast part, `deepHalf.check` runs only where deep rules run, both report under the rule's id, and a fast run's closing line names the skipped half as the rule id followed by `name`. The two halves must not report the same finding. `needs` names what a rule takes from the run: `"story-program"` puts it among the rules that read the story program, which the run builds once for them and drops after the last of them, whatever their tier; `"child-process"` marks a check that runs a child process, such as Biome or Knip. A run starts Biome and Knip before the other rules, so their child processes work while the rules in Quality's own process run.
|
|
617
643
|
|
|
618
644
|
#### Command line
|
|
619
645
|
|
|
620
646
|
```text
|
|
621
|
-
quality lint [--config <file>]
|
|
647
|
+
quality lint [--config <file>] [--fast | --full]
|
|
622
648
|
quality ci [--coverage]
|
|
623
649
|
quality fix [--config <file>]
|
|
624
650
|
quality exceptions migrate [--config <file>] [--from <registry>]
|
|
@@ -666,25 +692,7 @@ The TypeScript base leaves `types`, `jsx`, `paths`, `include` and output directo
|
|
|
666
692
|
|
|
667
693
|
For a React browser app, extend `@shivaedev/quality/tsconfig/app.json` instead. It adds React JSX, browser libraries and the Node, React and React DOM types to the base. Keep the application's paths and input files in its own config.
|
|
668
694
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
```ts
|
|
672
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
673
|
-
import react from "@vitejs/plugin-react";
|
|
674
|
-
import { appViteConfig } from "@shivaedev/quality/appViteConfig.ts";
|
|
675
|
-
|
|
676
|
-
export default appViteConfig([tailwindcss(), react()]);
|
|
677
|
-
```
|
|
678
|
-
|
|
679
|
-
Use this in `vite.config.ts`. Plugins belong to the app. The web server port defaults to `VITE_PORT`, then 5173. The API port defaults to `PORT`, then 3000. These variables come from the process environment. Pass `{ webPort: 5273, apiPort: 3100 }` as the fourth argument to override either port, for example `appViteConfig(plugins, [], ["/health"], { webPort: 5273, apiPort: 3100 })`. The shared server proxies `/api/auth` and `/rpc` to the API port on `127.0.0.1`, preserving the request Host. Pass extra host routes as the third argument to proxy them to the same host during development. It enables TypeScript path resolution. Client routes, including administration pages, stay on Vite.
|
|
680
|
-
|
|
681
|
-
```ts
|
|
682
|
-
import { appTestConfig } from "@shivaedev/quality/appTestConfig.ts";
|
|
683
|
-
|
|
684
|
-
export default appTestConfig();
|
|
685
|
-
```
|
|
686
|
-
|
|
687
|
-
Use this in `vitest.config.ts`. It composes `testProjects` with browser and server resolution and inlines the `@shivaedev` packages for the test server, since an application imports each framework piece by its own name. Its `testProjects` defaults enable Node’s on-disk compilation cache in workers to reuse compiled dependencies while Vitest keeps module state isolated between files. Node’s `NODE_DISABLE_COMPILE_CACHE=1` disables that cache. Both helpers accept extra export conditions for workspace development: `appViteConfig(plugins, ["@shivaedev/source"])` and `appTestConfig(["@shivaedev/source"])`. Published apps use the defaults.
|
|
695
|
+
An application built on Platform takes its Vite and Vitest setup from [`@shivaedev/build`](https://github.com/ShivaeDev/platform/tree/main/packages/build#readme), which builds its Vitest config on `testProjects`.
|
|
688
696
|
|
|
689
697
|
For Vitest, install `vitest`, and add `@shivaedev/test-story` and `happy-dom` when the repository has DOM tests, then use:
|
|
690
698
|
|
|
@@ -697,20 +705,18 @@ export default defineConfig({ test: testProjects() });
|
|
|
697
705
|
|
|
698
706
|
`testProjects` selects four projects by default: `unit` runs ordinary Node tests and specs, `pure` runs `.unit.test` and `.unit.spec` files in Node, `dom` runs `.dom` tests and specs in test-story's DOM environment, and `heavy` runs `.heavy` tests and specs in Node. Heavy files run one at a time after the ordinary projects finish, including across packages in a workspace run. Use `.heavy` for tests that spawn CPU-heavy toolchains. The `pure` project always installs an I/O guard: calls to Node's `fs` (including `fs/promises`), `net`, `http`, `https`, `child_process` and `worker_threads` modules and global `fetch` throw an error naming the unit file and call. The guard also patches ESM named imports while preserving Node and Vitest module loading. Keep unit tests pure; test I/O through the package's story kit. Use `--project pure` to run only unit files, or `--project unit` for ordinary Node files. The DOM environment keeps Node's host constructors separate from the happy-dom window, so DOM specs need no project remap. Each test gets 30 seconds instead of Vitest's 5, because tests that start servers, browsers or CLIs take seconds on a busy CI runner. `.slow` tests run only when `--project slow` asks for them. Type tests are excluded from Vitest and belong in the compiler's input. Every project excludes `**/.worktrees/**` so a checkout does not collect specs from its worktrees.
|
|
699
707
|
|
|
700
|
-
|
|
708
|
+
Worker concurrency in `testProjects` comes from a configured PostgreSQL connection budget, independent of CPU count: `max(1, floor(connectionBudget / connectionsPerWorker))`. The defaults are 80 usable connections and 14 connections per worker, giving five workers. The budget leaves room on a typical 100-connection server for administration and other clients; the estimate allows for full-app tests with several pools. Set the budget from your server's `SHOW max_connections`, subtracting connections reserved for other clients and concurrent test processes. Quality does not query the server. If even one worker exceeds the budget, it still runs one worker; reduce that test's pool sizes or increase the server capacity.
|
|
701
709
|
|
|
702
710
|
Set the per-worker estimate to the peak connections held by one test worker, and supply your usable budget or an explicit worker override:
|
|
703
711
|
|
|
704
712
|
```ts
|
|
705
713
|
testProjects({ connectionBudget: 84, connectionsPerWorker: 14 });
|
|
706
714
|
testProjects({ maxWorkers: 4 });
|
|
707
|
-
appTestConfig([], { connectionBudget: 84, connectionsPerWorker: 14 });
|
|
708
|
-
appTestConfig([], { maxWorkers: 4 });
|
|
709
715
|
```
|
|
710
716
|
|
|
711
717
|
The first configuration allows six workers, including on a two-CPU runner. `maxWorkers` takes precedence over the connection calculation. Counts and estimates must be positive safe integers. Vitest's native `--maxWorkers` CLI option can also override the returned configuration for a single run.
|
|
712
718
|
|
|
713
|
-
Coverage is opt-in: `testProjects({ coverage: true })` enables Vitest's V8 provider across the selected projects. Quality supplies `@vitest/coverage-v8` at its supported Vitest version. The report includes unvisited `src/**/*.ts` and `src/**/*.tsx` files and excludes declarations, tests, specs and `test-support`. To customize it, pass native Vitest coverage options, for example `testProjects({ coverage: { reporter: ["lcov", "text-summary"] } })
|
|
719
|
+
Coverage is opt-in: `testProjects({ coverage: true })` enables Vitest's V8 provider across the selected projects. Quality supplies `@vitest/coverage-v8` at its supported Vitest version. The report includes unvisited `src/**/*.ts` and `src/**/*.tsx` files and excludes declarations, tests, specs and `test-support`. To customize it, pass native Vitest coverage options, for example `testProjects({ coverage: { reporter: ["lcov", "text-summary"] } })`. No separate coverage config is needed.
|
|
714
720
|
|
|
715
721
|
Outside CI, `testProjects` sets `silent: "passed-only"` so local runs show logs only from failing tests. When `CI` is set to a nonempty value, it sets `silent: false` so CI keeps all test logs. It leaves `reporters` unset so Vitest can auto-detect its agent reporter. If a repository adds a reporter, spread `configDefaults.reporters` instead of replacing the defaults:
|
|
716
722
|
|
|
@@ -777,5 +783,5 @@ Only the declared files accept `dangerouslySetInnerHTML`; undeclared files keep
|
|
|
777
783
|
|
|
778
784
|
Quality merges the Biome settings at lint and fix time; do not add or mirror an override in `biome.json`. Files are explicit repository paths. Biome exceptions cover individual lint rules or assist actions; whole checks, rule groups and globs are rejected. `biome/files/includes` is the directory exclusion form: keep `**` and list negative patterns naming directories, such as `!**/test-support/generated`. Quality's shipped exceptions are part of its internal policy. [Exceptions and upgrades](https://github.com/ShivaeDev/platform/blob/main/packages/quality/docs/debt-and-hooks.md#exceptions) describes subjects, stale entries and the upgrade command.
|
|
779
785
|
- The source inventory and Biome have their own scopes. `quality fix` runs Biome from the config's folder; it is not restricted to the source-rule inventory.
|
|
780
|
-
- The installed hook checks files on disk, not only what is staged,
|
|
786
|
+
- The installed hook checks files on disk, not only what is staged, unless the config sets `preCommit: "staged"`. It uses each committing worktree's config and dependencies. Installation sets repository-local `core.hooksPath`; the hook chains an executable global pre-commit hook without changing global configuration. Either hook's failure blocks the commit. `quality hooks status` reports when git's effective hooks path does not run Quality.
|
|
781
787
|
- Workspace imports require a declaration in the importing package’s `dependencies`, `peerDependencies` or `optionalDependencies`. Tests, `test-support`, package-owned `test/` trees beside `src/`, private test-composition packages, package-root tooling folders (`script`, `scripts`, `tooling`) and package-root config files may also use `devDependencies`. Executables and public modules keep their imports in the runtime boundary.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginContract.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/pluginContract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAe/C,wBAAgB,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"pluginContract.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/pluginContract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAe/C,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAsBtD"}
|
|
@@ -11,11 +11,8 @@ function pluginType(node, { checker }) {
|
|
|
11
11
|
return ts.isStringLiteral(module) && !/^[.#/]/u.test(module.text);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
export function pluginContract(
|
|
15
|
-
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
const syntax = { checker, source };
|
|
14
|
+
export function pluginContract(syntax) {
|
|
15
|
+
const { checker, source } = syntax;
|
|
19
16
|
function contract(node) {
|
|
20
17
|
if (ts.isSatisfiesExpression(node) || ts.isAsExpression(node)) {
|
|
21
18
|
return pluginType(node.type, syntax);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginContract.js","sourceRoot":"","sources":["../../../src/adapters/biome/pluginContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,SAAS,UAAU,CAAC,IAA6B,EAAE,EAAE,OAAO,EAAU;IACrE,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;QAC5F,IAAI,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YAChI,OAAO,KAAK,CAAC;QACd,CAAC;QACD,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;QAChE,OAAO,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"pluginContract.js","sourceRoot":"","sources":["../../../src/adapters/biome/pluginContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,SAAS,UAAU,CAAC,IAA6B,EAAE,EAAE,OAAO,EAAU;IACrE,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;QAC5F,IAAI,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YAChI,OAAO,KAAK,CAAC;QACd,CAAC;QACD,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;QAChE,OAAO,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAc;IAC5C,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACnC,SAAS,QAAQ,CAAC,IAAmB;QACpC,IAAI,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/D,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;YACxC,OAAO,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC;QACD,OAAO,CACN,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;eAClB,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC,IAAI,CAC9D,CAAC,WAAW,EAAE,EAAE,CACf,EAAE,CAAC,qBAAqB,CAAC,WAAW,CAAC;mBAClC,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;uBACpC,CAAC,WAAW,CAAC,WAAW,KAAK,SAAS;2BACrC,EAAE,CAAC,qBAAqB,CAAC,WAAW,CAAC,WAAW,CAAC;2BACjD,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACxD,CACD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,IAAI,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAC/I,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AASxC,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ;;;;;;;;;kOAmCnB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import process from "node:process";
|
|
|
4
4
|
import { Effect, Stream } from "effect";
|
|
5
5
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
6
6
|
import { withExceptionConfig } from "#adapters/biome/withExceptionConfig.ts";
|
|
7
|
+
import { childStarted } from "#engine/childStarted.ts";
|
|
7
8
|
import { posix } from "#inventory/ignoreScope.ts";
|
|
8
9
|
import { skillCopies } from "#inventory/skillCopies.ts";
|
|
9
10
|
import { toolOwnedFiles } from "#inventory/toolOwnedFiles.ts";
|
|
@@ -21,6 +22,7 @@ export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, excep
|
|
|
21
22
|
return yield* Effect.scoped(withExceptionConfig(root, [...exceptions, ...toolOwned], (configArgs) => Effect.gen(function* () {
|
|
22
23
|
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
|
|
23
24
|
const child = yield* spawner.spawn(ChildProcess.make(process.execPath, [BIN, ...args, ...configArgs, "--colors=off"], { cwd: root, stdin: "ignore" }));
|
|
25
|
+
yield* childStarted();
|
|
24
26
|
const [stdout, stderr, code] = yield* Effect.all([Stream.mkString(Stream.decodeText(child.stdout)), Stream.mkString(Stream.decodeText(child.stderr)), child.exitCode], { concurrency: "unbounded" });
|
|
25
27
|
return { code: Number(code), stderr, stdout };
|
|
26
28
|
}), nonEffectFolders));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9D,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,EAC5D,IAAY,EACZ,IAAuB,EACvB,UAAU,GAAoC,EAAE,EAChD,gBAAgB,GAAsB,EAAE;IAExC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3F,MAAM,SAAS,GAAoC;QAClD;YACC,KAAK,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;YACvF,MAAM,EAAE,wEAAwE;YAChF,KAAK,EAAE,CAAC,sBAAsB,CAAC;SAC/B;KACD,CAAC;IACF,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAC1B,mBAAmB,CAClB,IAAI,EACJ,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,CAAC,EAC7B,CAAC,UAAU,EAAE,EAAE,CACd,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACnB,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,mBAAmB,CAAC,mBAAmB,CAAC;QAC/D,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CACjC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,EAAE,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAClH,CAAC;QACF,KAAK,CAAC,CAAC,YAAY,EAAE,CAAC;QACtB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAC/C,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,EACpH,EAAE,WAAW,EAAE,WAAW,EAAE,CAC5B,CAAC;QACF,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC/C,CAAC,CAAC,EACH,gBAAgB,CAChB,CACD,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAqBxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,+SAiD7E,CAAC"}
|