fix(ci): keep unsafe assertion lint disabled · openclaw/openclaw@b81adc6
steipete
·
2026-05-31
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,7 +83,7 @@
|
83 | 83 | "typescript/no-unnecessary-type-constraint": "error", |
84 | 84 | "typescript/no-unnecessary-type-conversion": "error", |
85 | 85 | "typescript/no-unnecessary-type-parameters": "error", |
86 | | -"typescript/no-unsafe-type-assertion": "error", |
| 86 | +"typescript/no-unsafe-type-assertion": "off", |
87 | 87 | "typescript/no-useless-default-assignment": "error", |
88 | 88 | "typescript/no-useless-empty-export": "error", |
89 | 89 | "typescript/no-wrapper-object-types": "error", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -104,7 +104,7 @@ describe("migrateLegacyDreamingPayloadShape", () => {
|
104 | 104 | wakeMode: "now", |
105 | 105 | payload: { kind: "agentTurn", message: "good morning" }, |
106 | 106 | } as Record<string, unknown>; |
107 | | -const snapshot = jsonRoundTrip(unrelated) as Record<string, unknown>; |
| 107 | +const snapshot = jsonRoundTrip(unrelated); |
108 | 108 | const jobs = [unrelated]; |
109 | 109 | const result = migrateLegacyDreamingPayloadShape(jobs); |
110 | 110 | expect(result).toEqual({ changed: false, rewrittenCount: 0 }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1198,7 +1198,7 @@ describe("Integration: saveSessionStore with pruning", () => {
|
1198 | 1198 | }; |
1199 | 1199 | await fs.writeFile(storePath, JSON.stringify(store, null, 2), "utf-8"); |
1200 | 1200 | |
1201 | | -await saveSessionStore(storePath, jsonRoundTrip(store) as Record<string, SessionEntry>); |
| 1201 | +await saveSessionStore(storePath, jsonRoundTrip(store)); |
1202 | 1202 | |
1203 | 1203 | const files = await fs.readdir(testDir); |
1204 | 1204 | const backups = files.filter((file) => file.startsWith("sessions.json.bak.")); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -68,7 +68,7 @@ function cloneRestartSentinelPayload(
|
68 | 68 | if (!payload) { |
69 | 69 | return null; |
70 | 70 | } |
71 | | -return structuredClone(payload) as RestartSentinelPayload; |
| 71 | +return structuredClone(payload); |
72 | 72 | } |
73 | 73 | |
74 | 74 | function hasRoutableDeliveryContext(context?: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -91,7 +91,7 @@ export async function writeRestartSentinel(
|
91 | 91 | } |
92 | 92 | |
93 | 93 | function cloneRestartSentinelPayload(payload: RestartSentinelPayload): RestartSentinelPayload { |
94 | | -return structuredClone(payload) as RestartSentinelPayload; |
| 94 | +return structuredClone(payload); |
95 | 95 | } |
96 | 96 | |
97 | 97 | async function rewriteRestartSentinel( |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,7 +47,6 @@ const ZERO_BASELINE_RULES = [
|
47 | 47 | "typescript/no-import-type-side-effects", |
48 | 48 | "typescript/no-inferrable-types", |
49 | 49 | "typescript/no-non-null-asserted-nullish-coalescing", |
50 | | -"typescript/no-unsafe-type-assertion", |
51 | 50 | "typescript/no-unnecessary-qualifier", |
52 | 51 | "typescript/prefer-find", |
53 | 52 | "typescript/prefer-for-of", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。