lintmax 0.1.105 → 0.1.106
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/dist/cli.mjs +7 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -2614,6 +2614,10 @@ const staleExceptions = {
|
|
|
2614
2614
|
"eslint-plugin-react": {
|
|
2615
2615
|
reason: "it is the sole dep still pinning eslint to ^9, and replacing it COSTS coverage: of its 83 active rules oxlint re-owns 49 and @eslint-react/perfectionist re-own 5, 20 are obsolete under the new JSX transform or the propTypes era, 7 belong to the formatter, and 6 have no home anywhere — destructuring-assignment, no-invalid-html-attribute, no-adjacent-inline-elements, plus the class-only no-arrow-function-lifecycle, static-property-placement and require-optimization. Strictness is monotonic-up, so the gate carries a stale dep rather than drop six enforced rules",
|
|
2616
2616
|
revisitWhen: "a maintained plugin covers those 6 ids, or every class component is gone (retiring the 3 class-only ones) and the other 3 are re-homed — then drop this dep and take eslint 10"
|
|
2617
|
+
},
|
|
2618
|
+
"eslint-plugin-react-hooks": {
|
|
2619
|
+
reason: "its source in facebook/react under packages/eslint-plugin-react-hooks received commits on 2026-10-14 and its npm record changed on 2026-10-15 through prerelease publishes; stable latest 7.1.1 is older than 6 months because stable releases follow React own release cadence — the age means a slow stable cadence, not abandonment",
|
|
2620
|
+
revisitWhen: "a stable eslint-plugin-react-hooks past 7.1.1 is published, or packages/eslint-plugin-react-hooks in facebook/react stops receiving commits for 6 months"
|
|
2617
2621
|
}
|
|
2618
2622
|
};
|
|
2619
2623
|
const toIssue = (name, publishedAt) => {
|
|
@@ -2630,7 +2634,7 @@ const scanStaleness = async (force = false) => {
|
|
|
2630
2634
|
const ci = envValue("CI") === "true" || envValue("CI") === "1";
|
|
2631
2635
|
const forced = force || ci || envValue(envForce) === "1";
|
|
2632
2636
|
const state = await loadState();
|
|
2633
|
-
if (!forced && state.lastCheck > 0 && Date.now() - state.lastCheck < cacheTtlMs) return state.staleIssues;
|
|
2637
|
+
if (!forced && state.lastCheck > 0 && Date.now() - state.lastCheck < cacheTtlMs) return state.staleIssues.filter((issue) => !Object.hasOwn(staleExceptions, issue.name));
|
|
2634
2638
|
const names = await trackedPackages();
|
|
2635
2639
|
const issues = (await Promise.all(names.map(async (name) => {
|
|
2636
2640
|
const publishedAt = await fetchLatestPublish(name);
|
|
@@ -2645,7 +2649,7 @@ const scanStaleness = async (force = false) => {
|
|
|
2645
2649
|
};
|
|
2646
2650
|
const formatStaleness = (issues) => {
|
|
2647
2651
|
if (issues.length === 0) return "";
|
|
2648
|
-
return `lintmax: stale linter deps
|
|
2652
|
+
return `lintmax: stale linter deps — FAILS the gate:\n${issues.map((issue) => ` ${issue.name} latest release ${issue.ageDays}d old (>6mo)`).join("\n")}\nClear by bumping the dependency, or adding a staleExceptions entry with a reason and a revisitWhen trigger.`;
|
|
2649
2653
|
};
|
|
2650
2654
|
//#endregion
|
|
2651
2655
|
//#region src/gate.ts
|
|
@@ -2695,6 +2699,7 @@ const runGate = async ({ command, human, version }) => {
|
|
|
2695
2699
|
});
|
|
2696
2700
|
await persistGreen(await computeGreenKey(version));
|
|
2697
2701
|
await stalePromise;
|
|
2702
|
+
if (process.exitCode !== void 0 && process.exitCode !== 0) return;
|
|
2698
2703
|
process.stdout.write("ok\n");
|
|
2699
2704
|
};
|
|
2700
2705
|
//#endregion
|