chore(lint): remove ESLint configuration file and update lint scripts

- Deleted the .eslintrc.cjs file to simplify configuration management.
- Updated lint scripts in package.json to remove unnecessary extensions for linting.
- Added new devDependencies for ESLint and globals to enhance linting capabilities.
This commit is contained in:
Haze
2026-02-06 05:50:20 +08:00
Unverified
parent 4e1f79922b
commit 9fe27e3510
23 changed files with 90 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
/**
* Zustand Stores Tests
*/
import { describe, it, expect, beforeEach, vi } from 'vitest';
import { describe, it, expect, beforeEach } from 'vitest';
import { useSettingsStore } from '@/stores/settings';
import { useGatewayStore } from '@/stores/gateway';

View File

@@ -2,7 +2,7 @@
* Utility Functions Tests
*/
import { describe, it, expect } from 'vitest';
import { cn, formatRelativeTime, formatDuration, truncate } from '@/lib/utils';
import { cn, formatDuration, truncate } from '@/lib/utils';
describe('cn (class name merge)', () => {
it('should merge class names', () => {
@@ -10,8 +10,8 @@ describe('cn (class name merge)', () => {
});
it('should handle conditional classes', () => {
expect(cn('base', true && 'active')).toBe('base active');
expect(cn('base', false && 'active')).toBe('base');
expect(cn('base', 'active')).toBe('base active');
expect(cn('base', false)).toBe('base');
});
it('should merge tailwind classes correctly', () => {