mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
chore: update ESLint configuration and improve TypeScript type handling
- Added additional test file patterns to ESLint configuration for better coverage. - Introduced new rule to ignore unused TypeScript variables starting with an underscore. - Updated `PermissionController` to set approval mode correctly. - Refactored timeout constants in `Query` class for better maintainability. - Enhanced E2E tests for permission control and multi-turn conversations with clearer prompts and expectations. - Removed outdated simple query test file and added new single-turn test suite for better organization.
This commit is contained in:
@@ -150,7 +150,7 @@ export default tseslint.config(
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['packages/*/src/**/*.test.{ts,tsx}'],
|
||||
files: ['packages/*/src/**/*.test.{ts,tsx}', 'packages/**/test/**/*.test.{ts,tsx}'],
|
||||
plugins: {
|
||||
vitest,
|
||||
},
|
||||
@@ -158,6 +158,14 @@ export default tseslint.config(
|
||||
...vitest.configs.recommended.rules,
|
||||
'vitest/expect-expect': 'off',
|
||||
'vitest/no-commented-out-tests': 'off',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{
|
||||
argsIgnorePattern: '^_',
|
||||
varsIgnorePattern: '^_',
|
||||
caughtErrorsIgnorePattern: '^_',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
// extra settings for scripts that we run directly with node
|
||||
|
||||
Reference in New Issue
Block a user