mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
* refactor: centralize token tracking and clean up console output - Remove manual token tracking in agent.ts - Track tokens through tokenTracker.trackUsage() - Clean up verbose console output - Add ESLint configuration - Fix TypeScript linting issues Co-Authored-By: Han Xiao <han.xiao@jina.ai> * refactor: simplify sleep function and use console.log consistently Co-Authored-By: Han Xiao <han.xiao@jina.ai> * refactor: remove color modifiers from console.log statements Co-Authored-By: Han Xiao <han.xiao@jina.ai> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Han Xiao <han.xiao@jina.ai>
21 lines
421 B
JavaScript
21 lines
421 B
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended'
|
|
],
|
|
env: {
|
|
node: true,
|
|
es6: true
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module'
|
|
},
|
|
rules: {
|
|
'no-console': ['error', { allow: ['log', 'error'] }],
|
|
'@typescript-eslint/no-explicit-any': 'off'
|
|
}
|
|
};
|