mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
infra: emit errors on no-explicit-any eslint rule (#516)
This commit is contained in:
@@ -90,7 +90,7 @@ export default tseslint.config(
|
||||
'error',
|
||||
{ accessibility: 'no-public' },
|
||||
],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-inferrable-types': [
|
||||
'error',
|
||||
{ ignoreParameters: true, ignoreProperties: true },
|
||||
|
||||
@@ -174,6 +174,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||
] as Dirent[];
|
||||
}
|
||||
return [] as Dirent[];
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
}) as any);
|
||||
|
||||
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
||||
@@ -246,6 +247,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||
] as Dirent[];
|
||||
}
|
||||
return [] as Dirent[];
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
}) as any);
|
||||
|
||||
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
||||
@@ -324,6 +326,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||
] as Dirent[];
|
||||
}
|
||||
return [] as Dirent[];
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
}) as any);
|
||||
|
||||
const { memoryContent, fileCount } = await loadServerHierarchicalMemory(
|
||||
@@ -362,6 +365,7 @@ describe('loadServerHierarchicalMemory', () => {
|
||||
if (p.toString().startsWith(path.join(CWD, 'deep_dir_')))
|
||||
return [] as Dirent[];
|
||||
return [] as Dirent[];
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
}) as any);
|
||||
mockFs.access.mockRejectedValue(new Error('not found'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user