@stll/oxlint-config 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -70,6 +70,11 @@ Bun, TypeScript install layouts, Node, Python, Rust, GitHub Actions, and
|
|
|
70
70
|
Dependabot. Inherit the fields for tools your repository uses. The checker
|
|
71
71
|
does not require tools absent from the repository.
|
|
72
72
|
|
|
73
|
+
Shared-pin Dependabot ignores must contain only `dependency-name` and
|
|
74
|
+
`update-types`, listing `version-update:semver-major`,
|
|
75
|
+
`version-update:semver-minor`, and `version-update:semver-patch`. This ignores
|
|
76
|
+
version updates while preserving security update pull requests.
|
|
77
|
+
|
|
73
78
|
Set `packageManager` to `bun@` followed by the policy's `bun` value, and pin
|
|
74
79
|
`bun-types` to that same value. Dependency pins can live in default or named
|
|
75
80
|
catalogs, including Bun's `workspaces` catalogs. Bun image tags, version
|
package/dist/toolchain-guard.cjs
CHANGED
|
@@ -12,7 +12,7 @@ picomatch = require_rolldown_runtime.__toESM(picomatch, 1);
|
|
|
12
12
|
let smol_toml = require("smol-toml");
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/toolchain-consumer-checks.ts
|
|
15
|
-
const consumerRunnerVersion = "1.0.
|
|
15
|
+
const consumerRunnerVersion = "1.0.1";
|
|
16
16
|
const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
|
|
17
17
|
const record$7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18
18
|
const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
|
|
@@ -271,6 +271,12 @@ const sameStrings = (value, expected) => {
|
|
|
271
271
|
const sortedExpected = [...expected].sort();
|
|
272
272
|
return [...value].sort().every((entry, index) => entry === sortedExpected[index]);
|
|
273
273
|
};
|
|
274
|
+
const pinnedVersionUpdateTypes = [
|
|
275
|
+
"version-update:semver-major",
|
|
276
|
+
"version-update:semver-minor",
|
|
277
|
+
"version-update:semver-patch"
|
|
278
|
+
];
|
|
279
|
+
const versionOnlyIgnore = (entry) => record$6(entry) && Object.keys(entry).length === 2 && typeof entry["dependency-name"] === "string" && sameStrings(entry["update-types"], pinnedVersionUpdateTypes);
|
|
274
280
|
const directoryOf = (file) => {
|
|
275
281
|
const directory = node_path.default.posix.dirname(file);
|
|
276
282
|
return directory === "." ? "/" : `/${directory}`;
|
|
@@ -579,7 +585,8 @@ const checkDependabot = ({ files, policy }) => {
|
|
|
579
585
|
const ignore = update["ignore"];
|
|
580
586
|
if (ignore !== void 0 && (!Array.isArray(ignore) || ignore.length === 0)) report("ignore", `${ecosystem}: omit ignore or provide a nonempty array`);
|
|
581
587
|
if (Array.isArray(ignore) && ignore.some((entry) => !record$6(entry) || typeof entry["dependency-name"] !== "string" || !ignored.includes(entry["dependency-name"]))) report("ignore", `${ecosystem}: ignore only packages owned by the shared policy`);
|
|
582
|
-
|
|
588
|
+
if (Array.isArray(ignore) && ignore.some((entry) => !versionOnlyIgnore(entry))) report("ignore", `${ecosystem}: each shared-pin ignore must contain only dependency-name and update-types for semver-major, semver-minor, and semver-patch version updates; security updates must remain enabled`);
|
|
589
|
+
for (const name of ignored) if (!Array.isArray(ignore) || !ignore.some((entry) => record$6(entry) && entry["dependency-name"] === name && versionOnlyIgnore(entry))) report("ignore", `${ecosystem}: ignore all version updates for shared pin ${name}`);
|
|
583
590
|
}
|
|
584
591
|
for (const [ecosystem, directories] of roots) for (const directory of directories) if (!covered.get(ecosystem)?.has(directory)) add(`add a ${ecosystem} update entry covering ${directory}`);
|
|
585
592
|
return diagnostics;
|