mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
fix: support node globals in scripts (#109)
This commit is contained in:
@@ -173,6 +173,16 @@ export default tseslint.config(
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// extra settings for scripts that we run directly with node
|
||||||
|
{
|
||||||
|
files: ['./scripts/**/*.js'],
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
process: 'readonly',
|
||||||
|
console: 'readonly',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
// Prettier config must be last
|
// Prettier config must be last
|
||||||
prettierConfig,
|
prettierConfig,
|
||||||
// Custom eslint rules for this repo
|
// Custom eslint rules for this repo
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable no-undef */
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import os from 'os'; // Import os module
|
import os from 'os'; // Import os module
|
||||||
|
|||||||
Reference in New Issue
Block a user