@stll/oxlint-config 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -6
- package/dist/dependabot-cli.cjs +3 -1
- package/dist/dependabot-cli.cjs.map +1 -1
- package/dist/dependabot-cli.mjs +4 -2
- package/dist/dependabot-cli.mjs.map +1 -1
- package/dist/dependabot.cjs +2 -0
- package/dist/dependabot.d.cts +17 -2
- package/dist/dependabot.d.mts +17 -2
- package/dist/dependabot.mjs +2 -2
- package/dist/engine-support-cli.cjs +96 -0
- package/dist/engine-support-cli.cjs.map +1 -0
- package/dist/engine-support-cli.d.cts +1 -0
- package/dist/engine-support-cli.d.mts +1 -0
- package/dist/engine-support-cli.mjs +94 -0
- package/dist/engine-support-cli.mjs.map +1 -0
- package/dist/engine-support.cjs +29 -0
- package/dist/engine-support.cjs.map +1 -0
- package/dist/engine-support.d.cts +21 -0
- package/dist/engine-support.d.mts +21 -0
- package/dist/engine-support.mjs +26 -0
- package/dist/engine-support.mjs.map +1 -0
- package/dist/toolchain-dependabot.cjs +119 -13
- package/dist/toolchain-dependabot.cjs.map +1 -1
- package/dist/toolchain-dependabot.mjs +96 -14
- package/dist/toolchain-dependabot.mjs.map +1 -1
- package/dist/toolchain-guard.cjs +16 -4
- package/dist/toolchain-guard.cjs.map +1 -1
- package/dist/toolchain-guard.mjs +17 -5
- package/dist/toolchain-guard.mjs.map +1 -1
- package/dist/toolchain-inputs.cjs +56 -0
- package/dist/toolchain-inputs.cjs.map +1 -1
- package/dist/toolchain-inputs.mjs +56 -0
- package/dist/toolchain-inputs.mjs.map +1 -1
- package/dist/wasi-loader-normalizer-cli.cjs +290 -0
- package/dist/wasi-loader-normalizer-cli.cjs.map +1 -0
- package/dist/wasi-loader-normalizer-cli.d.cts +1 -0
- package/dist/wasi-loader-normalizer-cli.d.mts +1 -0
- package/dist/wasi-loader-normalizer-cli.mjs +290 -0
- package/dist/wasi-loader-normalizer-cli.mjs.map +1 -0
- package/package.json +19 -2
package/dist/toolchain-guard.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { t as checkRepositoryQuarantine } from "./quarantine-policy2.mjs";
|
|
|
2
2
|
import { E as parseCloudSetup, S as generateCloudSetup, T as nodeSupportRangeMatches, _ as cloudSessionStartFix, a as isMiseConfigPath, d as containerDocumentImages, f as isComposeDefinitionPath, g as cloudClaudeSettingsPath, h as cloudAttributionFix, i as isDockerDefinitionPath, m as workspaceContains, n as githubAutomationFileKind, p as isKubernetesDefinitionPath, s as isShellScript, u as toolchainInputKind, v as hasCloudAttribution, w as nodeSelectorMatches, x as cloudSetupPath, y as hasCloudSessionStartHook } from "./toolchain-inputs.mjs";
|
|
3
3
|
import { t as readGitTrackedOutput } from "./git-tracked-output.mjs";
|
|
4
4
|
import { a as assertConsumerFixtureSelection, g as parseConsumerFixtures, h as discoverConsumerPackages, m as discoverConsumerManifests, r as assertConsumerFixtureKind, t as assertConsumerNodeSupport, u as consumerPackageClosure } from "./consumer-node-support.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { d as rustImageVersion, i as dependabotRules, n as declaredIgnoreConflicts, o as parseDependabotIgnores, t as checkDependabot, u as canonicalDockerRuntime } from "./toolchain-dependabot.mjs";
|
|
6
6
|
import "./toolchain-schema.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import path, { extname } from "node:path";
|
|
@@ -14,7 +14,7 @@ import { LineCounter, isAlias, isMap, isNode, isScalar, isSeq, parseAllDocuments
|
|
|
14
14
|
import picomatch from "picomatch";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/toolchain-consumer-checks.ts
|
|
17
|
-
const consumerRunnerVersion = "1.
|
|
17
|
+
const consumerRunnerVersion = "1.6.0";
|
|
18
18
|
const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
|
|
19
19
|
const record$10 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20
20
|
const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
|
|
@@ -3891,7 +3891,7 @@ const record = (value) => typeof value === "object" && value !== null && !Array.
|
|
|
3891
3891
|
const array = (value) => Array.isArray(value);
|
|
3892
3892
|
/** Repository-owned declarations are explicit; malformed decisions fail closed. */
|
|
3893
3893
|
const parseToolchainConfiguration = (input) => {
|
|
3894
|
-
if (!record(input) || Object.keys(input).some((key) => key !== "optOuts" && key !== "cloud" && key !== "engineFloors" && key !== "dynamicSelectors" && key !== "consumerChecks" && key !== "rustExceptions") || input["optOuts"] !== void 0 && !array(input["optOuts"])) throw new Error("stll-toolchain.json accepts only optOuts, cloud, engineFloors, dynamicSelectors consumerChecks and
|
|
3894
|
+
if (!record(input) || Object.keys(input).some((key) => key !== "optOuts" && key !== "cloud" && key !== "engineFloors" && key !== "dynamicSelectors" && key !== "consumerChecks" && key !== "rustExceptions" && key !== "dependabotIgnores") || input["optOuts"] !== void 0 && !array(input["optOuts"])) throw new Error("stll-toolchain.json accepts only optOuts, cloud, engineFloors, dynamicSelectors, consumerChecks, rustExceptions and dependabotIgnores declarations");
|
|
3895
3895
|
const disabled = /* @__PURE__ */ new Set();
|
|
3896
3896
|
const optOuts = input["optOuts"] ?? [];
|
|
3897
3897
|
if (!array(optOuts)) throw new Error("optOuts must be an array");
|
|
@@ -3911,7 +3911,8 @@ const parseToolchainConfiguration = (input) => {
|
|
|
3911
3911
|
cloud: parseCloudSetup(input["cloud"]),
|
|
3912
3912
|
engineFloors: parseEngineFloors(input["engineFloors"]),
|
|
3913
3913
|
dynamicSelectors: parseDynamicSelectors(input["dynamicSelectors"]),
|
|
3914
|
-
consumerChecks: parseConsumerChecks(input["consumerChecks"])
|
|
3914
|
+
consumerChecks: parseConsumerChecks(input["consumerChecks"]),
|
|
3915
|
+
dependabotIgnores: parseDependabotIgnores(input["dependabotIgnores"])
|
|
3915
3916
|
};
|
|
3916
3917
|
};
|
|
3917
3918
|
/** Dependency graphs stay opaque unless a caller explicitly needs registry identities. */
|
|
@@ -4142,9 +4143,20 @@ const checkToolchain = ({ root, policy, onDelegated, onWarning, now }) => {
|
|
|
4142
4143
|
line: 1,
|
|
4143
4144
|
message: `dynamic selector ${entry.path}:${entry.at ?? entry.line} must match exactly one unresolved ${entry.kind} selector`
|
|
4144
4145
|
});
|
|
4146
|
+
const dependabotIgnores = configuration.dependabotIgnores;
|
|
4147
|
+
for (const message of declaredIgnoreConflicts({
|
|
4148
|
+
ignores: dependabotIgnores,
|
|
4149
|
+
policy: policy.dependabot
|
|
4150
|
+
})) diagnostics.push({
|
|
4151
|
+
rule: "configuration",
|
|
4152
|
+
path: "stll-toolchain.json",
|
|
4153
|
+
line: 1,
|
|
4154
|
+
message
|
|
4155
|
+
});
|
|
4145
4156
|
diagnostics.push(...checkDependabot({
|
|
4146
4157
|
files,
|
|
4147
|
-
policy: policy.dependabot
|
|
4158
|
+
policy: policy.dependabot,
|
|
4159
|
+
ignores: dependabotIgnores
|
|
4148
4160
|
}));
|
|
4149
4161
|
return diagnostics.filter((diagnostic) => !configuration.disabled.has(diagnostic.rule));
|
|
4150
4162
|
};
|