infra: emit errors on no-explicit-any eslint rule (#516)
This commit is contained in:
parent
1ff083af27
commit
197c5b2bdf
|
@ -90,7 +90,7 @@ export default tseslint.config(
|
||||||
'error',
|
'error',
|
||||||
{ accessibility: 'no-public' },
|
{ accessibility: 'no-public' },
|
||||||
],
|
],
|
||||||
'@typescript-eslint/no-explicit-any': 'warn',
|
'@typescript-eslint/no-explicit-any': 'error',
|
||||||
'@typescript-eslint/no-inferrable-types': [
|
'@typescript-eslint/no-inferrable-types': [
|
||||||
'error',
|
'error',
|
||||||
{ ignoreParameters: true, ignoreProperties: true },
|
{ ignoreParameters: true, ignoreProperties: true },
|
||||||
|
|
|
@ -174,6 +174,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||||
] as Dirent[];
|
] as Dirent[];
|
||||||
}
|
}
|
||||||
return [] as Dirent[];
|
return [] as Dirent[];
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
}) as any);
|
}) as any);
|
||||||
|
|
||||||
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
||||||
|
@ -246,6 +247,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||||
] as Dirent[];
|
] as Dirent[];
|
||||||
}
|
}
|
||||||
return [] as Dirent[];
|
return [] as Dirent[];
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
}) as any);
|
}) as any);
|
||||||
|
|
||||||
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
||||||
|
@ -324,6 +326,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||||
] as Dirent[];
|
] as Dirent[];
|
||||||
}
|
}
|
||||||
return [] as Dirent[];
|
return [] as Dirent[];
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
}) as any);
|
}) as any);
|
||||||
|
|
||||||
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
||||||
|
@ -362,6 +365,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||||
if (p.toString().startsWith(path.join(CWD, 'deep_dir_')))
|
if (p.toString().startsWith(path.join(CWD, 'deep_dir_')))
|
||||||
return [] as Dirent[];
|
return [] as Dirent[];
|
||||||
return [] as Dirent[];
|
return [] as Dirent[];
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
}) as any);
|
}) as any);
|
||||||
mockFs.access.mockRejectedValue(new Error('not found'));
|
mockFs.access.mockRejectedValue(new Error('not found'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue