mirror of
https://github.com/MiniMax-AI/cli.git
synced 2026-09-18 08:48:06 +08:00
163c8f4ec2
- Add eslint.config.js with typescript-eslint flat config - Add @eslint/js ^9 and typescript-eslint ^8 devDependencies - Read VERSION from package.json in build.ts instead of hardcoding 'dev' - Convert detectPlatform() to async with dynamic import in self-update.ts - Remove all unused imports and rename unused params to _prefix - Fix prefer-const violations and add eslint-disable comments where needed - Fix indentation in video/generate.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
455 B
JavaScript
20 lines
455 B
JavaScript
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['src/**/*.ts', 'test/**/*.ts', 'build.ts'],
|
|
},
|
|
{
|
|
ignores: ['dist/', 'node_modules/'],
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
},
|
|
},
|
|
);
|