mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 10:04:46 +00:00
chore(lint): enable additional cleanup rules
This commit is contained in:
@@ -18,9 +18,7 @@ export function createBundleMcpTempHarness() {
|
||||
clearPluginDiscoveryCache();
|
||||
clearPluginManifestRegistryCache();
|
||||
await Promise.all(
|
||||
tempDirs
|
||||
.splice(0, tempDirs.length)
|
||||
.map((dir) => fs.rm(dir, { recursive: true, force: true })),
|
||||
tempDirs.splice(0).map((dir) => fs.rm(dir, { recursive: true, force: true })),
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -69,8 +69,8 @@ function applyVitestCapabilityAliasOverrides(params: {
|
||||
}
|
||||
|
||||
const {
|
||||
["openclaw/plugin-sdk"]: _ignoredLegacyRootAlias,
|
||||
["@openclaw/plugin-sdk"]: _ignoredScopedRootAlias,
|
||||
"openclaw/plugin-sdk": _ignoredLegacyRootAlias,
|
||||
"@openclaw/plugin-sdk": _ignoredScopedRootAlias,
|
||||
...scopedAliasMap
|
||||
} = params.aliasMap;
|
||||
return {
|
||||
|
||||
@@ -89,7 +89,7 @@ afterEach(() => {
|
||||
} else {
|
||||
Reflect.deleteProperty(globalThis as object, "fetch");
|
||||
}
|
||||
for (const dir of tempDirs.splice(0, tempDirs.length)) {
|
||||
for (const dir of tempDirs.splice(0)) {
|
||||
fs.rmSync(dir, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
@@ -20,7 +20,7 @@ export function createGeneratedPluginTempRoot(prefix: string): string {
|
||||
|
||||
export function installGeneratedPluginTempRootCleanup() {
|
||||
afterEach(() => {
|
||||
for (const dir of tempDirs.splice(0, tempDirs.length)) {
|
||||
for (const dir of tempDirs.splice(0)) {
|
||||
fs.rmSync(dir, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user