diff options
| author | Brandon Keiji <[email protected]> | 2025-05-23 22:35:50 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-23 22:35:50 +0000 |
| commit | 197c5b2bdfd9e03e51ea74480c83ad212b0e8a03 (patch) | |
| tree | 28bbfa0562eceee1ee79f3744a6f012f1b773d2c | |
| parent | 1ff083af273a5c250ae745712eaee97cec1d5f18 (diff) | |
infra: emit errors on no-explicit-any eslint rule (#516)
| -rw-r--r-- | eslint.config.js | 2 | ||||
| -rw-r--r-- | packages/server/src/utils/memoryDiscovery.test.ts | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/eslint.config.js b/eslint.config.js index 33447b5f..b515a436 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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 }, diff --git a/packages/server/src/utils/memoryDiscovery.test.ts b/packages/server/src/utils/memoryDiscovery.test.ts index 78ba1ba7..229f51e5 100644 --- a/packages/server/src/utils/memoryDiscovery.test.ts +++ b/packages/server/src/utils/memoryDiscovery.test.ts @@ -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')); |
