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:
@@ -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';
|
||||
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user